Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Cannot remove IPv6 static routes

    Scheduled Pinned Locked Moved IPv6
    4 Posts 2 Posters 133 Views 2 Watching
    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.
    • SteveITSS Offline
      SteveITS Galactic Empire
      last edited by

      Similar to https://redmine.pfsense.org/issues/12728 I am seeing routes not be removed?

      That report says "The command should be using -inet6 for IPv6 routes" but neither are used?

      Using -inet6 does work.

      Just looking for confirmation before I open a new bug, or reopen.

      NOTICE The command '/sbin/route delete 2603:x:x:fb41::/64 2603:x:x:fba0::2' returned exit code '68', the output was 'route: bad address: 2603:x:x:fb41::'
      

      If I run it manually from the GUI command prompt with -inet6 it works:
      Shell Output - /sbin/route delete -inet6 2603:x:x:fb41::/64 2603:x:x:fba0::2
      response:
      delete net 2603:x:x:fb41::/64: gateway 2603:x:x:fba0::2

      To upgrade, select your branch in System/Update/Update Settings. When upgrading, allow 10-15 minutes to reboot, or more depending on packages, CPU, and/or disk speed.
      Only install packages for your version of pfSense.
      Upvote 👍 helpful posts!

      patient0P 1 Reply Last reply Reply Quote 0
      • patient0P Offline
        patient0 @SteveITS
        last edited by

        @SteveITS on what system is that happening? And how is the route added? That indeed sounds like the exact same issue as in the referenced ticket.

        But adding and removing a static route does work for me.

        SteveITSS 1 Reply Last reply Reply Quote 0
        • SteveITSS Offline
          SteveITS Galactic Empire @patient0
          last edited by

          @patient0 26.07.

          Added in the GUI some time ago.

          I was trying many things and I’m pretty sure I disabled the routes, will try to repro again this week.

          To upgrade, select your branch in System/Update/Update Settings. When upgrading, allow 10-15 minutes to reboot, or more depending on packages, CPU, and/or disk speed.
          Only install packages for your version of pfSense.
          Upvote 👍 helpful posts!

          patient0P 1 Reply Last reply Reply Quote 0
          • patient0P Offline
            patient0 @SteveITS
            last edited by

            @SteveITS did you create a gateway for this route? Or using a gateway group (trying to recreated the issue)

            The fix is around line 1933 I assume (doesn't show the diff in the issue) in /etc/inc/system.inc. According to the tickets it's in system.inc and there seems to be the place where static routes get deleted:

               1931                 if (count($delete_targets)) {
               1932                         foreach ($delete_targets as $dts) {
               1933                                 if (is_subnetv4($dts)) {
               1934                                         $family = "-inet";
               1935                                 } else {
               1936                                         $family = "-inet6";       
               1937                                 }
               1938                                 $route = route_get($dts, '', true);
               1939                                 if (!count($route)) {
               1940                                         continue;
               1941                                 }
               1942                                 $toapplylist[] = "/sbin/route delete " .
               1943                                     $family . " " . $dts . " " . $delgw;
               1944                         }
               1945                 }
            

            Does your system.inc look the same?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
            Privacy Policy · Cookie Policy