Hi Guys,
I am configuring OpenVPN in a FreeBSD Jail. The VPN itself is configured and works well, no problems here: when I am inside the Jail I can see that all traffic goes through VPN.
where 10.18.x.x is VPN.
Now I want to use this Jail as a default gateway for my external devices. The idea is that I can use the jail IP as a default gateway and all the traffic from these devices would be "automagically" routed through my VPN.
However, when I do that (and I run
where 192.168.1.6 is my laptop IP address in a non-VPN network.
I guess that instead of 192.168.1.6 I should see something like 10.18.x.x in order to make it work?
So what should I do to make it work and to be able to have my devices traffic going through the jail transparently?
Cheers,
Alexey.
I am configuring OpenVPN in a FreeBSD Jail. The VPN itself is configured and works well, no problems here: when I am inside the Jail I can see that all traffic goes through VPN.
Code:
21:00:57.358613 IP 10.18.6.158 > syd15s01-in-f14.1e100.net: ICMP echo request, id 61699, seq 0, length 64
21:00:57.692905 IP syd15s01-in-f14.1e100.net > 10.18.6.158: ICMP echo reply, id 61699, seq 0, length 64
where 10.18.x.x is VPN.
Now I want to use this Jail as a default gateway for my external devices. The idea is that I can use the jail IP as a default gateway and all the traffic from these devices would be "automagically" routed through my VPN.
However, when I do that (and I run
tcpdump
inside the jail) I see only outgoing traffic:
Code:
20:53:23.263597 IP 192.168.1.6.54460 > syd15s01-in-f78.1e100.net.https: UDP, length 109
20:53:23.263636 IP 192.168.1.6.54460 > syd15s01-in-f78.1e100.net.https: UDP, length 109
where 192.168.1.6 is my laptop IP address in a non-VPN network.
I guess that instead of 192.168.1.6 I should see something like 10.18.x.x in order to make it work?
So what should I do to make it work and to be able to have my devices traffic going through the jail transparently?
Cheers,
Alexey.