No internet when connected to VPS using pIA
Posted: Mon Jul 10, 2017 11:36 pm
Ok, I'm not great with networking, but I'm trying to learn some things.
I got OpenVPN setup and Pi-Hole running on my Pi B+ by using https://github.com/pi-hole/pi-hole/wiki/OpenVPN-server:-Installation. This worked great! Pi-Hole was working, and I was able to load youtube videos on my laptop using the Pi as a gateway. My next step was to connect the Pi to my PIA VPN. I very nearly just installed the PIA app, and then realized that was silly, so I found https://www.novaspirit.com/2017/06/22/raspberry-pi-vpn-router-w-pia/ that connects with PpenVPN (except obviously skipping over the bits I had already done). However, once I connected the Pi to PIA, my laptop was no longer able to load pages. Any time I disconnected from PIA, the laptop would begin working again. While connected to PIA, the Pi is able to load pages and I have a different external IP, so I know that end is working. Also, before connecting to PIA, Pi-hole was working as a DNS service. It blocked a bunch of stuff that I know I was only loading on the laptop. However, when the VPN is connected on the Pi and I set 192.168.1.11 (the local IP of my Pi-Hole) as my routers DNS server, my internet comes to a screeching halt, and I get DNS errors when trying to load basic (unblocked) pages.
I figured the issue was related to the "To Enable Forwarding" section of the 2nd guide, so I double, triple, and quadruple checked that "net.ipv4.ip_forward=1" was not commented out in the /etc/sysctl.conf file. I'm not really bright enough to know what I'm missing at this point, and so since I didn't see any guides that did BOTH of the things, I'm a bit at a loss now. Any ideas? Let me know if you need logs - I wouldn't even know where to start.
Also, I just realized after I rebooted the Pi, that my VPN connection to PIA is persistent now, and I realized I have absolutely no idea how to disconnect it without the active terminal open, and I figured that's something I should know...
I got OpenVPN setup and Pi-Hole running on my Pi B+ by using https://github.com/pi-hole/pi-hole/wiki/OpenVPN-server:-Installation. This worked great! Pi-Hole was working, and I was able to load youtube videos on my laptop using the Pi as a gateway. My next step was to connect the Pi to my PIA VPN. I very nearly just installed the PIA app, and then realized that was silly, so I found https://www.novaspirit.com/2017/06/22/raspberry-pi-vpn-router-w-pia/ that connects with PpenVPN (except obviously skipping over the bits I had already done). However, once I connected the Pi to PIA, my laptop was no longer able to load pages. Any time I disconnected from PIA, the laptop would begin working again. While connected to PIA, the Pi is able to load pages and I have a different external IP, so I know that end is working. Also, before connecting to PIA, Pi-hole was working as a DNS service. It blocked a bunch of stuff that I know I was only loading on the laptop. However, when the VPN is connected on the Pi and I set 192.168.1.11 (the local IP of my Pi-Hole) as my routers DNS server, my internet comes to a screeching halt, and I get DNS errors when trying to load basic (unblocked) pages.
I figured the issue was related to the "To Enable Forwarding" section of the 2nd guide, so I double, triple, and quadruple checked that "net.ipv4.ip_forward=1" was not commented out in the /etc/sysctl.conf file. I'm not really bright enough to know what I'm missing at this point, and so since I didn't see any guides that did BOTH of the things, I'm a bit at a loss now. Any ideas? Let me know if you need logs - I wouldn't even know where to start.
Also, I just realized after I rebooted the Pi, that my VPN connection to PIA is persistent now, and I realized I have absolutely no idea how to disconnect it without the active terminal open, and I figured that's something I should know...