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

    Cannot connect to Internet after editing WAN's name

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 3 Posters 731 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.
    • T
      testcb00
      last edited by

      I built a new router and then restored the configuration from my 2.6.0 pfSense router. Initially, it worked well, but when I renamed the interface description to match its name, it could no longer connect to the Internet. Only DHCP and LAN were working; none of the other functions were operational. I couldn't ping 8.8.8.8, and google.com could not be resolved.

      From /var/log/system.log, I found the following error. Please help.

      Dec  1 21:12:10 pfSense php-fpm[21357]: /interfaces.php: Configuration Change: admin@x.x.x.x (Local Database): Interfaces settings changed
      Dec  1 21:12:10 pfSense check_reload_status[480]: Syncing firewall
      Dec  1 21:12:13 pfSense check_reload_status[480]: rc.newwanip starting igb0
      Dec  1 21:12:14 pfSense php-fpm[21357]: /interfaces.php: Gateway, NONE AVAILABLE
      Dec  1 21:12:14 pfSense php-fpm[21357]: /interfaces.php: The command '/sbin/route -n6 get 'default' 2>/dev/null | /usr/bin/egrep 'flags: <.*PROTO.*>'' returned exit code '1', the output was ''
      Dec  1 21:12:14 pfSense php-fpm[27615]: /rc.newwanip: rc.newwanip: Info: starting on igb0.
      Dec  1 21:12:14 pfSense php-fpm[27615]: /rc.newwanip: rc.newwanip: on (IP address: x.x.x.x) (interface: WAN1_IGB0_WAN[wan]) (real interface: igb0).
      
      T 1 Reply Last reply Reply Quote 0
      • T
        testcb00 @testcb00
        last edited by

        The problem is found: in the new installation, even after loading the configuration, the default gateway was overwritten to Auto instead of the WAN interface.

        Since I have multiple gateways (one WAN and a VPN gateway with a fixed IP), when the WAN's configuration is changed, the WAN interface drops, causing the default gateway to become the VPN gateway.

        However, no matter how many times I reboot the router or edit other configurations, the gateway doesn't automatically change back to the WAN. This causes the problem.

        Setting the gateway to WAN manually solved the issue.

        S 1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Which interface did you rename?

          Was it only an interface not a gateway?

          Did you have any custom settings on the old WAN gateway? Monitor IP etc?
          If you didn't it may not have had a config section and could have created a new gateway using the new interface name. Assuming is was the WAN you renamed at least.

          T 1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @testcb00
            last edited by

            @testcb00 said in Cannot connect to Internet after editing WAN's name:

            the default gateway was overwritten to Auto instead of the WAN interface

            I have been finding something similar...not editing the name, but I've found sometimes if I change WAN IPv6 settings, the Default gateway IPv4 in System/Routing changes to Auto and connectivity is lost. IIRC the default route disappears but it's been a little while and I don't have my notes in front of me. I haven't 100% reproduced it to make a report but it's happened twice in the last couple months while I was trying to adjust something remotely. ๐Ÿ™„ We are not using a VPN and in our case there is only one v4 gateway defined, WANGW.

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote ๐Ÿ‘ helpful posts!

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Hmm, well that's clearly not supposed to happen! Let me see if I can replicate....

              S 1 Reply Last reply Reply Quote 0
              • S
                SteveITS Galactic Empire @stephenw10
                last edited by

                @stephenw10 I'm sure it's some sort of foot-shootery but it's not like I was writing down what I was doing before I broke it. And I am not that willing to try to break it remotely again. :) I was definitely surprised to lose IPv4 since I wasn't changing that.

                I might have deleted the IPv6 gateway at one point? That page is a bit confusing because in System/Routing pfSense shows both WAN_DHCP6 and WANGWv6 as the same IP with WAN_DHCP6 active even though WANGWv6 is set in the interface for the static IPv6:

                WAN_DHCP6 	Default (IPv6) 	WAN 	2603:x:x:febc:dded 	2603:x:x:febc:dded 	Interface WAN_DHCP6 Gateway 	
                WANGW 	Default (IPv4) 	WAN 	10.x.x.1 	10.x.x.1 		
                WANGWv6 		WAN 	2603:x:x:febc:dded 	2603:x:x:febc:dded 
                

                a328c8d7-0c4b-496b-995e-c44e43db38cf-image.png

                (and I had been changing back and forth a bit trying something) I assume it just first-matches on the IP and not the gateway name. But I digress...

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote ๐Ÿ‘ helpful posts!

                1 Reply Last reply Reply Quote 0
                • T
                  testcb00 @stephenw10
                  last edited by

                  @stephenw10 I renamed the WAN interface, as it is the WAN, it is also the gateway and the only interface to the Internet. When it drops, there will be no Internet connection.

                  However, the OpenVPN server, which also acts as a gateway with a fixed IP, will now become the default gateway, though it will never connect, even if the WAN comes back.

                  To reproduce the situation, I suggest:

                  1. Install pfSense with a simple WAN & LAN setup.
                  2. Install the OpenVPN server, set it up, and add it as OPT1.
                  3. Check if the Default Gateway is set to Auto.
                  4. Rename the WAN interface.
                  1 Reply Last reply Reply Quote 1
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Which pfSense version are you seeing that in?

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      testcb00 @stephenw10
                      last edited by

                      @stephenw10 I am using 2.7.2 CE

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        I haven't been able to replicate this so far. Changing the name of the WAN or editing other values on it doesn't by itself appear to cause a problem. It must be some combination of things or some unique config. ๐Ÿค”

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