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

All domains resolve to PfSense GUI

Scheduled Pinned Locked Moved DHCP and DNS
23 Posts 3 Posters 1.6k 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.
  • H
    Halfhidden
    last edited by Jun 25, 2021, 7:49 PM

    No, if I do a it at lan level it resolves correctly to the FQD, but if I try to do this from outside the lan (another computer from the internet) it resolves back to the GUI of PfSense.

    J K 2 Replies Last reply Jun 25, 2021, 7:52 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @Halfhidden
      last edited by johnpoz Jun 25, 2021, 7:54 PM Jun 25, 2021, 7:52 PM

      @halfhidden said in All domains resolve to PfSense GUI:

      (another computer from the internet) it resolves back to the GUI of

      Well normally yeah fqdn that are public resolving resolve to a public IP..

      but esxi.blerg.co.uk does not resolve on the public internet.

      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
      • K
        KOM @Halfhidden
        last edited by Jun 25, 2021, 7:55 PM

        @halfhidden What is the authoritative DNS for your blerg.co.uk domain? That is where you make your DNS changes. Why are you trying to resolve that host to a LAN IP? Clients on the Internet won't be able to route to it.

        J 1 Reply Last reply Jun 25, 2021, 8:02 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @KOM
          last edited by Jun 25, 2021, 8:02 PM

          SOA for that is ns2.mythic-beasts.com

          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

          K 1 Reply Last reply Jun 25, 2021, 8:06 PM Reply Quote 0
          • K
            KOM @johnpoz
            last edited by Jun 25, 2021, 8:06 PM

            @johnpoz I was only using blerg.co.uk as a made-up placeholder for his obscured domain.

            1 Reply Last reply Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator @Halfhidden
              last edited by johnpoz Jun 25, 2021, 8:06 PM Jun 25, 2021, 8:06 PM

              @halfhidden said in All domains resolve to PfSense GUI:

              I'm guessing that DNS can't reach the local ip and therefore can't resolve to the VPN client I've pointed the resolver to.

              Where are you pointing the vpn client too? If IP of pfsense unbound is listening on - you will have to adjust your ACLs in unbound to allow for that tunnel IP your vpn client is using to be able to query it.

              edit: where did you come up with blerg? ;) foo is a common obfuscation sort of name ;) hehehe

              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

              K 1 Reply Last reply Jun 25, 2021, 8:09 PM Reply Quote 0
              • K
                KOM @johnpoz
                last edited by Jun 25, 2021, 8:09 PM

                @johnpoz To each their own. foo didn't occur to me even though I've seen it a zillion times.

                J 1 Reply Last reply Jun 25, 2021, 8:17 PM Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator @KOM
                  last edited by Jun 25, 2021, 8:17 PM

                  blerg? hehee - we could see if we could get that added to the wiki page ;)

                  https://en.wikipedia.org/wiki/Metasyntactic_variable

                  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

                  K 1 Reply Last reply Jun 25, 2021, 8:24 PM Reply Quote 0
                  • K
                    KOM @johnpoz
                    last edited by Jun 25, 2021, 8:24 PM

                    @johnpoz I think it's funny that there just happens to be a blerg.co.uk.

                    1 Reply Last reply Reply Quote 0
                    • H
                      Halfhidden
                      last edited by Jun 25, 2021, 9:11 PM

                      @johnpoz said in All domains resolve to PfSense GUI:

                      Where are you pointing the vpn client too? If IP of pfsense unbound is listening on - you will have to adjust your ACLs in unbound to allow for that tunnel IP your vpn client is using to be able to query it.

                      This is what I've done. I've not altered the ACLs at all.
                      Thanks both of you.
                      Really appriciate your help.

                      K 1 Reply Last reply Jun 25, 2021, 9:47 PM Reply Quote 0
                      • K
                        KOM @Halfhidden
                        last edited by Jun 25, 2021, 9:47 PM

                        @halfhidden Well, I don't know what exactly you're trying to accomplish and you didn't answer any of my last questions so I'm not sure how much more helpful I can be. Maybe if you start from the beginning and explain what you want to do.

                        J 1 Reply Last reply Jun 25, 2021, 9:48 PM Reply Quote 0
                        • J
                          johnpoz LAYER 8 Global Moderator @KOM
                          last edited by Jun 25, 2021, 9:48 PM

                          @kom I took his last reply that he fixed his acls and he now working how he wants.

                          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

                          K 1 Reply Last reply Jun 25, 2021, 10:03 PM Reply Quote 0
                          • K
                            KOM @johnpoz
                            last edited by Jun 25, 2021, 10:03 PM

                            @johnpoz If so then good. As long as it works.

                            1 Reply Last reply Reply Quote 0
                            • H
                              Halfhidden
                              last edited by Halfhidden Jun 26, 2021, 12:11 PM Jun 26, 2021, 12:06 PM

                              OK I apologise for this. I honestly though I'd fixed this. Clearly I've made no change to the situation.
                              After reaching for the Jack Daniels to celebrate a small victory, I realised I was actually testing the domains from a laptop that was connected to the internal DHCP of PfSense and yes the domains resolved, but from external requests they don't.

                              "What is the authoritative DNS"
                              The dns is set with http://freedns.centos-webpanel.com/
                              I've only set the @ "A" record to the static ip from my ISP and www "CNAME" to @ (and basic settings for FTP, MX and so on)
                              I'm trying to resolve the domain cloud.lescudjack.co.uk to an internal ip of 192.168.1.108 that is a Nextcloud VPN on Esxi 6.7
                              I'm also trying to resolve the domain lescudjack.co.uk to an internal ip 192.168.1.101 and that is the internal ip for Esxi.

                              Right now if I connect to the network that PfSense issues DHCP from. I can type in those domains and they resolve to the correct domain name and are completely accessible. If I try the same from a computer not connected to the internal PfSense network, then the same domain names do resolve to the domain, but instead of seeing the vpn as expected, I get this:

                              As an example cloud.lescudjack.co.uk should resolve to the NextCloud vpn, it resolves to the main GUI of Pfsense instead.

                              In DNS resolver/access lists I added the subdomain for cloud.lescudjack.co.uk and then put in the local ip and allowed the rule.

                              I know the domain and ip's shouldn't be posted on open forums, but if this is resolved then the domain will be used elsewhere (change dns) and the internal ip's changed to a different subnet.

                              K 1 Reply Last reply Jun 26, 2021, 12:17 PM Reply Quote 0
                              • K
                                KOM @Halfhidden
                                last edited by Jun 26, 2021, 12:17 PM

                                @halfhidden Clients from the Internet can't route to private IP addresses. Even if you set your external DNS to reply to those queries with 192.168.x.y, clients won't be able to go there.

                                What are you trying to do?

                                For example, if you're trying to get Internet clients to be able to reach a server on your LAN, you do that via a NAT port-forward.

                                1 Reply Last reply Reply Quote 0
                                • H
                                  Halfhidden
                                  last edited by Jun 26, 2021, 12:22 PM

                                  @kom said in All domains resolve to PfSense GUI:

                                  What are you trying to do?
                                  For example, if you're trying to get Internet clients to be able to reach a server on your LAN, you do that via a NAT port-forward.

                                  Yes that is what I'm trying to achieve, but I'm keen not to have to do this by way of ports that the user (internet side user) has to add ports to the end of the domain.
                                  Example cloud.lescudjack.co.uk:2003

                                  K J 2 Replies Last reply Jun 26, 2021, 12:42 PM Reply Quote 0
                                  • K
                                    KOM @Halfhidden
                                    last edited by Jun 26, 2021, 12:42 PM

                                    @halfhidden OK so then you want to set your external DNS records for your domain so that cloud.lescudjack.co.uk resolves to your pfSense WAN IP. From there, you create a port-forward that forwards traffic on a specific port to a server on your LAN.

                                    How to Set Up Port Forwarding in pfSense Software

                                    How To Setup Port Forwarding on pfsense 2.4

                                    Port Forwards

                                    Troubleshooting NAT Port Forwards

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      johnpoz LAYER 8 Global Moderator @Halfhidden
                                      last edited by Jun 26, 2021, 12:44 PM

                                      ;; ANSWER SECTION:
                                      cloud.lescudjack.co.uk. 86400 IN A 78.33.200.127

                                      Is that pfsense public IP?

                                      Not sure what to make of this

                                      but instead of seeing the vpn as expected

                                      Are you trying to route traffic through a vpn to get to your port forwards?

                                      Where are you port forwards and firewall rules? Yeah if you open up your firewall on wan and hit its IP from the public on the right port the gui will be served.

                                      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
                                      • H
                                        Halfhidden
                                        last edited by Jun 26, 2021, 12:51 PM

                                        Hi guys,
                                        Thanks. I haven't created any rules to port forward traffic from the WAN to Lan (Not sure what the hell I was thinking).

                                        Yes PfSence won't be public facing once I re-set up the lab. I don't see any benefit from having web access to either Esxi or PfSense, so I'll make sure that they are set up on private ip's when I do set it all back up.

                                        I do have to thank you both for helping. I can't believe how dumb I've been with this.

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