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

    1 to 1 NAT Setup and Hostnames

    Scheduled Pinned Locked Moved NAT
    13 Posts 2 Posters 5.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.
    • P
      podilarius
      last edited by

      You can use the DNS forwarder as a DNS server for only the system behind it and have it hand out local addresses for certain hosts. You can then have pfSense use your official company DNS servers to resolve everything else. Good luck though if you still cannot make use of that.

      1 Reply Last reply Reply Quote 0
      • S
        syspfsense00
        last edited by

        I am slightly confused. pfSense would hand out 192.168.. addresses and hostnames?

        I think it's forwarding all the dns requests to our server? How would I do this?

        Thanks

        1 Reply Last reply Reply Quote 0
        • P
          podilarius
          last edited by

          At the bottom of the DNS forwarder is a host and domain override that you can use to override those queries to certain host names or full domains.
          Yes, pfSense would override an internet routable IP with a private IP. Anything that is not in the host or domain overrides are passed through without modification.

          1 Reply Last reply Reply Quote 0
          • S
            syspfsense00
            last edited by

            I'm still confused, what I want to do is have a outside address (1:1 NAT) for one of the servers.
            Which might not be possible since we have MAC filtering? Is there anyway for the server's MAC address to go to the company's dns server?(DNS forwarding I'm not sure what to do, note: it's been enabled by default)

            Ideally I should be able to ping the router's public ip address and the server's public ip address.
            So I think that's what I want to do, yet so far I haven't been able to set up 1:1 NAT, only port forwarding.
            :-\

            1 Reply Last reply Reply Quote 0
            • P
              podilarius
              last edited by

              Are you trying to access the servers from a system in the LAN or from outside the WAN?

              1 Reply Last reply Reply Quote 0
              • S
                syspfsense00
                last edited by

                Outside the WAN (public IP addresses)

                1 Reply Last reply Reply Quote 0
                • P
                  podilarius
                  last edited by

                  My apologies, I thought you were trying to access from within the network.
                  In that case, when you remove the port forward, it probably removes the linked FW rule. For a 1:1 NAT, once you create the NAT, you have to go into the WAN rules and setup a rule to pass the traffic to the internal address. Do you have that rule created?

                  1 Reply Last reply Reply Quote 0
                  • S
                    syspfsense00
                    last edited by

                    Actually I don't have the NAT rule set up.

                    I have a few questions (see post above for IP addresses)

                    The external subnet ID would be 129.10.94.0?
                    Internal IP (web server's) would be 192.168.1.101?
                    Destination would be any? Or would it be 129.10.94.6?

                    Thanks!

                    1 Reply Last reply Reply Quote 0
                    • P
                      podilarius
                      last edited by

                      This is the firewall rule on the WAN interface. If not mentioned … leave default.
                      Source: Any
                      Source port: Any
                      Destination: 192.168.1.101
                      Dest. Port: (80 .. 25 .. 443 ... and so on)

                      On the 1:1 NAT
                      external subnet ID would be 129.10.94.6
                      Internal IP (web server's) would be 192.168.1.101 as a single host.

                      Destination would be any? Or would it be 129.10.94.6?

                      Leave this blank/default.

                      1 Reply Last reply Reply Quote 0
                      • S
                        syspfsense00
                        last edited by

                        Even after resetting to factory default, I still can't make it work.

                        I determined that my company's MAC address filtering is to blame, anyway we have found a way around this.

                        Thanks!

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