OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: ezraimanuel on November 07, 2018, 02:45:38 pm

Title: [Sharing] some troubleshooting for IPv6 enabled system
Post by: ezraimanuel on November 07, 2018, 02:45:38 pm
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

Code: [Select]
#!/usr/local/bin/php
<?php
require_once("config.inc");
require_once(
"interfaces.inc");
require_once(
"util.inc");
$gateways return_gateways_array(falsetruefalse);
passthru("pfctl -d");
foreach (
$gateways as $gateway) { if ($gateway['ipprotocol'] === 'inet6') { passthru("ping6 -c 1 " $gateway['gateway']); }; };
passthru("pfctl -e");
hope this helps :)
Title: Re: [Sharing] some troubleshooting for IPv6 enabled system
Post by: bbaumer on December 05, 2018, 02:39:19 pm
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?
Title: Re: [Sharing] some troubleshooting for IPv6 enabled system
Post by: mahescho on December 05, 2018, 07:11:47 pm
count me in ...

https://forum.opnsense.org/index.php?topic=9639.0
Title: Re: [Sharing] some troubleshooting for IPv6 enabled system
Post by: franco on December 07, 2018, 07:52:33 am
Shipping the fix in 18.7.9.


Cheers,
Franco