Hi,
I was wondering if anyone could point me to a guide to having a freeness jail act as a gateway for clients to route traffic through a openvpn connection on the jail?
I have openvpn running properly and connecting on the jail itself. I have also set GATEWAY_ENABLE=YES. If the vpn is off, clients can successfully reach the internet using the jail's IP as a gateway. But when I turn the vpn on in the jail it stops working. The relevant openvpn.conf lines are below
I don't have the firewall enabled. All the guides I found pertain to running a vpn *server* in a jail for connecting in -- I can't find info for the final step here to just forward traffic out. Any help appreciated thanks!
I was wondering if anyone could point me to a guide to having a freeness jail act as a gateway for clients to route traffic through a openvpn connection on the jail?
I have openvpn running properly and connecting on the jail itself. I have also set GATEWAY_ENABLE=YES. If the vpn is off, clients can successfully reach the internet using the jail's IP as a gateway. But when I turn the vpn on in the jail it stops working. The relevant openvpn.conf lines are below
Code:
client dev tun proto udp resolv-retry infinite nobind persist-key persist-tun redirect-gateway remote-cert-tls server comp-lzo verb 1 reneg-sec 0 keepalive 30 120
I don't have the firewall enabled. All the guides I found pertain to running a vpn *server* in a jail for connecting in -- I can't find info for the final step here to just forward traffic out. Any help appreciated thanks!