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

Access host on the LAN using public IP

Scheduled Pinned Locked Moved NAT
23 Posts 4 Posters 1.3k 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.
  • J
    johnpoz LAYER 8 Global Moderator
    last edited by Mar 19, 2020, 3:59 PM

    No he doesn't NEED nat reflection - why can you not just access this resource while your inside your network via the fqdn that you set on your local dns to resolve to the local IP... This is a cleaner, better solution than nat reflection.

    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

    M 1 Reply Last reply Mar 19, 2020, 4:26 PM Reply Quote 0
    • M
      michaeldemb @kiokoman
      last edited by Mar 19, 2020, 4:10 PM

      @kiokoman this does not work. I tried both options.

      1 Reply Last reply Reply Quote 0
      • M
        michaeldemb @johnpoz
        last edited by Mar 19, 2020, 4:26 PM

        @johnpoz Because I must use an IP address. Can't use host name. Some limitations of an application I am using. Any other ideas on how to make it working?

        1 Reply Last reply Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by Mar 19, 2020, 4:57 PM

          @michaeldemb said in Access host on the LAN using public IP:

          Because I must use an IP address

          Use a different application - forcing use of an IP is just plain moronic... What application is this?

          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

          M 2 Replies Last reply Mar 19, 2020, 5:27 PM Reply Quote 0
          • M
            michaeldemb @johnpoz
            last edited by Mar 19, 2020, 5:27 PM

            @johnpoz This is not an option.

            1 Reply Last reply Reply Quote 0
            • M
              michaeldemb @johnpoz
              last edited by Mar 19, 2020, 5:33 PM

              @johnpoz BTW, I did set DNS Forwarder Host Overrides, but it does not seem to be working. PF still resolves to the actual public IP, not the one I configured.

              1 Reply Last reply Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator
                last edited by johnpoz Mar 19, 2020, 5:37 PM Mar 19, 2020, 5:35 PM

                Well nat reflection does work - but all things are options... Why is it you have to use this software, your saying nobody else makes software that does X... And their software is so shitty that it can not even use a fqdn.... Sorry but say its BS..

                If you want help with with your nat reflection setup, your going to have to provide some details.. I would start with showing us your nat reflection setup.

                2nd I would do a sniff do you see pfsense reflect the traffic back in..

                I did set DNS Forwarder Host Override

                Are you using the forwarder? Out of the box pfsense uses resolver, unbound... So setting overrides in the forwarder would accomplish nothing.. Set the override in resolver, not forwarder... This takes 2 seconds to validate if working or not with a simple query.

                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

                M 1 Reply Last reply Mar 19, 2020, 5:38 PM Reply Quote 0
                • M
                  michaeldemb @johnpoz
                  last edited by Mar 19, 2020, 5:38 PM

                  @johnpoz Lets assume I can use DNS. Why DNS Forwarder Host Overrides is not working?

                  1 Reply Last reply Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator
                    last edited by johnpoz Mar 19, 2020, 5:42 PM Mar 19, 2020, 5:42 PM

                    Again... Are you using the forwarder? There are two DNS software packages (3 if you install bind optional package) on pfsense.. There is the forwarder (dnsmasq), and the resolver (unbound)... Out of the box pfsense uses unbound.

                    You have to place your override in the system your using.. Its that simple

                    override.jpg

                    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

                    M 1 Reply Last reply Mar 19, 2020, 5:47 PM Reply Quote 0
                    • M
                      michaeldemb @johnpoz
                      last edited by Mar 19, 2020, 5:47 PM

                      @johnpoz I am using Forwarder (dnsmasq).
                      All is configured, but the PF still responding with the value from public DNS rather than from the overwrite entry. See screenshot:

                      19d53d5b-235e-4eff-a0b9-c2b82e98a203-image.png

                      1 Reply Last reply Reply Quote 0
                      • K
                        kiokoman LAYER 8
                        last edited by Mar 19, 2020, 6:08 PM

                        @johnpoz yeah i need to be more verbose next time, i was in a hurry because a customer entered my store in that moment 😂 what i meant is you need one of the options on that link, nat reflection or split dns but it's well documented that split dns is the best course of action

                        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                        Please do not use chat/PM to ask for help
                        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                        1 Reply Last reply Reply Quote 1
                        • J
                          johnpoz LAYER 8 Global Moderator
                          last edited by johnpoz Mar 19, 2020, 6:14 PM Mar 19, 2020, 6:12 PM

                          Well your not asking pfsense - so why would you think it would reply with your override?

                          notaskingpfsense.jpg

                          noshit.jpg

                          Your override is not on freaking googles dns servers for gosh sake!

                          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

                          M 1 Reply Last reply Mar 19, 2020, 6:25 PM Reply Quote 0
                          • K
                            kiokoman LAYER 8
                            last edited by kiokoman Mar 19, 2020, 6:21 PM Mar 19, 2020, 6:20 PM

                            kiokoman@nanto:~$ dig @172.17.0.254 -p110 any ilive.demb.ca
                            ;; Connection to 172.17.0.254#110(172.17.0.254) for ilive.demb.ca failed: timed out.
                            
                            ; <<>> DiG 9.11.5-P4-5.1ubuntu2.1-Ubuntu <<>> @172.17.0.254 -p110 any ilive.demb.ca
                            ; (1 server found)
                            ;; global options: +cmd
                            ;; Got answer:
                            ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21705
                            ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
                            ;; OPT PSEUDOSECTION:
                            ; EDNS: version: 0, flags:; udp: 4096
                            ;; QUESTION SECTION:
                            ;ilive.demb.ca.                 IN      ANY
                            
                            ;; ANSWER SECTION:
                            ilive.demb.ca.          1       IN      A       192.168.10.10
                            
                            ;; Query time: 3 msec
                            ;; SERVER: 172.17.0.254#110(172.17.0.254)
                            ;; WHEN: gio mar 19 19:17:56 CET 2020
                            ;; MSG SIZE  rcvd: 58
                            

                            dig @ pfsense-ip !!

                            and your pc need to use pfsense as dns server and only that

                            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                            Please do not use chat/PM to ask for help
                            we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                            Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                            1 Reply Last reply Reply Quote 0
                            • M
                              michaeldemb @johnpoz
                              last edited by Mar 19, 2020, 6:25 PM

                              @johnpoz Man, you need to better pay attention to questions. I am asking PF, but for some reason, it is forwarding the request to upstream DNS, instead of returning the value from overwrite table.

                              1 Reply Last reply Reply Quote 0
                              • J
                                johnpoz LAYER 8 Global Moderator
                                last edited by Mar 19, 2020, 6:28 PM

                                @michaeldemb said in Access host on the LAN using public IP:

                                you need to better pay attention to questions

                                You are NOT asking pfsense - its right there in front of you!!

                                You clearly have set pfsense to ask google - it doesn't do that out of box... Set pfsense to ask itself, which is the default! And then test your override asking it..

                                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

                                M 1 Reply Last reply Mar 19, 2020, 6:29 PM Reply Quote 0
                                • M
                                  michaeldemb @johnpoz
                                  last edited by Mar 19, 2020, 6:29 PM

                                  @johnpoz PF is set as my default DNS. It is configured with DNS forwarder that goes to google. So yes I am asking PF, but it just forwarding to google.

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    johnpoz LAYER 8 Global Moderator
                                    last edited by johnpoz Mar 19, 2020, 6:33 PM Mar 19, 2020, 6:30 PM

                                    @michaeldemb said in Access host on the LAN using public IP:

                                    So yes I am asking PF, but it just forwarding to google

                                    NO your NOT.. Your queries were direct to 8.8.8.8 - its right there in your screenshots!!

                                    askingpfsense.jpg

                                    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
                                      kiokoman LAYER 8
                                      last edited by Mar 19, 2020, 6:42 PM

                                      if it's not like the screenshot of johnpoz check this options
                                      Immagine.jpg

                                      ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                      Please do not use chat/PM to ask for help
                                      we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                      Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                                      M 1 Reply Last reply Mar 20, 2020, 12:17 PM Reply Quote 0
                                      • B
                                        Bob.Dig LAYER 8
                                        last edited by Mar 19, 2020, 7:01 PM

                                        @michaeldemb Best you start with a fresh pfSense...

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          michaeldemb @kiokoman
                                          last edited by Mar 20, 2020, 12:17 PM

                                          @kiokoman Thnks this is it. Also Override is working now. PF simply had cached DNS and was returning the old values. All is working now.

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