Script WAN pppoe disconnect and reconnect
-
I use an ISP that has a seemingly half baked IPv6 implementation which is also impacted by a bug in pfSense.
Every week my ISP stops routing my ipv6 subnet to me, the only way to resolve this is to disconnect and reconnect the WAN connection. When this happens pfSense things wan v6 is still up because it can communicate fine, it's just the routed subnet that stops working.
From time to time this will not work, and that is because pfSense has multiple dhcp6c instances running which causes xid mismatch errors and requires me to shell in, kill the processes, and restart the wan interface.
Is there a client command that I can use in a script to get the wan interface to reconnect?
-
Look see in IPv6-forum, it's pretty actual there.
-
I'm looking for a way to cleanly call the WAN connection to reset via a shell script. Nothing ipv6 specific. I did search the forum for anything to do with commands via the shell but am coming up dry. If you have found something that I've missed a link would be greatly appreciated.
-
No, there isn't a ready script. But if you have found the problem you could help to find a permanent solution.
However, temporary you could make a script, if more is known about the typical connection details.
Do you have an fe80:: address as a privacyextension on WAN ? Show your screenshot of Status-Interfaces PPPoE.Did you evaluate https://forum.pfsense.org/index.php?topic=103990.msg580069#msg580069 ?
-
I'm not looking for a script that's ready to go. Perhaps I gave too much information and made my question confusing in the process. Is there a ways to call disconnect and reconnect for WAN via cli/shell?
If not does anyone know where I can find the commands that are run so I can try to build a script that can simulate it?
I guess an alternative could be to use something like auto it to work with the web pages directly..
-
I use an ISP that has a seemingly half baked IPv6 implementation which is also impacted by a bug in pfSense.
This problem is already under discussion in the IPv6 forum.
From time to time this will not work, and that is because pfSense has multiple dhcp6c instances running which causes xid mismatch errors and requires me to shell in, kill the processes, and restart the wan interface.
Is there a client command that I can use in a script to get the wan interface to reconnect?
As I just posted in that thread:
/usr/local/sbin/ppp-ipv6 pppoe0 down ; pkill -xf '^.*dhcp6c.*pppoe0$' ; sleep 2 ; /usr/local/sbin/ppp-ipv6 pppoe0 up
This attempts to bring down the IPv6 connectivity on pppoe0 cleanly, kills off any remaining dhcp6c instances for pppoe0, waits 2 seconds, then restarts IPv6 on pppoe0.
Read the full thread for more information.