Hi guys,
I have been cracking my head for the past few weeks on this. Appreciate some help.
I have managed to get connected to my FreeBSD server via OpenVPN with TunnelBlick.
I can connect to my server, no problem. Except that I cannot get connected to the Internet during the VPN session - I want to route all Internet via the VPN session.
I have done the following:
1) IP forwarding enabled on FreeBSD
net.inet.ip.forwarding is 1
2) I have disabled ipfw just to get that out of the way. I also run
3) gateway_enable=YES in rc.conf
4) This is also in the openvpn server configuration file:
5) I also tried natd_enable=YES (interface "vtnet0", flags "-dynamic -m")
So, when I do
When I look at
To me, this looks like it is not redirecting traffic.
What am I missing? Some help would be appreciated..
Thank you.
I have been cracking my head for the past few weeks on this. Appreciate some help.
I have managed to get connected to my FreeBSD server via OpenVPN with TunnelBlick.
I can connect to my server, no problem. Except that I cannot get connected to the Internet during the VPN session - I want to route all Internet via the VPN session.
I have done the following:
1) IP forwarding enabled on FreeBSD
net.inet.ip.forwarding is 1
2) I have disabled ipfw just to get that out of the way. I also run
tail -f /var/log/security
during the VPN session to make sure nothing is being blocked.3) gateway_enable=YES in rc.conf
4) This is also in the openvpn server configuration file:
Code:
push "redirect-gateway def1"
So, when I do
tcpdump -i tun0
I see all the traffic request from my laptop.When I look at
tcpdump -i vtnet0
(Internet facing interface) - I see nothing.To me, this looks like it is not redirecting traffic.
What am I missing? Some help would be appreciated..
Thank you.