Very Confusing is OpenVPN Setup
-
It would be helpful to have a look at the clients routing table.
-
Is the LAN network on the client also 192.168.0.0/24?
-
@viragomann I'll try to get to it tonight or tomorrow morning I'm in Arizona And I can send you a screenshot And thanks for your help
-
@viragomann I'm sorry, yes pfSense is the default gateway to my LAN
-
@Derelict yes I believe so If I follow you correctly the client LAN is 192.168.0.1/24
-
@viragomann interesting is the static routes table is blank. Could it be that there needs to be at least one entry there for the VPN to- work properly?
-
The clients LAN must not overlap the remote LAN, least of all it can be the same subnet. If so it's not possible to access the remote site.
I've never seen an empty routing table on a device which has internet access. There must be at least one gateway and one route.
When a OpenVPN connection is established and a route is pushed by the server to its LAN network, you should see this route pointing to the servers IP, probably 10.0.8.1, as you mentioned above you can access pfSense by that IP. -
@viragomann again my apologies - my local LAN is 192.168.1.1/24; the LAN I am trying to remote into is 192.168.0.1/24
-
I am attaching a screenshot:
this is the default gateway and the Static Routes table is again blank
-
The routing table is the key here, but that one of the client!
-
@viragomann How do I display the client routing table or which one do you need to see?
-
@viragomann does this help?
-
The first step to configuring a VPN is understanding what it is you are actually doing.
On the client, connect the VPN. Then print the routing table.
Some common command lines:
Windows:
route print
Mac:netstat -rnfinet
Linux:netstat -rn4
You can use Diagnostics > Routes in the pfSense software.
-
@rwhitney said in Very Confusing is OpenVPN Setup:
I have set the route LAN network to 192.168.0.1/24
That should be 192.168.0.0/24 in the local subnets field. Unless you have set
Redirect IPv4 Gateway
in which case that should be not set anywhere as everything is routed.Steve
-
@Derelict please pardon my dust as I AM learning!
=========================================================================== Interface List 4...d0 17 c2 02 fb 3e ......Realtek PCIe GBE Family Controller 18...16 c6 3b 02 82 0f ......Microsoft Wi-Fi Direct Virtual Adapter 13...26 c6 3b 02 82 0f ......Microsoft Wi-Fi Direct Virtual Adapter #2 19...00 ff f9 1a 4d b8 ......TAP Adapter OAS NDIS 6.0 16...00 ff e2 a9 d8 ab ......TAP-Windows Adapter V9 10...74 c6 3b 02 82 0f ......Qualcomm Atheros AR9485 Wireless Network Adapter 1...........................Software Loopback Interface 1 =========================================================================== IPv4 Route Table =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.12 55 0.0.0.0 128.0.0.0 10.0.8.1 10.0.8.3 291 10.0.8.0 255.255.255.0 On-link 10.0.8.3 291 10.0.8.3 255.255.255.255 On-link 10.0.8.3 291 10.0.8.255 255.255.255.255 On-link 10.0.8.3 291 98.174.x.x 255.255.255.255 192.168.1.1 192.168.1.12 311 127.0.0.0 255.0.0.0 On-link 127.0.0.1 331 127.0.0.1 255.255.255.255 On-link 127.0.0.1 331 127.255.255.255 255.255.255.255 On-link 127.0.0.1 331 128.0.0.0 128.0.0.0 10.0.8.1 10.0.8.3 291 192.168.1.0 255.255.255.0 On-link 192.168.1.12 311 192.168.1.12 255.255.255.255 On-link 192.168.1.12 311 192.168.1.255 255.255.255.255 On-link 192.168.1.12 311 224.0.0.0 240.0.0.0 On-link 127.0.0.1 331 224.0.0.0 240.0.0.0 On-link 10.0.8.3 291 224.0.0.0 240.0.0.0 On-link 192.168.1.12 311 255.255.255.255 255.255.255.255 On-link 127.0.0.1 331 255.255.255.255 255.255.255.255 On-link 10.0.8.3 291 255.255.255.255 255.255.255.255 On-link 192.168.1.12 311 =========================================================================== Persistent Routes: None
-
@stephenw10 setting it to 192.168.0.0/24 does not seem to make a difference - I did have it set to Redirect IPv4 Gateway, but have removed that
-
Just to indicate my gratitude to everyone who has offered advice in this thread - thank you! (I am not yet connected to internal LAN however)
-
It's still sending route all and not just 192.168.0.0/24.
Try restarting the server end to be sure that new setting in place and then check the Windows client routing table.
Steve
-
@stephenw10 so reboot the netgate server? I will have to wait a couple of hours first
-
No. Restart the OpenVPN process. (Status > Services, stop it and start it. This is restarted when you make a change like disabling the redirect gateway push but Steve is just being thorough.)