OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • [Sharing] some troubleshooting for IPv6 enabled system
« previous next »
  • Print
Pages: [1]

Author Topic: [Sharing] some troubleshooting for IPv6 enabled system  (Read 3106 times)

ezraimanuel

  • Newbie
  • *
  • Posts: 10
  • Karma: 2
    • View Profile
[Sharing] some troubleshooting for IPv6 enabled system
« 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
<?phprequire_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 :)
Logged

bbaumer

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: [Sharing] some troubleshooting for IPv6 enabled system
« Reply #1 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?
Logged

mahescho

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 2
    • View Profile
Re: [Sharing] some troubleshooting for IPv6 enabled system
« Reply #2 on: December 05, 2018, 07:11:47 pm »
count me in ...

https://forum.opnsense.org/index.php?topic=9639.0
Logged
OPNsense 24.1.6-amd64
FreeBSD 13.2-RELEASE-p11
OpenSSL 3.0.13

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17707
  • Karma: 1618
    • View Profile
Re: [Sharing] some troubleshooting for IPv6 enabled system
« Reply #3 on: December 07, 2018, 07:52:33 am »
Shipping the fix in 18.7.9.


Cheers,
Franco
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • [Sharing] some troubleshooting for IPv6 enabled system
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2