IPv6 Configuration Type: DHCPv6Configuration Mode: Basic[X] Request only an IPv6 prefixPrefix delegation size: 56[X] Send IPv6 prefix hint[X] Directly send SOLICIT[ ] Prevent release[ ] Enable debug[X] Use IPv4 connectivityUse VLAN priority: Disabled
IPv6 Configuration Type: Track InterfaceIPv6 Interface: WANIPv6 Prefix ID: 0
Jun 22 23:42:56 kernel: 00:1::53,18196,53,36
Jun 22 23:44:04 opnsense: /usr/local/etc/rc.newwanipv6: IP renewal is starting on 'pppoe0'Jun 22 23:44:04 opnsense: /usr/local/etc/rc.newwanipv6: On (IP address: fe80::---) (interface: WAN[wan]) (real interface: pppoe0).Jun 22 23:44:09 opnsense: /usr/local/etc/rc.newwanip: IP renewal is starting on 'pppoe0'Jun 22 23:44:09 opnsense: /usr/local/etc/rc.newwanip: On (IP address: 87.---) (interface: WAN[wan]) (real interface: pppoe0).Jun 22 23:44:10 opnsense: /usr/local/etc/rc.newwanip: Accept router advertisements on interface pppoe0Jun 22 23:44:11 opnsense: /usr/local/etc/rc.newwanip: ROUTING: entering configure using 'wan'Jun 22 23:44:11 opnsense: /usr/local/etc/rc.newwanip: ROUTING: no IPv4 default gateway set, assuming wanJun 22 23:44:11 opnsense: /usr/local/etc/rc.newwanip: ROUTING: no IPv6 default gateway set, assuming wanJun 22 23:44:11 opnsense: /usr/local/etc/rc.newwanip: ROUTING: setting IPv4 default route to 62.---Jun 22 23:44:11 opnsense: /usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway '62.---'Jun 22 23:44:11 opnsense: /usr/local/etc/rc.newwanip: ROUTING: setting IPv6 default route to fe80::---Jun 22 23:44:11 opnsense: /usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway 'fe80::---%pppoe0'Jun 22 23:44:14 opnsense: /usr/local/etc/rc.newwanipv6: IP renewal is starting on 'pppoe0'Jun 22 23:44:14 opnsense: /usr/local/etc/rc.newwanipv6: On (IP address: fe80::---) (interface: WAN[wan]) (real interface: pppoe0).Jun 22 23:44:18 opnsense: /usr/local/etc/rc.newwanipv6: IP renewal is starting on 'pppoe0'Jun 22 23:44:18 opnsense: /usr/local/etc/rc.newwanipv6: On (IP address: fe80::---) (interface: WAN[wan]) (real interface: pppoe0).Jun 22 23:44:20 opnsense: /usr/local/etc/rc.newwanip: Resyncing OpenVPN instances for interface WAN.Jun 22 23:44:33 opnsense: /usr/local/etc/rc.newwanip: Dynamic DNS: updating cache file /var/cache/dyndns_wan_---_0.cache: 87---Jun 22 23:44:33 opnsense: /usr/local/etc/rc.newwanip:Jun 22 23:50:36 opnsense: /usr/local/etc/rc.configure_interface: Accept router advertisements on interface pppoe0Jun 22 23:50:36 opnsense: /usr/local/etc/rc.configure_interface: ROUTING: entering configure using 'wan'Jun 22 23:50:36 opnsense: /usr/local/etc/rc.configure_interface: ROUTING: no IPv4 default gateway set, assuming wanJun 22 23:50:36 opnsense: /usr/local/etc/rc.configure_interface: ROUTING: no IPv6 default gateway set, assuming wanJun 22 23:50:36 opnsense: /usr/local/etc/rc.configure_interface: ROUTING: setting IPv4 default route to 62.---Jun 22 23:50:36 opnsense: /usr/local/etc/rc.configure_interface: ROUTING: creating /tmp/pppoe0_defaultgw using '62.---'Jun 22 23:50:36 opnsense: /usr/local/etc/rc.configure_interface: The command '/sbin/route add -'inet' default '62---' returned exit code '1', the output was 'route: writing to routing socket: Network is unreachable add net default: gateway 62.---fib 0: Network is unreachable'Jun 22 23:50:36 opnsense: /usr/local/etc/rc.configure_interface: ROUTING: setting IPv6 default route to fe80::---Jun 22 23:50:36 opnsense: /usr/local/etc/rc.configure_interface: ROUTING: keeping current default gateway 'fe80::---%pppoe0'Jun 22 23:50:40 kernel: ng0: changing name to 'pppoe0'Jun 22 23:50:44 opnsense: /usr/local/etc/rc.dyndns: Aborted IPv4 detection: no address for pppoe0Jun 22 23:50:44 opnsense: /usr/local/etc/rc.dyndns: Dynamic DNS (rou---) There was an error trying to determine the public IP for interface - wan(pppoe0). Probably interface is not a WAN interface.Jun 22 23:50:45 opnsense: /usr/local/etc/rc.newwanipv6: IP renewal is starting on 'pppoe0'Jun 22 23:50:45 opnsense: /usr/local/etc/rc.newwanipv6: On (IP address: fe80::---) (interface: WAN[wan]) (real interface: pppoe0).Jun 22 23:50:46 opnsense: /usr/local/etc/rc.newwanipv6: IP renewal is starting on 'pppoe0'Jun 22 23:50:46 opnsense: /usr/local/etc/rc.newwanipv6: On (IP address: fe80::---) (interface: WAN[wan]) (real interface: pppoe0).Jun 22 23:50:47 opnsense: /usr/local/etc/rc.newwanipv6: The command '/sbin/ifconfig pppoe0 inet6 fe80::--- delete' returned exit code '1', the output was 'ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address'Jun 22 23:50:47 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: entering configure using 'wan'Jun 22 23:50:47 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: no IPv4 default gateway set, assuming wanJun 22 23:50:47 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: no IPv6 default gateway set, assuming wanJun 22 23:50:47 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: skipping IPv4 default routeJun 22 23:50:47 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: setting IPv6 default route to fe80:---Jun 22 23:50:47 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: keeping current default gateway 'fe80::--%pppoe0'Jun 22 23:50:48 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: entering configure using 'wan'Jun 22 23:50:48 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: no IPv4 default gateway set, assuming wanJun 22 23:50:48 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: no IPv6 default gateway set, assuming wanJun 22 23:50:48 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: skipping IPv4 default routeJun 22 23:50:48 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: setting IPv6 default route to fe80::---Jun 22 23:50:48 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: keeping current default gateway 'fe80::---%pppoe0'Jun 22 23:50:55 opnsense: /usr/local/etc/rc.newwanipv6: Resyncing OpenVPN instances for interface WAN.Jun 22 23:51:02 opnsense: /usr/local/etc/rc.newwanipv6: Resyncing OpenVPN instances for interface WAN.Jun 22 23:51:12 opnsense: /usr/local/etc/rc.newwanipv6: Aborted IPv4 detection: no address for pppoe0Jun 22 23:51:12 opnsense: /usr/local/etc/rc.newwanipv6: Dynamic DNS (rou---) There was an error trying to determine the public IP for interface - wan(pppoe0). Probably interface is not a WAN interface.
Jun 30 21:52:29 opnsense: /usr/local/etc/rc.newwanip:Jun 30 21:52:29 opnsense: /usr/local/etc/rc.newwanip: Dynamic DNS: updating cache file /var/cache/dyndns---: 87---Jun 30 21:52:17 opnsense: /usr/local/etc/rc.newwanip: Interface '' is disabled or empty, nothing to do.Jun 30 21:52:17 opnsense: /usr/local/etc/rc.newwanip: IP renewal is starting on 'ovpns1'Jun 30 21:52:16 kernel: ovpns1: link state changed to UPJun 30 21:52:08 kernel: ovpns1: link state changed to DOWNJun 30 21:52:07 opnsense: /usr/local/etc/rc.newwanip: Resyncing OpenVPN instances for interface WAN.Jun 30 21:52:04 opnsense: /usr/local/etc/rc.newwanipv6: On (IP address: fe80---) (interface: WAN[wan]) (real interface: pppoe0).Jun 30 21:52:04 opnsense: /usr/local/etc/rc.newwanipv6: IP renewal is starting on 'pppoe0'Jun 30 21:52:00 opnsense: /usr/local/etc/rc.newwanipv6: On (IP address: fe80---) (interface: WAN[wan]) (real interface: pppoe0).Jun 30 21:52:00 opnsense: /usr/local/etc/rc.newwanipv6: IP renewal is starting on 'pppoe0'Jun 30 21:51:58 opnsense: /usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway 'fe80---%pppoe0'Jun 30 21:51:58 opnsense: /usr/local/etc/rc.newwanip: ROUTING: setting IPv6 default route to fe80---Jun 30 21:51:58 opnsense: /usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway '62---'Jun 30 21:51:57 opnsense: /usr/local/etc/rc.newwanip: ROUTING: setting IPv4 default route to 62---Jun 30 21:51:57 opnsense: /usr/local/etc/rc.newwanip: ROUTING: no IPv6 default gateway set, assuming wanJun 30 21:51:57 opnsense: /usr/local/etc/rc.newwanip: ROUTING: no IPv4 default gateway set, assuming wanJun 30 21:51:57 opnsense: /usr/local/etc/rc.newwanip: ROUTING: entering configure using 'wan'Jun 30 21:51:57 opnsense: /usr/local/etc/rc.newwanip: Accept router advertisements on interface pppoe0Jun 30 21:51:56 opnsense: /usr/local/etc/rc.newwanip: On (IP address: 87---) (interface: WAN[wan]) (real interface: pppoe0).Jun 30 21:51:56 opnsense: /usr/local/etc/rc.newwanip: IP renewal is starting on 'pppoe0'
Jul 1 08:33:43 opnsense: /usr/local/etc/rc.newwanip:Jul 1 08:33:43 opnsense: /usr/local/etc/rc.newwanip: Dynamic DNS: updating cache file /var/cache/dyndns_---_0.cache: 87---Jul 1 08:33:31 opnsense: /usr/local/etc/rc.newwanip: Resyncing OpenVPN instances for interface WAN.Jul 1 08:33:26 opnsense: /usr/local/etc/rc.newwanipv6: On (IP address: fe80---) (interface: WAN[wan]) (real interface: pppoe0).Jul 1 08:33:26 opnsense: /usr/local/etc/rc.newwanipv6: IP renewal is starting on 'pppoe0'Jul 1 08:33:22 opnsense: /usr/local/etc/rc.newwanipv6: On (IP address: fe80---) (interface: WAN[wan]) (real interface: pppoe0).Jul 1 08:33:21 opnsense: /usr/local/etc/rc.newwanipv6: IP renewal is starting on 'pppoe0'Jul 1 08:33:21 opnsense: /usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway 'fe80---%pppoe0'Jul 1 08:33:21 opnsense: /usr/local/etc/rc.newwanip: ROUTING: setting IPv6 default route to fe80---Jul 1 08:33:21 opnsense: /usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway '62---'Jul 1 08:33:21 opnsense: /usr/local/etc/rc.newwanip: ROUTING: setting IPv4 default route to 62---Jul 1 08:33:21 opnsense: /usr/local/etc/rc.newwanip: ROUTING: no IPv6 default gateway set, assuming wanJul 1 08:33:21 opnsense: /usr/local/etc/rc.newwanip: ROUTING: no IPv4 default gateway set, assuming wanJul 1 08:33:21 opnsense: /usr/local/etc/rc.newwanip: ROUTING: entering configure using 'wan'Jul 1 08:33:21 opnsense: /usr/local/etc/rc.newwanip: Accept router advertisements on interface pppoe0Jul 1 08:33:19 opnsense: /usr/local/etc/rc.newwanip: On (IP address: 87---) (interface: WAN[wan]) (real interface: pppoe0).Jul 1 08:33:19 opnsense: /usr/local/etc/rc.newwanip: IP renewal is starting on 'pppoe0'Jul 1 08:33:15 opnsense: /usr/local/etc/rc.newwanipv6: Dynamic DNS (r--- There was an error trying to determine the public IP for interface - wan(pppoe0). Probably interface is not a WAN interface.Jul 1 08:33:15 opnsense: /usr/local/etc/rc.newwanipv6: Aborted IPv4 detection: no address for pppoe0Jul 1 08:33:08 opnsense: /usr/local/etc/rc.newwanipv6: Dynamic DNS (r---) There was an error trying to determine the public IP for interface - wan(pppoe0). Probably interface is not a WAN interface.Jul 1 08:33:08 opnsense: /usr/local/etc/rc.newwanipv6: Aborted IPv4 detection: no address for pppoe0Jul 1 08:32:59 opnsense: /usr/local/etc/rc.newwanip: Interface '' is disabled or empty, nothing to do.Jul 1 08:32:58 opnsense: /usr/local/etc/rc.newwanip: IP renewal is starting on 'ovpns1'Jul 1 08:32:58 kernel: ovpns1: link state changed to UPJul 1 08:32:50 opnsense: /usr/local/etc/rc.newwanipv6: Resyncing OpenVPN instances for interface WAN.Jul 1 08:32:43 kernel: ovpns1: link state changed to DOWNJul 1 08:32:43 opnsense: /usr/local/etc/rc.newwanipv6: Resyncing OpenVPN instances for interface WAN.Jul 1 08:32:37 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: keeping current default gateway 'fe80---%pppoe0'Jul 1 08:32:37 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: setting IPv6 default route to fe80---Jul 1 08:32:37 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: skipping IPv4 default routeJul 1 08:32:37 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: no IPv6 default gateway set, assuming wanJul 1 08:32:37 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: no IPv4 default gateway set, assuming wanJul 1 08:32:37 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: entering configure using 'wan'Jul 1 08:32:35 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: keeping current default gateway 'fe80---%pppoe0'Jul 1 08:32:35 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: setting IPv6 default route to fe80---Jul 1 08:32:35 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: skipping IPv4 default routeJul 1 08:32:35 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: no IPv6 default gateway set, assuming wanJul 1 08:32:35 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: no IPv4 default gateway set, assuming wanJul 1 08:32:35 opnsense: /usr/local/etc/rc.newwanipv6: ROUTING: entering configure using 'wan'Jul 1 08:32:35 opnsense: /usr/local/etc/rc.newwanipv6: The command '/sbin/ifconfig pppoe0 inet6 fe80---- delete' returned exit code '1', the output was 'ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address'Jul 1 08:32:34 opnsense: /usr/local/etc/rc.newwanipv6: On (IP address: fe80:---) (interface: WAN[wan]) (real interface: pppoe0).Jul 1 08:32:34 opnsense: /usr/local/etc/rc.newwanipv6: IP renewal is starting on 'pppoe0'Jul 1 08:32:33 opnsense: /usr/local/etc/rc.newwanipv6: On (IP address: fe80:---) (interface: WAN[wan]) (real interface: pppoe0).Jul 1 08:32:33 opnsense: /usr/local/etc/rc.newwanipv6: IP renewal is starting on 'pppoe0'Jul 1 08:32:32 opnsense: /usr/local/etc/rc.dyndns: Dynamic DNS (r---) There was an error trying to determine the public IP for interface - wan(pppoe0). Probably interface is not a WAN interface.Jul 1 08:32:32 opnsense: /usr/local/etc/rc.dyndns: Aborted IPv4 detection: no address for pppoe0Jul 1 08:32:28 kernel: ng0: changing name to 'pppoe0'Jul 1 08:32:24 opnsense: /usr/local/etc/rc.configure_interface: ROUTING: keeping current default gateway 'fe80---d%pppoe0'Jul 1 08:32:24 opnsense: /usr/local/etc/rc.configure_interface: ROUTING: setting IPv6 default route to fe80---Jul 1 08:32:24 opnsense: /usr/local/etc/rc.configure_interface: The command '/sbin/route add -'inet' default '62---'' returned exit code '1', the output was 'route: writing to routing socket: Network is unreachable add net default: gateway 62--- fib 0: Network is unreachable'Jul 1 08:32:24 opnsense: /usr/local/etc/rc.configure_interface: ROUTING: creating /tmp/pppoe0_defaultgw using '62---'Jul 1 08:32:24 opnsense: /usr/local/etc/rc.configure_interface: ROUTING: removing /tmp/pppoe0_defaultgwJul 1 08:32:24 opnsense: /usr/local/etc/rc.configure_interface: ROUTING: setting IPv4 default route to 62---Jul 1 08:32:24 opnsense: /usr/local/etc/rc.configure_interface: ROUTING: no IPv6 default gateway set, assuming wanJul 1 08:32:24 opnsense: /usr/local/etc/rc.configure_interface: ROUTING: no IPv4 default gateway set, assuming wanJul 1 08:32:24 opnsense: /usr/local/etc/rc.configure_interface: ROUTING: entering configure using 'wan'Jul 1 08:32:24 opnsense: /usr/local/etc/rc.configure_interface: Accept router advertisements on interface pppoe0
#!/bin/sh################################################### This script checks if the WAN4 interface is up ## and the WAN6 interface is down. ## In this case the WAN interface is restartet. #################################################### Put script in /usr/local/sbin/check_gatewayv6.sh# Add action in /usr/local/opnsense/service/conf/actions.d/actions_check_gatewayv6.conf# Add cron job under System -> Settings -> Cron# Current timecurtime=$(date +%s)# Bootime in secondsuptime=$(sysctl kern.boottime | awk -F'sec = ' '{print $2}' | awk -F',' '{print $1}')# Uptime in secondsuptime=$(($curtime - $uptime))# If uptime > 120 seconds:if [ $uptime -gt 120 ]; then wan4status=$(pluginctl -r return_gateways_status | python3 -c 'import json, sys; print(json.loads(sys.stdin.read())["dpinger"]["WAN_DHCP"]["status"]);') #echo "WAN4 Status is: $wan4status" if [ "$wan4status" != "down" ]; then #echo "WAN4 is not down" wan6status=$(pluginctl -r return_gateways_status | python3 -c 'import json, sys; print(json.loads(sys.stdin.read())["dpinger"]["WAN_DHCP6"]["status"]);') #echo "WAN6 Status is: $wan6status" if [ "$wan6status" == "down" ]; then #echo "WAN6 is down" /usr/local/etc/rc.configure_interface wan sleep 2 /usr/local/sbin/pluginctl -s dpinger restart fi fifi
Bisher scheint alles wie gewünscht zu funktionieren.
Mittlerweile gibt es hierfür einen Test-Patch: https://github.com/opnsense/core/commit/11b5fe6e9cWer das Setup hat bitte test mit:# opnsense-patch 11b5fe6e9c