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.5k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @Halfhidden
      last edited by johnpoz

      @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.7.2, 24.11

      KOMK 1 Reply Last reply Reply Quote 0
      • KOMK
        KOM @johnpoz
        last edited by

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

        johnpozJ 1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @KOM
          last edited by

          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.7.2, 24.11

          KOMK 1 Reply Last reply Reply Quote 0
          • KOMK
            KOM @johnpoz
            last edited by

            @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

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

              KOMK 1 Reply Last reply Reply Quote 0
              • KOMK
                KOM @Halfhidden
                last edited by

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

                johnpozJ 1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @KOM
                  last edited by

                  @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.7.2, 24.11

                  KOMK 1 Reply Last reply Reply Quote 0
                  • KOMK
                    KOM @johnpoz
                    last edited by

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

                    1 Reply Last reply Reply Quote 0
                    • H
                      Halfhidden
                      last edited by Halfhidden

                      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.

                      KOMK 1 Reply Last reply Reply Quote 0
                      • KOMK
                        KOM @Halfhidden
                        last edited by

                        @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

                          @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

                          KOMK johnpozJ 2 Replies Last reply Reply Quote 0
                          • KOMK
                            KOM @Halfhidden
                            last edited by

                            @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
                            • johnpozJ
                              johnpoz LAYER 8 Global Moderator @Halfhidden
                              last edited by

                              ;; 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.7.2, 24.11

                              1 Reply Last reply Reply Quote 0
                              • H
                                Halfhidden
                                last edited by

                                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
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.