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

    1:1 NAT not allowing incomming connections

    Scheduled Pinned Locked Moved NAT
    7 Posts 4 Posters 3.7k 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.
    • C Offline
      cybercare
      last edited by

      I have a pfsense setup with a WAN, LAN and DMZ.

      The WAN has many public IP's. So I setup 5 to do 1 to 1 nat to the DMZ and it works as far as outbound/nat as if I go to whatismyip.com from a pc in the dmz it shows the correct ip, however inbound does not seem to be open?

      I set a rule to allow all traffic from WAN to Public IP assigned to the DMZ yet if I do a port scan or something they show as closed.

      I want any traffic sent to these 5 IP's that go to the DMZ to be allowed. The DMZ will have its own firewall put in place that the user will control what he wants open or not but I cant get it to allow things inbound to him even with my rule setup.

      What am I doing wrong? I got it set Source any on the WAN interface, destination Public IP assigned to first ip on DMZ that is set in 1 to 1 and I would think that should allow anything to go to the device but no…

      1 Reply Last reply Reply Quote 0
      • dotdashD Offline
        dotdash
        last edited by

        You need to use the private address of the device, not the public IP it is 1-1 translated to.

        1 Reply Last reply Reply Quote 0
        • C Offline
          cybercare
          last edited by

          I have a rule also set for WAN interface, source any - destination DMZ Subnet so that should cover the local ones, but its still no go.

          1 Reply Last reply Reply Quote 0
          • C Offline
            cmb
            last edited by

            Sounds like your NAT configuration is definitely fine.

            First, enable logging on your WAN pass rules. Then try to access those servers from a host on the Internet (it won't work from inside your network).

            Then check your firewall logs.

            1 Reply Last reply Reply Quote 0
            • C Offline
              cybercare
              last edited by

              Thats the odd part, nothing shows in the loggs… So I assume it passes it and the log does not show passes?

              Also, no dropps or errors on any interfaces...

              Any other suggestions? I am about to reload the box because after I updated it yesterday to the latest snapshot it has started doing random reboots/crashes but if still does not work I dont know what else to do. I need this very bad. :(

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                If you have logging enabled for the rule, and nothing is being logged, then the rule isn't being hit.

                1 Reply Last reply Reply Quote 0
                • C Offline
                  cybercare
                  last edited by

                  You know what, I am an stupid. I just remembered I did not tell the spacific rule itself to log, I just had logs in general on… Dohh... Anyway I am in the process of rebuilding it now due to crashing for some odd reason after the 11/6 snapshot was put on.

                  When I am done I will remake the rules and what not from scratch and maybe it will work now, I dont know... :)

                  If not I will post back with my findings as I only have one more day to get this thing working. :(

                  If anyone else can think of anything please let me know,

                  But am I correct in assuming that making the rules like I did it should just pass all traffic going to the 5 public IPs to the 5 local on the DMZ and it will be upto the hosts/devices to firewall? That is what I am after. I know I can do individual ports but I just want EVERYTHING allowed on these 5...

                  UPDATE Guess I am dead right now... The 11/6 snapshot is broke it seems or at least for me... Posted my problem in install/upgrades... I keep getting random reboots. So cant finish playing with this until that system stays up. :)

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