Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    No Internet after reboot, wrong gateway.

    Scheduled Pinned Locked Moved Routing and Multi WAN
    19 Posts 3 Posters 2.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      Konstanti @amorphous
      last edited by Konstanti

      @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/*

      1 Reply Last reply Reply Quote 0
      • A
        amorphous @Konstanti
        last edited by

        @konstanti

        #!/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}
        
        K 1 Reply Last reply Reply Quote 0
        • K
          Konstanti @amorphous
          last edited by

          @amorphous
          if you type reboot in the console
          then, after rebooting everything will be OK ?

          A 1 Reply Last reply Reply Quote 0
          • A
            amorphous
            last edited by

            I already rebooted after I modified the file as #rm -rf /tmp/* .

            1 Reply Last reply Reply Quote 0
            • A
              amorphous @Konstanti
              last edited by

              @konstanti I'll reboot the second time.

              K 1 Reply Last reply Reply Quote 0
              • K
                Konstanti @amorphous
                last edited by Konstanti

                @amorphous Maybe the problem in the USB key ?

                A 1 Reply Last reply Reply Quote 0
                • A
                  amorphous @Konstanti
                  last edited by

                  @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?

                  1 Reply Last reply Reply Quote 0
                  • A
                    amorphous
                    last edited by

                    I only started having problems after upgrading to 2.4.4-RELEASE-p1

                    K 1 Reply Last reply Reply Quote 0
                    • K
                      Konstanti @amorphous
                      last edited by Konstanti

                      @amorphous

                      /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;
                      0_1547912798625_b8db588a-f6a8-40be-a63c-485d25572ae2-image.png
                      save
                      reboot
                      watch log

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        amorphous @Konstanti
                        last edited by

                        @konstanti

                        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.....
                        
                        K 3 Replies Last reply Reply Quote 0
                        • K
                          Konstanti @amorphous
                          last edited by Konstanti

                          @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']}");
                          

                          0_1547917983517_5fccd75d-a91d-44c2-9d1e-8b91c08f575d-image.png

                          /etc/inc/util.inc

                          log_error("Checkpoint 6 $args");

                          0_1547918900426_9cc1fffd-c57f-4777-ae3d-44c8e4e0c662-image.png

                          1 Reply Last reply Reply Quote 0
                          • K
                            Konstanti @amorphous
                            last edited by

                            @amorphous
                            Enough only this

                            Jan 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

                            1 Reply Last reply Reply Quote 0
                            • K
                              Konstanti @amorphous
                              last edited by Konstanti

                              @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 ?

                              1 Reply Last reply Reply Quote 0
                              • A
                                amorphous
                                last edited by

                                It finally worked after enabling gateway monitoring and thus setting Gateway to dynamic instead of WAN DHCP.

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.