Cannot remove IPv6 static routes
-
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 -
@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.
-
@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.
-
@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?
Privacy Policy · Cookie Policy