<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Cannot remove IPv6 static routes]]></title><description><![CDATA[<p dir="auto">Similar to <a href="https://redmine.pfsense.org/issues/12728" target="_blank" rel="noopener noreferrer nofollow ugc">https://redmine.pfsense.org/issues/12728</a> I am seeing routes not be removed?</p>
<p dir="auto">That report says "The command should be using -inet6 for IPv6 routes" but neither are used?</p>
<p dir="auto">Using -inet6 does work.</p>
<p dir="auto">Just looking for confirmation before I open a new bug, or reopen.</p>
<pre><code>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::'
</code></pre>
<p dir="auto">If I run it manually from the GUI command prompt with <em>-inet6</em> it works:<br />
Shell Output - <code>/sbin/route delete -inet6 2603:x:x:fb41::/64 2603:x:x:fba0::2</code><br />
response:<br />
<code>delete net 2603:x:x:fb41::/64: gateway 2603:x:x:fba0::2</code></p>
]]></description><link>https://forum.netgate.com/topic/201479/cannot-remove-ipv6-static-routes</link><generator>RSS for Node</generator><lastBuildDate>Sun, 11 Oct 2026 15:29:35 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/201479.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Oct 2026 21:38:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cannot remove IPv6 static routes on Wed, 07 Oct 2026 14:31:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patient0">@<bdi>patient0</bdi></a> They are not overlapping. They are sequential.  They are also all in an alias, which seems irrelevant for this.  That's the only other mention in the config of the /64 prefixes.</p>
<p dir="auto">Given the code comment above it would now be interesting to find out whether they are supposed to be deleted, or not.  Perhaps that function is irrelevant to this...I was just searching the file.</p>
]]></description><link>https://forum.netgate.com/post/1249928</link><guid isPermaLink="true">https://forum.netgate.com/post/1249928</guid><dc:creator><![CDATA[SteveITS]]></dc:creator><pubDate>Wed, 07 Oct 2026 14:31:48 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot remove IPv6 static routes on Wed, 07 Oct 2026 05:12:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/steveits">@<bdi>SteveITS</bdi></a> it's odd, I created one IPv6 gateway on LAN and two static routes (using the same gateway) of which I disabled one. No errors are show in any logs, neither when I disable it nor when I delete the disabled route.</p>
<p dir="auto">Are they referred to somewhere else? Are they overlapping or in any other way special? Can you export the config and check if you see anything related to that routes/gateway(s) outside of the static routes section?</p>
]]></description><link>https://forum.netgate.com/post/1249902</link><guid isPermaLink="true">https://forum.netgate.com/post/1249902</guid><dc:creator><![CDATA[patient0]]></dc:creator><pubDate>Wed, 07 Oct 2026 05:12:21 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot remove IPv6 static routes on Mon, 05 Oct 2026 17:24:26 GMT]]></title><description><![CDATA[<p dir="auto">Hmm :</p>
<pre><code>function system_staticroutes_configure($interface = "", $update_dns = false) {
(...)
		foreach ($static_routes as $rtent) {
			/* Do not delete disabled routes,
			 * see https://redmine.pfsense.org/issues/3709
			 * and https://redmine.pfsense.org/issues/10706 */
</code></pre>
<p dir="auto">The redmines sound a bit like it's intentional to avoid disabled static routes stepping on OpenVPN or other auto added routes?  If so a graceful error seems more appropriate.</p>
<p dir="auto">Edit: not using OpenVPN or any VPN on this one.</p>
]]></description><link>https://forum.netgate.com/post/1249845</link><guid isPermaLink="true">https://forum.netgate.com/post/1249845</guid><dc:creator><![CDATA[SteveITS]]></dc:creator><pubDate>Mon, 05 Oct 2026 17:24:26 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot remove IPv6 static routes on Mon, 05 Oct 2026 17:17:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patient0">@<bdi>patient0</bdi></a> Yes the routes have a gateway on LAN (sending traffic to an internal router).</p>
<p dir="auto">If I disable the route, and click Apply, I get the "NOTICE" (bad address) error in the system log, and the route is not removed.</p>
<p dir="auto">I then re-enabled the route, apply, delete it, apply, and the route <em>is</em> correctly deleted.</p>
<p dir="auto">So the bug does seem to be when <em>disabling</em> a route.</p>
<p dir="auto">Also I tried to add it back in again.  I saved it, then before applying edited it again to change the description. I cannot do so, with error:</p>
<p dir="auto">"The following input errors were detected:<br />
A route to these destination networks already exists: [IPv6 subnet]"</p>
<p dir="auto">Only after applying the new route, can I then successfully edit it.</p>
]]></description><link>https://forum.netgate.com/post/1249844</link><guid isPermaLink="true">https://forum.netgate.com/post/1249844</guid><dc:creator><![CDATA[SteveITS]]></dc:creator><pubDate>Mon, 05 Oct 2026 17:17:27 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot remove IPv6 static routes on Sun, 04 Oct 2026 05:38:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/steveits">@<bdi>SteveITS</bdi></a> did you create a gateway for this route? Or using a gateway group (trying to recreated the issue)</p>
<p dir="auto">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:</p>
<pre><code>   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                 }
</code></pre>
<p dir="auto">Does your system.inc look the same?</p>
]]></description><link>https://forum.netgate.com/post/1249780</link><guid isPermaLink="true">https://forum.netgate.com/post/1249780</guid><dc:creator><![CDATA[patient0]]></dc:creator><pubDate>Sun, 04 Oct 2026 05:38:36 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot remove IPv6 static routes on Sat, 03 Oct 2026 20:57:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patient0">@<bdi>patient0</bdi></a> 26.07.</p>
<p dir="auto">Added in the GUI some time ago.</p>
<p dir="auto">I was trying many things and I’m pretty sure I disabled the routes, will try to repro again this week.</p>
]]></description><link>https://forum.netgate.com/post/1249755</link><guid isPermaLink="true">https://forum.netgate.com/post/1249755</guid><dc:creator><![CDATA[SteveITS]]></dc:creator><pubDate>Sat, 03 Oct 2026 20:57:19 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot remove IPv6 static routes on Sat, 03 Oct 2026 04:54:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/steveits">@<bdi>SteveITS</bdi></a> 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.</p>
<p dir="auto">But adding and removing a static route does work for me.</p>
]]></description><link>https://forum.netgate.com/post/1249738</link><guid isPermaLink="true">https://forum.netgate.com/post/1249738</guid><dc:creator><![CDATA[patient0]]></dc:creator><pubDate>Sat, 03 Oct 2026 04:54:56 GMT</pubDate></item></channel></rss>