• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

All flow should pass through VPN but IP conflict!

OpenVPN
3
5
126
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E
    ewok2
    last edited by 21 days ago

    Hello
    Another strange behaviour with my pfsense + OpenVPN
    I am outside my home (not in my private network which is as 192.168.0.0/24)

    I am connected my laptop to a Wifi box that give me an IP as 192.168.0.0/24
    I can connect to my pfsense with the laptop.
    I have configure the VPN to force all trafic through the VPN
    (And check it, all download pass through the VPN)

    But when trying to reach (ping or ssh or weg) host from my local network that are in the range 192.168.0.0/24 it does not works.
    If I try to reach host from my local network taht are in the range 192.168.30.0/24 it works

    It is like the DNS request are not forced through the VPN ?
    Is it possible to correct this behaviour?
    Thanks

    N J 2 Replies Last reply 20 days ago Reply Quote 0
    • N
      netblues @ewok2
      last edited by 20 days ago

      @ewok2 Yes, that is expected.

      You should never use "default" ranges at your networks and then expecting NOT to have conflicts when roaming to arbitrary networks.

      Renumber your lan away from 192.168.0 or 1 or 2 to something more "extreme" and it should be fine.

      E 1 Reply Last reply 20 days ago Reply Quote 0
      • E
        ewok2 @netblues
        last edited by 20 days ago

        @netblues
        Thanks for reply
        Indeed changing my IP in my local network will works but I will not do it over OpenVPN ;-) to many risk to loose the connection :-)

        Another way I found which "can be a temporary solution"
        Set an option in openVPN
        push "route 192.168.0.96 255.255.255.240"

        It will be more priority than the local network wich is on /24
        but not all IP will be accessible ;-)

        1 Reply Last reply Reply Quote 0
        • J
          JKnott @ewok2
          last edited by 20 days ago

          @ewok2 It looks like you're trying to use the same subnet on both ends of the VPN. That will not work, as your computer will think the remote devices are on the local end of the VPN. You have to use different subnets at each end.

          PfSense running on Qotom mini PC
          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
          UniFi AC-Lite access point

          I haven't lost my mind. It's around here...somewhere...

          E 1 Reply Last reply 20 days ago Reply Quote 0
          • E
            ewok2 @JKnott
            last edited by 20 days ago

            @JKnott
            Yes your are right
            I am on vacation and it is not possible to change the local network.
            Changing my local network I will do it (but when I will be back at home)

            So I was trying to find a temporary bypass :-)

            1 Reply Last reply Reply Quote 0
            2 out of 5
            • First post
              2/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.