Alright I'm having a bit of trouble regarding VPNs. I've installed the package pptpd on my raspberry pi and configured the setting files. I'm able to connect to the VPN outside and inside my network. However when I do connect I'm unable to reach and websites. Also the only thing I can access locally is the VPN's host system.
I've read that I might need to forward the traffic using the firewall. I'm guessing some sort of loopback from the ptp adapter to the eth0 adapter? I'm kinda stumped at this point.
Alright when I run the second command I get "No such file or directory" I went a head and rebooted the machine in case iptables-persistent needed it for whatever reason and tried again, same error.
do I need to create that file? I also checked the directory of /etc/init.d/ No iptables-persistent but there is a netfiller-persistent, could that be it from a package update?
Let's see if they are correctly loaded: # iptables -L Then is eth0 the interface used by the VPN server for connecting to the internet? Also do you use OpenVZ VPS containers or any other containers?
As for the second bit, would the edit I made to the /etc/pptpd.conf set the VPN to use eth0 interface? when I do ifconfig the only interfaces I see are eth0 and the loop back.
Alright I did that and restarted the daemon, still no dice. I did notice that in the /etc/iptables/rules.v4 there was more text in there other then the ones you told me to look for:
#Generated by iptables-save v1.4.21 on Wed Jan 6 09:17:49 2016 *filter :INPUT ACCEPT [84:6512] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [47:3924] -A FORWARD -i eth0 -o ppp0 -m state --state RELATED,ESTABLISHED -j ACCE$-A FORWARD -i ppp0 -o eth0 -j ACCEPT COMMIT # Completed on Wed Jan 6 09:17:49 2016 # Generated by iptables-save v1.4.21 on Wed Jan 609:17:49 2016 *nat :PREROUTING ACCEPT [3845:291610] :INPUT ACCEPT [2779:230690] :OUTPUT ACCEPT [823:61025] :POSTROUTING ACCEPT [0:0] -A POSTROUTING -o eth0 -j MASQUERADE -A POSTROUTING -o eth0 -j MASQUERADE -A POSTROUTING -o eth0 -j MASQUERADE -A POSTROUTING -o eth0 -j MASQUERADE -A POSTROUTING -o eth0 -j MASQUERADE COMMIT # Completed on Wed Jan 6 09:17:49 2016
Figured I'd give another update to end this topic. Reinstalled Raspbian on the Pi and only installed the pptpd package and configured it while coming to these comments here and still no luck. For now I'll give up on setting up a VPN on Linux and just stick with Windows for a VPN service at home.