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

Problems with pfsense.localdomain hostname

Scheduled Pinned Locked Moved General pfSense Questions
20 Posts 4 Posters 2.2k 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.
  • F
    fw
    last edited by Feb 24, 2020, 9:15 PM

    I have a Netgate 3100. Currently, pfsense.localdomain resolves to 10.0.1.1, which is my LAN ip address. I have two questions/issues:

    1. how do I tell pfsense to resolve the hostname to one of the other interfaces, or is it hardcoded to resolve to LAN ip only? (for example my OPT1 interface has ip 10.0.2.1, and MAINVLAN interface has ip 10.0.10.1)
    2. I am not able to log into the LAN ip 10.0.1.1 via https even though the LAN firewall rule has the anti lockout rule enabled (as well as being completely open (allow set to source=* dest=* port=* etc). OPT1 and MAINVLAN rules are also completely open. I am able to ping 10.0.1.1, but cannot connect to it via https. I am able to https to the other interfaces without any problems. It is only a problem specifically with the LAN interface. Does anyone know what might be going on here?
    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Feb 24, 2020, 11:12 PM

      Not really. By default the webgui should listen on all IPs. Does it just timeout?

      You might have a port forward on LAN sending the traffic somewhere else for example.

      We would need to see more of your config to be bale to tell you anything further.

      Steve

      1 Reply Last reply Reply Quote 0
      • F
        fw
        last edited by Feb 25, 2020, 3:48 PM

        It times out. What part of my config would be helpful? Also, what about my first question? A workaround would be to have pfsense.localdomain resolve to one of the other interface IPs, but I don't see any settings or indication of what it is supposed to resolve to.

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Feb 25, 2020, 6:18 PM

          I've never tried to make it resolve to anything else, so I'm not sure TBH.

          Obviously it should work to LAN. What firewall rules do you have on LAN?

          What port forward rules do you have?

          F 1 Reply Last reply Feb 25, 2020, 6:33 PM Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator
            last edited by johnpoz Feb 25, 2020, 6:32 PM Feb 25, 2020, 6:30 PM

            @stephenw10 said in Problems with pfsense.localdomain hostname:

            Obviously it should work to LAN

            Exactly - I would look to fixing the issue vs some work around..

            There should be no reason why if your on the lan, you can not access the lan IP for the web gui.. Especially if you have antilock out enabled (default)

            With antilock out - it should be pretty impossible to block your own access with even a floating rule..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            F 1 Reply Last reply Feb 25, 2020, 6:41 PM Reply Quote 0
            • F
              fw @stephenw10
              last edited by Feb 25, 2020, 6:33 PM

              @stephenw10 I don't do any port forwarding. The firewall rules for my LAN currently are 1) antilockout rule, plus 2) completely open (src=* dst=* type=IP4 port=*)

              1 Reply Last reply Reply Quote 0
              • F
                fw @johnpoz
                last edited by Feb 25, 2020, 6:41 PM

                @johnpoz said in Problems with pfsense.localdomain hostname:

                With antilock out - it should be pretty impossible to block your own access with even a floating rule..

                Ok thanks. Maybe it is getting blocked by something outside of the firewall then. There is a unifi wifi AP and an unmanaged switch in-between my computer and the netgate device. I will try connecting my computer directly to the netgate LAN port to see if that works.

                1 Reply Last reply Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator
                  last edited by johnpoz Feb 25, 2020, 6:52 PM Feb 25, 2020, 6:51 PM

                  I don't see how AP could do anything.. How about sniff on pfsense lan IP when you try and access.. What do you see?

                  Unless maybe you running some sort of captive portal on your AP?

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  1 Reply Last reply Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Feb 25, 2020, 6:52 PM

                    Yes or at least check the state table to see what states are opened from your client and on which interfaces.

                    1 Reply Last reply Reply Quote 0
                    • F
                      fw
                      last edited by Feb 26, 2020, 4:05 AM

                      I figured out what the problem was. I had switched the webconfigurator to http instead of https at one point during console mode. Chrome had apparently cached the LAN IP as https instead of http, but not the interface IPs. So when I typed the LAN IP into chrome, it expanded it to https://10.0.1.1, which no longer worked. I guess the other interface IPs were expanded to http://*.

                      1 Reply Last reply Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Feb 26, 2020, 1:55 PM

                        Ah, yeah, Chrome loves to do that. 🙄

                        F 1 Reply Last reply Feb 26, 2020, 3:33 PM Reply Quote 1
                        • F
                          fw @stephenw10
                          last edited by Feb 26, 2020, 3:33 PM

                          @stephenw10 I need to just stop using chrome completely. All it does is cause me headaches.

                          1 Reply Last reply Reply Quote 0
                          • J
                            jimp Rebel Alliance Developer Netgate
                            last edited by Feb 26, 2020, 4:12 PM

                            It was doing you a favor, though. Go back to HTTPS :-)

                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

                            F 1 Reply Last reply Feb 26, 2020, 6:21 PM Reply Quote 0
                            • F
                              fw @jimp
                              last edited by Feb 26, 2020, 6:21 PM

                              @jimp yes did that already :) Although Chrome does not work at all with my self signed certificate. I added my SSL certificate and my intermediate root authority certificate in my keychain (MacOS) and it still refuses to connect over HTTPS. If I click on the security icon in Chrome to view the certificate, it says that it is trusted by the OS, even though Chrome says that it is "revoked". Firefox works great though.

                              1 Reply Last reply Reply Quote 0
                              • J
                                jimp Rebel Alliance Developer Netgate
                                last edited by Feb 26, 2020, 6:27 PM

                                Probably the default cert lifetime. The GUI certs on 2.4.4-p3 and earlier default to 2000 days, Macs only allow 825 now (and will lower that to 389 soon).

                                https://redmine.pfsense.org/issues/9825

                                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                Need help fast? Netgate Global Support!

                                Do not Chat/PM for help!

                                F 1 Reply Last reply Feb 26, 2020, 6:37 PM Reply Quote 0
                                • F
                                  fw @jimp
                                  last edited by Feb 26, 2020, 6:37 PM

                                  @jimp this is a Chrome specific issue. MacOS says that the cert is trusted. Firefox also says that it is trusted. Also, I generated the Cert a couple of weeks ago, so this is definitely not reaching a cert lifetime issue.

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    jimp Rebel Alliance Developer Netgate
                                    last edited by Feb 26, 2020, 6:39 PM

                                    It still can be. Look at the change made in https://redmine.pfsense.org/projects/pfsense/repository/revisions/71185882dc168e49347f0924f33a207aaf6e2db0/diff and make that edit yourself by hand (but use 389, not 825, and then go to a shell prompt (ssh or console) and run pfSsh.php playback generateguicert and see what happens.

                                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                    Need help fast? Netgate Global Support!

                                    Do not Chat/PM for help!

                                    F 1 Reply Last reply Feb 26, 2020, 7:56 PM Reply Quote 0
                                    • F
                                      fw @jimp
                                      last edited by Feb 26, 2020, 7:56 PM

                                      @jimp Ohh I see what you are saying. I'll give that a try. Thanks.

                                      F 1 Reply Last reply Feb 27, 2020, 3:42 AM Reply Quote 0
                                      • F
                                        fw @fw
                                        last edited by Feb 27, 2020, 3:42 AM

                                        That worked thanks! It's annoying that Chrome's error was this:
                                        NET::ERR_CERT_REVOKED

                                        instead of this:
                                        NET::ERR_CERT_VALIDITY_TOO_LONG

                                        1 Reply Last reply Reply Quote 2
                                        • J
                                          johnpoz LAYER 8 Global Moderator
                                          last edited by Feb 27, 2020, 11:54 AM

                                          Exactly!!! BS error that doesn't say what the problem is!

                                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                                          If you get confused: Listen to the Music Play
                                          Please don't Chat/PM me for help, unless mod related
                                          SG-4860 24.11 | Lab VMs 2.8, 24.11

                                          1 Reply Last reply Reply Quote 2
                                          20 out of 20
                                          • First post
                                            20/20
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received