openvpn not all traffic routing thru tunnel



  • I have setup a VPN Server at the site

    the LAN at remote site is 192.168.1.0/24
    The OpenVPN LAN subnet is 10.102.1.0/24

    I can connect sucessfully and get IP assigned in subnet 10.102.1.0/24 however all traffic not going thru the tunnel

    As an example my home network is 192.168.1.0/24 and the remote site LAN is also 192.168.1.0/24 so connecting to say 192.168.1.1 it connects to my local server and not the server on remote site

    I have checked the box in the server settings Force all client-generated IPv4 traffic through the tunnel.

    Anything I am missing, firewall rules look all ok



  • @jfish said in openvpn not all traffic routing thru tunnel:

    As an example my home network is 192.168.1.0/24 and the remote site LAN is also 192.168.1.0/24

    How should the machine know to which device you want to connect to at this moment?

    So change one of the LAN networks IP ranges. 192.168.1.0/24 is newer a good choice if you want to run a VPN and connect to remote networks.



  • @viragomann

    I wouild assume the setting to route all traffic on client thru VPN tunnel to remote site, so connecting to IP address 192.168.1.1 would connect to remote host and not the local host on my subnet, unless I am missing something here



  • @jfish
    Your computer is in your LAN, same as 192.168.1.1. So if your computer sends a packet to 192.168.1.1, the packet goes directly to the destination machine, without passing pfSense. Only packets for IP addresses outside your LAN subnet are sent to the default gateway (pfSense).
    So pfSense is not able to route these packets to anywhere, cause it doesn't get them at all.


Log in to reply