No Internet after reboot, wrong gateway.



  • I'm running pfsense from a USB key that slows down after a few days unless I reboot the box and everything's back to normal. I reboot twice a week. Upon reboot I have no Internet. It worked like this for a few years, no configuration changes, but since I upgraded from 2.4.4 to 2.4.4-RELEASE-p1 and 2.4.4-RELEASE-p12 after each reboot I don't have Internet access. The workaround is to login to the WebUI -> Interfaces -> WAN, uncheck Enable interface -> Apply, go back and check Enable interface -> Apply. Then I have Internet.

    During reboot I see the following on the console:
    route: writing to routing socket: Network is unreachable
    route: route has not been found
    route: writing to routing socket: Invalid argument

    Netstat output attached.0_1547387230269_netstat.txt

    In system.log I have the following:

    Jan 11 19:41:26 pfsense check_reload_status: Syncing firewall
    Jan 11 19:41:27 pfsense check_reload_status: Linkup starting em0
    Jan 11 19:41:27 pfsense kernel: em0: link state changed to DOWN
    Jan 11 19:41:29 pfsense php-fpm366: /rc.linkup: DEVD Ethernet detached event for wan
    Jan 11 19:41:29 pfsense check_reload_status: Reloading filter
    Jan 11 19:41:30 pfsense php-fpm366: /rc.filter_configure_sync: [squid] Installed but disabled. Not installing 'nat' rules.
    Jan 11 19:41:30 pfsense php-fpm366: /rc.filter_configure_sync: [squid] Installed but disabled. Not installing 'pfearly' rules.
    Jan 11 19:41:30 pfsense php-fpm366: /rc.filter_configure_sync: [squid] Installed but disabled. Not installing 'filter' rules.
    Jan 11 19:41:30 pfsense check_reload_status: Linkup starting em0
    Jan 11 19:41:30 pfsense kernel: em0: link state changed to UP
    Jan 11 19:41:31 pfsense check_reload_status: rc.newwanip starting em0
    Jan 11 19:41:31 pfsense php-fpm365: /interfaces.php: Default gateway setting as default.
    Jan 11 19:41:31 pfsense php-fpm365: /interfaces.php: Gateway, none 'available' for inet6, use the first one configured. ''
    Jan 11 19:41:31 pfsense check_reload_status: Restarting ipsec tunnels
    Jan 11 19:41:31 pfsense php-fpm39399: /rc.linkup: DEVD Ethernet attached event for wan
    Jan 11 19:41:31 pfsense php-fpm39399: /rc.linkup: HOTPLUG: Configuring interface wan
    Jan 11 19:41:32 pfsense php-fpm366: /rc.newwanip: rc.newwanip: Info: starting on em0.
    Jan 11 19:41:32 pfsense php-fpm366: /rc.newwanip: rc.newwanip: on (IP address: ) (interface: WAN[wan]) (real interface: em0).
    Jan 11 19:41:32 pfsmodemcable115.158-ense php-fpm366: /rc.newwanip: rc.newwanip: Failed to update wan IP, restarting...
    Jan 11 19:41:32 pfsense check_reload_status: Configuring interface wan
    Jan 11 19:41:32 pfsense check_reload_status: rc.newwanip starting em0
    Jan 11 19:41:32 pfsense php-fpm39399: /rc.linkup: Default gateway setting as default.
    Jan 11 19:41:32 pfsense php-fpm39399: /rc.linkup: Gateway, none 'available' for inet6, use the first one configured. ''
    Jan 11 19:41:32 pfsense check_reload_status: Restarting ipsec tunnels
    Jan 11 19:41:33 pfsense php-fpm365: /interfaces.php: Unbound /var/unbound/root.key file is corrupt, removing and recreating.
    Jan 11 19:41:33 pfsense php-fpm69819: /rc.newwanip: rc.newwanip: Info: starting on em0.
    Jan 11 19:41:33 pfsense php-fpm69819: /rc.newwanip: rc.newwanip: on (IP address: ) (interface: WAN[wan]) (real interface: em0).
    Jan 11 19:41:33 pfsense php-fpm69819: /rc.newwanip: rc.newwanip: Failed to update wan IP, restarting...
    Jan 11 19:41:33 pfsense check_reload_status: Configuring interface wan
    Jan 11 19:41:34 pfsense php-fpm39399: /rc.linkup: Unbound /var/unbound/root.key file is corrupt, removing and recreating.
    Jan 11 19:41:34 pfsense check_reload_status: rc.newwanip starting em0
    Jan 11 19:41:34 pfsense php-fpm39399: /rc.linkup: The command '/usr/local/sbin/unbound -c /var/unbound/unbound.conf' returned exit code '1', the output was '[1547253694] unbound[5263:0] error: can't bind socket: Address already in use for 127.0.0.1 port 953 [1547253694] unbound[5263:0] error: cannot open control interface 127.0.0.1 953 [1547253694] unbound[5263:0] fatal error: could not open ports'
    Jan 11 19:41:35 pfsense check_reload_status: updating dyndns wan
    Jan 11 19:41:35 pfsense php-fpm366: /rc.newwanip: rc.newwanip: Info: starting on em0.
    Jan 11 19:41:35 pfsense php-fpm366: /rc.newwanip: rc.newwanip: on (IP address: ) (interface: WAN[wan]) (real interface: em0).
    Jan 11 19:41:35 pfsense php-fpm366: /rc.newwanip: rc.newwanip: Failed to update wan IP, restarting...
    Jan 11 19:41:35 pfsense check_reload_status: Configuring interface wan
    Jan 11 19:41:36 pfsense check_reload_status: rc.newwanip starting em0
    Jan 11 19:41:36 pfsense check_reload_status: updating dyndns wan



  • Hello there! The same issue loosing the gateway after performing a reboot