I set up a VPN server on my Pi3 following the same steps that I did in Ubuntu (link). I use that VPN server daily without issue.
I can successfully connect to the VPN, but I cannot get to the internet. I have tried or checked:
- disabling ufw
sudo nano /etc/openvpn/server.confcontains without comments:
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 18.104.22.168"
push "dhcp-option DNS 22.214.171.124"
- I then read some posts about changing
iptableswhich I did not have to do in ubuntu, but gave it a shot anyway (not really knowing what I am doing here)
sudo /sbin/iptables -P FORWARD ACCEPTand
sudo /sbin/iptables --table nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j SNAT --to-source 192.168.107.3
- ssh into the pi and can