Routing certain iocages through openvpn iocage

Yaguznal

Explorer
Joined
Dec 23, 2013
Messages
63
Hello everyone,

I think the subject is pretty self explanatory.
Ideally, I'd love to have one iocage connected to my vpn and route access to the internet for multiple other iocages through that, while maintaining access to cages from the lan.

How do I go about it?

I am currently running 11.1u6 and went full iocage for my jails.
 
Last edited:

Yaguznal

Explorer
Joined
Dec 23, 2013
Messages
63
It works when you have gateway_enable="YES" in the rc.conf of the host iocage and use the ip of the host iocage as gateway for the client iocages. The only thing that does not work is the routing for the traffic.
Is it possible to route all incoming traffic from a certain ip range trough the tun interface? I am by no means an ipfw expert and the rules used in the post I linked above do not work.
 
Last edited:

Yaguznal

Explorer
Joined
Dec 23, 2013
Messages
63
No I didn't. It needs those IPFW rules to nat everything. I have tried everything I could imagine but that's not a lot since I just started figuring them out. It did cost me 2 days with just more questions than answers. I was hoping someone with more experience would help me out.
 
Top