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

    Route cant be removed from pfsense

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 3 Posters 472 Views
    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.
    • M
      michmoor LAYER 8 Rebel Alliance
      last edited by

      Strange VPN issue here.

      I have another vendor firewall sitting in my LAB network at 192.168.99.0/24.
      That network is off one of my interfaces on pfsense. That other vendor got an address of 192.168.99.3. I am able to connect to that vendor firewall no problem.

      Today i wanted to do testing with IPsec so my thought was to set up a IPsec tunnel between my pfsense at 192.168.99.1 and the other vendor firewall at 192.168.99.3.

      In the end i was having issues but i lost reachability to that vendor firewall. I wasn't able to ping it or ssh to it from pfsense. Odd.
      I did a traceroute to 192.168.99.3 and to my surprise, its routing out the internet.

      5f34b2ec-c0f0-4c09-84f8-c06137fd96a5-image.png

      So that is weird. Ok i checked to see if i had a static route to 192.168.99.3 and i don't. I have no idea why this route is in my route table of pfsense and i have no idea how to remove it. I have removed all configuration related to that IPsec tunnel and even restarted the IPsec service.

      Any ideas?

      Firewall: NetGate,Palo Alto-VM,Juniper SRX
      Routing: Juniper, Arista, Cisco
      Switching: Juniper, Arista, Cisco
      Wireless: Unifi, Aruba IAP
      JNCIP,CCNP Enterprise

      M 1 Reply Last reply Reply Quote 0
      • M
        michmoor LAYER 8 Rebel Alliance @michmoor
        last edited by

        @michmoor

        Fixed it

        route del -net 192.168.99.3
        

        Would be nice to know how something got stuck in the configuration.

        Firewall: NetGate,Palo Alto-VM,Juniper SRX
        Routing: Juniper, Arista, Cisco
        Switching: Juniper, Arista, Cisco
        Wireless: Unifi, Aruba IAP
        JNCIP,CCNP Enterprise

        S 1 Reply Last reply Reply Quote 0
        • S
          SteveITS Galactic Empire @michmoor
          last edited by

          @michmoor is it set as DNS or a gateway monitor IP?

          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
          Upvote 👍 helpful posts!

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Probably the IPSec config was on WAN with that gateway. Static routes are added for remote IPSec devices.

            M 1 Reply Last reply Reply Quote 1
            • M
              michmoor LAYER 8 Rebel Alliance @stephenw10
              last edited by

              @stephenw10 Ahhhhhhhh...

              Thats it. Looking through the IKE Endpoint Configuration, I never changed interface WAN to "LAB".
              So i can understand why that was pointed out wrong gateway.

              What i don't understand is why wasn't that static route removed after i removed P1/P2 configuration.

              Firewall: NetGate,Palo Alto-VM,Juniper SRX
              Routing: Juniper, Arista, Cisco
              Switching: Juniper, Arista, Cisco
              Wireless: Unifi, Aruba IAP
              JNCIP,CCNP Enterprise

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Indeed, I would have expected it to be. I would have tried stopping then starting (not restarting) IPSec if you can. It's possible it still had some part of that config present.

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