[Sharing] some troubleshooting for IPv6 enabled system

Started by ezraimanuel, November 07, 2018, 02:45:38 PM

Previous topic - Next topic
Hey guys, I always experiencing IPv6 loss after reboot (I have pf enabled to filter IPv6), the gateway monitor always marked it as "down", and when i login to terminal i cannot ping the gateway. Turns out i have to disable the PF and re-enable it after pinging the gateway. So i add script to prevent IPv6 gateway link loss on startup.

here it is:
/usr/local/etc/rc.syshook.d/start/91-check-gateway

#!/usr/local/bin/php
<?php
require_once("config.inc");
require_once(
"interfaces.inc");
require_once(
"util.inc");
$gateways = return_gateways_array(false, true, false);
passthru("pfctl -d");
foreach (
$gateways as $gateway) { if ($gateway['ipprotocol'] === 'inet6') { passthru("ping6 -c 1 " . $gateway['gateway']); }; };
passthru("pfctl -e");

hope this helps :)

Hey,

if you have an Static IPv6 Setup on the WAN Interface, you hit the same Issue as I.

I have created an Issue on Github with an Workaround, that does not temporarly diables the whole Packet-Filter.

https://github.com/opnsense/core/issues/3015

Can you test my Workaround and add your Testresult on the Github Issue?


Shipping the fix in 18.7.9.


Cheers,
Franco
"AI has absolutely reduced the cost of creating technical debt." -- ChatGPT