Hello!
I'm trying to route almost all traffic from a jail through an OpenVPN connection. So far I tried installing the OpenVPN deamon in the jail and set IPs etc on the host machine, according to http://forums.freebsd.org/showthread.php?t=22143
However, this howto is for a OpenVPN server, and what I need is the client side. Also, the IPs and Routes of my OpenVPN Provider are set dynamically, so setting them statically on the host isn't really working.
Do you have any tipps on what would be the easiest way to achieve the following.
Until now, I created aliases for my bge0 in the /etc/rc.conf and every jail got one of those alias-IPs. Do I need to change that?
What would I need for this? ipfw? Just Routing? VNets?
I read up on some of those, but before I start stumbling in the dark, I wanted to ask if someone more experienced could give me a hint what would be the easiest/fastest way for this setup.
Thanks!
I'm trying to route almost all traffic from a jail through an OpenVPN connection. So far I tried installing the OpenVPN deamon in the jail and set IPs etc on the host machine, according to http://forums.freebsd.org/showthread.php?t=22143
However, this howto is for a OpenVPN server, and what I need is the client side. Also, the IPs and Routes of my OpenVPN Provider are set dynamically, so setting them statically on the host isn't really working.
Do you have any tipps on what would be the easiest way to achieve the following.
- Connect to an OpenVPN server
- Route all local network (10.10.10.x) traffic from the jail "normally" throught my default router
- Route every other traffic from the jail through the OpenVPN Connection
Until now, I created aliases for my bge0 in the /etc/rc.conf and every jail got one of those alias-IPs. Do I need to change that?
What would I need for this? ipfw? Just Routing? VNets?
I read up on some of those, but before I start stumbling in the dark, I wanted to ask if someone more experienced could give me a hint what would be the easiest/fastest way for this setup.
Thanks!