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 argumentNetstat 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
-
@amorphous
1.File gwlb.inc will abandon with all changes
Each time you update your system , it will be overwritten and you will need to make any
changes to it again
2 /diagnostics/edit file /etc/rc.reboot
" # rm -rf /tmp/* "
save and reboot
In this case, at the time of reboot, the /tmp/em0_router file will exist and there should be no problems
-
@konstanti Commenting out rm-fr doesn't seem to do the trick. No good gateway after reboot again:
[2.4.4-RELEASE][admin@pfsense.localdomain]/root: grep #rm /etc/rc.reboot #rm -rf /tmp/* [2.4.4-RELEASE][admin@pfsense.localdomain]/root: netstat -r Routing tables Internet: Destination Gateway Flags Netif Expire 70.111.222.0/24 link#1 U em0 70.111.222.333 link#1 UHS lo0 localhost link#4 UH lo0 192.168.1.0/24 link#2 U em1 pfsense link#2 UHS lo0 Internet6: Destination Gateway Flags Netif Expire localhost link#4 UH lo0 fe80::%em0/64 link#1 U em0 fe80::225:90ff:fe9 link#1 UHS lo0 fe80::%em1/64 link#2 U em1 fe80::225:90ff:fe9 link#2 UHS lo0 fe80::%lo0/64 link#4 U lo0 fe80::1%lo0 link#4 UHS lo0 [2.4.4-RELEASE][admin@pfsense.localdomain]/root: cat /tmp/em0_* 70.111.37.5em0: no link ..... got link dhclient: PREINIT DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 2 DHCPOFFER from 10.23.113.6 DHCPREQUEST on em0 to 255.255.255.255 port 67 DHCPACK from 10.23.113.6 bound to 70.111.222.333 -- renewal in 36109 seconds.
Then After Disabling and Enabling WAN again it works:
[2.4.4-RELEASE][admin@pfsense.localdomain]/root: netstat -r Routing tables Internet: Destination Gateway Flags Netif Expire default modemcable001.147- UGS em0 70.111.222.0/24 link#1 U em0 modemcable333.147- link#1 UHS lo0 localhost link#4 UH lo0 192.168.1.0/24 link#2 U em1 pfsense link#2 UHS lo0 Internet6: Destination Gateway Flags Netif Expire localhost link#4 UH lo0 fe80::%em0/64 link#1 U em0 fe80::225:90ff:fe9 link#1 UHS lo0 fe80::%em1/64 link#2 U em1 fe80::225:90ff:fe9 link#2 UHS lo0 fe80::%lo0/64 link#4 U lo0 fe80::1%lo0 link#4 UHS lo0 [2.4.4-RELEASE][admin@pfsense.localdomain]/root: cat /tmp/em0_* 70.81.37.5dhclient: PREINIT DHCPREQUEST on em0 to 255.255.255.255 port 67 DHCPACK from 10.23.113.6 bound to 70.111.222.333 -- renewal in 36006 seconds. 70.111.222.1
-
@amorphous
show the rc.rebootif you type reboot in the console
then, after rebooting everything will be OK ? -
@amorphous said in No Internet after reboot, wrong gateway.:
rm -rf /tmp/*
it is necessary to change the line
rm -rf /tmp/*
on
# rm -rf /tmp/* -
#!/bin/sh # # rc.reboot # # part of pfSense (https://www.pfsense.org) # Copyright (c) 2004-2018 Rubicon Communications, LLC (Netgate) # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. if ! /usr/bin/lockf -s -t 30 /tmp/config.lock /usr/bin/true; then echo "Cannot reboot at this moment, a config write operation is in progress, and 30 seconds have passed." exit 1 fi unset REROOT if [ "${1}" = "-r" ]; then REROOT=${1} fi sleep 1 # Read product_name from $g, defaults to pfSense product=$(/usr/local/sbin/read_global_var product_name pfSense) # Remove temporary files on shutdown from /tmp/ ########## MODIFIED BY ME BECAUSE OF NO GATEWAY AFTER REBOOT ########## #rm -rf /tmp/* USE_MFS_TMPVAR=$(/usr/local/sbin/read_xml_tag.sh boolean system/use_mfs_tmpvar) DISK_NAME=`/bin/df /var/db/rrd | /usr/bin/tail -1 | /usr/bin/awk '{print $1;}'` DISK_TYPE=`/usr/bin/basename ${DISK_NAME} | /usr/bin/cut -c1-2` # If we are not on a full install, or if the full install wants RAM disks, or if the full install _was_ using RAM disks, but isn't for the next boot... if [ "${USE_MFS_TMPVAR}" = "true" ] || [ "${DISK_TYPE}" = "md" ]; then /etc/rc.backup_aliastables.sh /etc/rc.backup_rrd.sh /etc/rc.backup_dhcpleases.sh /etc/rc.backup_logs.sh fi sleep 1 /sbin/reboot ${REROOT}
-
@amorphous
if you type reboot in the console
then, after rebooting everything will be OK ? -
I already rebooted after I modified the file as #rm -rf /tmp/* .
-
@konstanti I'll reboot the second time.
-
@amorphous Maybe the problem in the USB key ?
-
@konstanti Same result.
I though about that too, but I have a 2nd USB key install (for backup), same config and that one has the same issue.
Then how can we explain why it works fine in 2.4.4 but not in 2.4.4-RELEASE-p1 and 2.4.4-RELEASE-p2? -
I only started having problems after upgrading to 2.4.4-RELEASE-p1
-
/etc/inc/gwlb.inc
$realif = get_real_interface($interface);
log_error("Checkpoint gw");
if (file_exists("{$g['tmp_path']}/{$realif}_router")) {
$gw = trim(file_get_contents("{$g['tmp_path']}/{$realif}_router"), " \n");
log_error("Checkpoint 2 : $gw ");
$dynamic = true;
save
reboot
watch log -
Jan 19 11:36:54 pfsense kernel: coretemp0: <CPU On-Die Thermal Sensors> on cpu0 Jan 19 11:36:54 pfsense kernel: coretemp1: <CPU On-Die Thermal Sensors> on cpu1 Jan 19 11:36:55 pfsense sshd[7488]: Server listening on :: port 22. Jan 19 11:36:55 pfsense sshd[7488]: Server listening on 0.0.0.0 port 22. Jan 19 11:36:55 pfsense syslogd: Logging subprocess 7550 (exec /usr/local/sbin/sshguard) exited due to signal 15. Jan 19 11:36:57 pfsense check_reload_status: Linkup starting em0 Jan 19 11:36:57 pfsense kernel: Jan 19 11:36:57 pfsense kernel: em0: link state changed to UP Jan 19 11:36:59 pfsense check_reload_status: rc.newwanip starting em0 Jan 19 11:36:59 pfsense php-cgi: rc.bootup: Resyncing OpenVPN instances. Jan 19 11:36:59 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:36:59 pfsense kernel: done. Jan 19 11:36:59 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:36:59 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:36:59 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:00 pfsense kernel: pflog0: promiscuous mode enabled Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:00 pfsense php-cgi: rc.bootup: [squid] Installed but disabled. Not installing 'nat' rules. Jan 19 11:37:00 pfsense php-cgi: rc.bootup: [squid] Installed but disabled. Not installing 'pfearly' rules. Jan 19 11:37:00 pfsense kernel: . Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:00 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:00 pfsense php-cgi: rc.bootup: [squid] Installed but disabled. Not installing 'filter' rules. Jan 19 11:37:00 pfsense kernel: .. Jan 19 11:37:00 pfsense php-fpm[366]: /rc.newwanip: rc.newwanip: Info: starting on em0. Jan 19 11:37:00 pfsense php-fpm[366]: /rc.newwanip: rc.newwanip: on (IP address: 70.111.222.333) (interface: WAN[wan]) (real interface: em0). Jan 19 11:37:00 pfsense php-fpm[366]: /rc.newwanip: Checkpoint gw Jan 19 11:37:00 pfsense php-fpm[366]: /rc.newwanip: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:00 pfsense php-fpm[366]: /rc.newwanip: Checkpoint gw Jan 19 11:37:00 pfsense php-fpm[366]: /rc.newwanip: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:00 pfsense php-fpm[366]: /rc.newwanip: Checkpoint gw Jan 19 11:37:00 pfsense php-fpm[366]: /rc.newwanip: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:01 pfsense php-fpm[366]: /rc.newwanip: Checkpoint gw Jan 19 11:37:01 pfsense kernel: .done. Jan 19 11:37:01 pfsense php-fpm[366]: /rc.newwanip: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:01 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:01 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:01 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:01 pfsense kernel: done. Jan 19 11:37:01 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:01 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:01 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:01 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:01 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:01 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:01 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:01 pfsense php-cgi: rc.bootup: Default gateway setting as default. Jan 19 11:37:01 pfsense php-cgi: rc.bootup: Gateway, none 'available' for inet6, use the first one configured. '' Jan 19 11:37:01 pfsense kernel: route: writing to routing socket: Network is unreachable Jan 19 11:37:02 pfsense check_reload_status: Linkup starting em1 Jan 19 11:37:02 pfsense kernel: Jan 19 11:37:02 pfsense kernel: em1: link state changed to UP Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:15 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:16 pfsense php-cgi: rc.bootup: sync unbound done. Jan 19 11:37:28 pfsense kernel: done. Jan 19 11:37:29 pfsense kernel: done. Jan 19 11:37:29 pfsense php-cgi: rc.bootup: NTPD is starting up. Jan 19 11:37:29 pfsense kernel: done. Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:31 pfsense check_reload_status: Updating all dyndns Jan 19 11:37:31 pfsense kernel: done. Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:31 pfsense php-cgi: rc.bootup: [squid] Installed but disabled. Not installing 'nat' rules. Jan 19 11:37:31 pfsense kernel: . Jan 19 11:37:31 pfsense php-cgi: rc.bootup: [squid] Installed but disabled. Not installing 'pfearly' rules. Jan 19 11:37:31 pfsense kernel: . Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint gw Jan 19 11:37:31 pfsense php-cgi: rc.bootup: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:31 pfsense php-cgi: rc.bootup: [squid] Installed but disabled. Not installing 'filter' rules. Jan 19 11:37:31 pfsense kernel: .. Jan 19 11:37:32 pfsense kernel: .done. Jan 19 11:37:32 pfsense php-fpm[365]: /rc.dyndns.update: Checkpoint gw Jan 19 11:37:32 pfsense php-fpm[365]: /rc.dyndns.update: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:32 pfsense php-fpm[365]: /rc.dyndns.update: Checkpoint gw Jan 19 11:37:32 pfsense php-fpm[365]: /rc.dyndns.update: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:32 pfsense php-fpm[365]: /rc.dyndns.update: Checkpoint gw Jan 19 11:37:32 pfsense php-fpm[365]: /rc.dyndns.update: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:32 pfsense php-fpm[365]: /rc.dyndns.update: Checkpoint gw Jan 19 11:37:32 pfsense php-fpm[365]: /rc.dyndns.update: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:32 pfsense php-fpm[365]: /rc.dyndns.update: Checkpoint gw Jan 19 11:37:32 pfsense php-fpm[365]: /rc.dyndns.update: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:32 pfsense php-fpm[365]: /rc.dyndns.update: Checkpoint gw Jan 19 11:37:32 pfsense php-fpm[365]: /rc.dyndns.update: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:33 pfsense php-fpm[366]: /index.php: Successful login for user 'admin' from: 192.168.1.12 (Local Database) Jan 19 11:37:34 pfsense php-fpm[366]: /index.php: Checkpoint gw Jan 19 11:37:34 pfsense php-fpm[366]: /index.php: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:34 pfsense php-fpm[366]: /index.php: Checkpoint gw Jan 19 11:37:34 pfsense php-fpm[366]: /index.php: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:36 pfsense php-cgi: rc.bootup: Creating rrd update script Jan 19 11:37:36 pfsense php-cgi: rc.bootup: The command '/usr/sbin/powerd -b 'hadp' -a 'hadp' -n 'hadp'' returned exit code '69', the output was 'powerd: no cpufreq(4) support -- aborting: No such file or directory' Jan 19 11:37:36 pfsense kernel: done. Jan 19 11:37:37 pfsense syslogd: exiting on signal 15 Jan 19 11:37:37 pfsense syslogd: kernel boot file is /boot/kernel/kernel Jan 19 11:37:38 pfsense kernel: done. Jan 19 11:37:43 pfsense php-fpm[53665]: /rc.start_packages: Restarting/Starting all packages. Jan 19 11:37:44 pfsense php-fpm[53665]: /rc.start_packages: [squid] - squid_resync function call pr: bp: rpc:no Jan 19 11:37:47 pfsense php-fpm[53665]: /rc.start_packages: [squid] Creating Squid log dir '/var/squid/logs' ... Jan 19 11:37:47 pfsense php-fpm[53665]: /rc.start_packages: [squid] Removing cronjobs ... Jan 19 11:37:47 pfsense php-fpm[53665]: /rc.start_packages: [squid] Antivirus features disabled. Jan 19 11:37:47 pfsense php-fpm[53665]: /rc.start_packages: [squid] Removing freshclam cronjob. Jan 19 11:37:48 pfsense php-fpm[53665]: /rc.start_packages: [squid] Creating cache dir '/var/squid/cache' ... Jan 19 11:37:48 pfsense php-fpm[53665]: /rc.start_packages: [squid] Creating Squid cache subdirs in /var/squid/cache ... Jan 19 11:37:50 pfsense sshd[70301]: user admin login class [preauth] Jan 19 11:37:50 pfsense sshd[70301]: user admin login class [preauth] Jan 19 11:37:52 pfsense check_reload_status: Reloading filter Jan 19 11:37:52 pfsense Squid_Alarm[75490]: Squid is disabled, exiting. Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint gw Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint gw Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint gw Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint gw Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint gw Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint gw Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint gw Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: [squid] Installed but disabled. Not installing 'nat' rules. Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: [squid] Installed but disabled. Not installing 'pfearly' rules. Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint gw Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: Checkpoint 2 : 70.111.222.1 Jan 19 11:37:53 pfsense php-fpm[365]: /rc.filter_configure_sync: [squid] Installed but disabled. Not installing 'filter' rules. Jan 19 11:37:56 pfsense sshd[70301]: user admin login class [preauth] Jan 19 11:37:56 pfsense sshd[70301]: Accepted publickey for admin from 192.168.1.12 port 50060 ssh2: RSA.....
-
@amorphous said in No Internet after reboot, wrong gateway.:
70.111.222.1
Good
It's okay.
you can remove these checkpoints
Now you have to understand why the system complains when setting the default gateway$currentdefaultgwip = getcurrentdefaultgatewayip($ipprotocol); log_error("Checkpoint 3 $currentdefaultgwip"); log_error ("Checkpoint 4 {$gw['gateway']}"); log_error ("Checkpoint 5 {$gw['interface']}");
/etc/inc/util.inc
log_error("Checkpoint 6 $args");
-
@amorphous
Enough only thisJan 19 20:33:42 php-cgi rc.bootup: Checkpoint 3
Jan 19 20:33:42 php-cgi rc.bootup: Checkpoint 4 192.168.1.1
Jan 19 20:33:42 php-cgi rc.bootup: Checkpoint 5 em0
Jan 19 20:33:42 php-cgi rc.bootup: Default gateway setting Interface WAN_DHCP Gateway as default.
Jan 19 20:33:42 php-cgi rc.bootup: Checkpoint 6 -inet default 192.168.1.1 -
@amorphous
is there an ipv6 gateway ???
the error shows that there is
Jan 19 11:37:01 pfsense php-cgi: rc.bootup: Gateway, none 'available' for inet6, use the first one configured. ''
set Default gateway IPv6 to none
Wanted to clarify the gateway address and wan pf address belong to the same subnet ? -
It finally worked after enabling gateway monitoring and thus setting Gateway to dynamic instead of WAN DHCP.