No acces to Internet when connected to oVPN
-
@gamienator-0 said in No acces to Internet when connected to oVPN:
10.0.9.1
What is it? Why we are talking in English here...
-
@bob-dig 10.0.9.1 is the Gateway. The virtual Network of that oVPN is 10.0.9.0/24
-
@gamienator-0 So when you talked about your oVPN client you meant a Client on your Windows Machine connecting to where?
-
@gamienator-0
So the routes look well. Hence packets to both IPs, 8.8.8.8 and 216.58.212.163, should go over the VPN.Sniff the traffic on pfSense OpenVPN interface using Packet Capture to verify this.
-
@bob-dig Exactly. It connects to the pfsense Box at home. The oVPN Client on my Windows Machine has 10.9.0.2 as an IP Adress and can reach all internal IPs (LAN has 10.0.0.0/21 and the LAN IP Address of the pfsense is 10.0.7.1 and is reachable)
-
@gamienator-0 I can't follow anymore. Maybe @viragomann is still on board.
-
Alright:
Internal Network on my pfSense: 10.0.0.0/21 and the pfsense got LAN 10.0.7.1.
I'm outside of my home, and connecting to the oVPN Server. The oVPN Network is 10.9.0.0/24, and my windows client, which I'm connecting via the OpenVPN Client receives the IP-Address 10.9.0.2.
What else are you confused? I'm more then happy to clarify that :)
Aaah I see, I had a typo in my previous post. Sorry. I edited that
-
@viragomann Here is the Packet Capture. So there is something going in
OpenVPN Server.zip -
@gamienator-0
Can only find pings to 8.8.8.8, but not to 216.58.212.163.
Did you try?
If yes, it are presumably not routed over the VPN indeed or simply blocked anywhere. -
@viragomann I did try it on that record. So year, it seems like it get blocked ... but why? On the systemlogs Firewall I see only this couple of entrys:
-
@gamienator-0
No, not on pfSense. If it was blocked on pfSense you would at least see the packets on the OpenVPN interface though.So I assume, the traffic is either blocked on the client or routed out to another gateway. However, according to the routing table the latter shouldn't be the case.
-
@viragomann Okay ... but thats weird, since I got this issue on different client, even an iPhone aswell.
So I guess there are two options: I try to complete wipe the oVPN Server on the pfSense, rebuild the complete pfSense or move the oVPN server to a small VM and passthrough the Port
-
@gamienator-0 said in No acces to Internet when connected to oVPN:
Okay ... but thats weird, since I got this issue on different client
Yes, it is.
Did you try to ping the IP 216.58.212.163, not the host name?
Consider that the IP you get from DNS for the host name may change.The VPN server should run on the router which is the default gateway, otherwise the routing configuration is more complex.
-
@viragomann Yes I tried to ping that directly aswell, without success sadly
-
Hey everyone,
I found a very interesting Scenario.
Just to recap: my home pfSense Box has 1 OpenVPN Server and 4 OpenVPN Clients configured.
I needed to connect to my the pfSense at home via OpenVPN to check something and I noticed, that I was able to browse through the Internet. Which shocked me, and I thought well, maybe my reboot fixed it. Afteer a short investigation I noticed that my pfSense stopped the OpenVPN Client, so it wasn't connecting to the openVPN Servers which I configured.
After starting the clients on my pfSense I connected to my pfSense via iPhpne: And then I wasn't able to browse the internet. Deactivating the clients helped: my iPhone had access to the internet.
Can anybody explain to me what on earth is happening?
Edit: Holy ... I fixed it!
After defining in the catch all Rule of the OpenVPN Interface the default gateway every client can now acces the internet.