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

NAT Reflection (Pure NAT) not working for same subnet (v2.2.2)

Scheduled Pinned Locked Moved NAT
43 Posts 14 Posters 15.9k 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.
  • R
    reinaldo.feitosa
    last edited by Sep 15, 2015, 3:54 PM

    Not working for me too.

    Version 2.2.4 (amd64)

    Old instalation 2.1.5 (amd64) is work.
    Update 2.1.5 to 2.2.4 too work

    New instalation 2.2.4 not work

    1 Reply Last reply Reply Quote 0
    • C
      captdragon
      last edited by Apr 17, 2016, 11:27 PM

      Still not working  :o

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by Apr 19, 2016, 1:03 AM

        Pure NAT for same subnet works fine. You also need to enable the source NAT option, "Enable automatic outbound NAT for Reflection".

        1 Reply Last reply Reply Quote 0
        • R
          rossc719
          last edited by May 18, 2020, 3:20 PM

          I know this is a bit of thread necromancy on my part, but I had the same issue as the OP, and was able to use the discussion here to put together a fix for the bug. (Yes, I really do think it is an actual bug).

          I figured I would put my findings here for future people googling the issue.

          HOWEVER.. when I try to submit, I am being told that I am spam. "Post content was flagged as spam by Akismet.com" Grr.

          So here is my analysis:
          https://docs.google.com/document/d/1DCtqI2q3RlaK6HkTgp_xFw6poxWg6wiJlzw0V7lDtGU/edit?usp=sharing

          1 Reply Last reply Reply Quote 2
          • J
            johnpoz LAYER 8 Global Moderator
            last edited by May 18, 2020, 3:32 PM

            And do you have this checked?
            nat.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
            • R
              rossc719
              last edited by May 18, 2020, 3:33 PM

              Yes.

              Screen Shot 2020-05-18 at 8.32.37 AM.png

              1 Reply Last reply Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator
                last edited by johnpoz May 18, 2020, 3:45 PM May 18, 2020, 3:42 PM

                Well works fine here..

                I just created a port forward to 192.168.9.10 port 80..

                portforward80.jpg

                I enabled nat reflection, pure nat... Hit my wan IP 64.53 - and there you go it WAD..
                purenat.jpg

                You can see it natted my traffic from 192.168.9.100 to 64.53.x.x to souce IP of my lan interface 192.168.9.253

                capture.jpg

                traffic.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
                • R
                  rossc719
                  last edited by May 18, 2020, 3:51 PM

                  Ok. I believe that it works for you. But, It does not work for me.
                  Whatever this bug is, it is clear that it is not happening to everyone.

                  I don't know what would be peculiar about my setup.
                  It is relatively fresh, only a few weeks old, and I have only a few rules set up (so far). Nothing complex at all. This NAT reflection was the first "interesting" thing I tried.

                  I don't know what I could do to convince you that I really am experiencing this issue, but I'm happy to try if you have suggestions.

                  1 Reply Last reply Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator
                    last edited by johnpoz May 18, 2020, 4:02 PM May 18, 2020, 3:54 PM

                    @rossc719 said in NAT Reflection (Pure NAT) not working for same subnet (v2.2.2):

                    Whatever this bug is

                    A "bug" can be duplicated and normally easy to replicated...

                    Whatever is going on with your specific scenario is not a bug, unless you can show other people having the issues that is not from 5 years ago - which I just tried and works as designed..

                    When create the port forward and you have that checked, it will auto create the rule that does the source natting... Did you check that after the fact? After you have created your port forward?

                    To be honest they really could just rip out and remove all the nat reflection shit to be honest.. Its NOT how things should be done in the first place... I would never in a million years setup such a hack ;) If I wanted to get to my webserver next to me, then I would resolve its fully qualified domain to that IP, or use that IP... Makes ZERO sense to hit my wan IP in the first place ;)

                    But as you can see, even someone that doesn't use nat reflection, and hates it at professional level - it clearly WAD.. It was couple clicks to get that nonsense working. Simple 1 click setting up host override easier and cleaner solution ;)

                    BTW - what mask are you running on your network?

                    I've got a web server running @ 192.168.5.1.
                    I am testing using my phone @ 192.168.10.1.
                    My LAN interface of the pfsense is @ 192.168.0.1.
                    
                    

                    To any sane person that would be 3 different networks.. Are you using a /16 or something? To allow for the 65K devices you have on 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

                    R 1 Reply Last reply May 18, 2020, 4:04 PM Reply Quote 0
                    • R
                      rossc719 @johnpoz
                      last edited by rossc719 May 18, 2020, 4:07 PM May 18, 2020, 4:04 PM

                      When create the port forward and you have that checked, it will auto create the rule that does the source natting... Did you check that after the fact? After you have created your port forward?

                      Yes. It was not there.
                      Specifically, there were no "nat on" lines that related to port 80 at all.

                      In fact, there still aren't:

                      [2.4.5-RELEASE][admin@juno.wombat.net]/root: grep "nat on" /tmp/rules.debug
                      nat on $LAN inet from 192.168.0.0/18 to 192.168.0.0/18 -> 192.168.0.1/32 port 1024:65535
                      nat on $WAN inet from $tonatsubnets to any port 500 -> WAN_ADDRESS/32  static-port
                      nat on $WAN inet6 from $tonatsubnets to any port 500 -> (igb0)  static-port
                      nat on $WAN inet from $tonatsubnets to any -> WAN_ADDRESS/32 port 1024:65535
                      nat on $WAN inet6 from $tonatsubnets to any -> (igb0) port 1024:65535
                      no nat on igb1 proto udp from (igb1) to 192.168.0.2 port 53
                      nat on igb1 proto udp from 192.168.0.0/18 to 192.168.0.2 port 53 -> 192.168.0.1 port 1024:65535
                      

                      But as you can see, ... It was couple clicks to get that nonsense working.

                      Indeed. For you.
                      Again... I really do believe that it works for you.
                      It does not work for me.

                      BTW - what mask are you running on your network?

                      192.168.0.0/18

                      1 Reply Last reply Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator
                        last edited by May 18, 2020, 4:08 PM

                        @rossc719 said in NAT Reflection (Pure NAT) not working for same subnet (v2.2.2):

                        192.168.0.0/18

                        Use something sane! ;)

                        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

                        R 1 Reply Last reply May 18, 2020, 4:09 PM Reply Quote 0
                        • R
                          rossc719 @johnpoz
                          last edited by May 18, 2020, 4:09 PM

                          @johnpoz said in NAT Reflection (Pure NAT) not working for same subnet (v2.2.2):

                          Use something sane! ;)

                          I don't see that this is related to the issue at hand.

                          1 Reply Last reply Reply Quote 0
                          • J
                            johnpoz LAYER 8 Global Moderator
                            last edited by johnpoz May 18, 2020, 4:15 PM May 18, 2020, 4:10 PM

                            Maybe its a bug for when people use insane masks and try and do nat reflection ;)

                            2.4.5-RELEASE][admin@sg4860.local.lan]/root: grep "nat on" /tmp/rules.debug
                            no nat on igb0 proto tcp from (igb0) to 192.168.9.10 port 6666
                            nat on igb0 proto tcp from 192.168.9.0/24 to 192.168.9.10 port 6666 -> 192.168.9.253 port 1024:65535
                            [2.4.5-RELEASE][admin@sg4860.local.lan]/root:
                            

                            These get created when I do nat reflection, just did another one for 6666 port

                            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

                            R 1 Reply Last reply May 18, 2020, 4:14 PM Reply Quote 0
                            • R
                              rossc719 @johnpoz
                              last edited by May 18, 2020, 4:14 PM

                              @johnpoz said in NAT Reflection (Pure NAT) not working for same subnet (v2.2.2):

                              Maybe its a bug for when people use insane masks and try and do nat reflection ;)

                              Perhaps, but seems unlikely. Especially given that the OP seems to have used 10.121.12.0/24.

                              1 Reply Last reply Reply Quote 0
                              • J
                                johnpoz LAYER 8 Global Moderator
                                last edited by johnpoz May 18, 2020, 4:17 PM May 18, 2020, 4:16 PM

                                The OP was using version 2.2 of pfsense.. So whatever has ZERO to do with today... Unless your using version 2.2 of pfsense?

                                Thought you said pfsense IP was 0.1 here there are nat rules to 0.2

                                no nat on igb1 proto udp from (igb1) to 192.168.0.2 port 53

                                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

                                R 1 Reply Last reply May 18, 2020, 4:18 PM Reply Quote 0
                                • R
                                  rossc719 @johnpoz
                                  last edited by rossc719 May 18, 2020, 4:19 PM May 18, 2020, 4:18 PM

                                  @johnpoz said in NAT Reflection (Pure NAT) not working for same subnet (v2.2.2):

                                  The OP was using version 2.2 of pfsense.. So whatever has ZERO to do with today... Unless your using version 2.2 of pfsense?

                                  Nope, I am using 2.4.5-RELEASE.

                                  These get created when I do nat reflection, just did another one for 6666 port

                                  Again, I believe that it works for you.
                                  But, it does not work for me.

                                  Thought you said pfsense IP was 0.1 here there are nat rules to 0.2

                                  This is unrelated to the issue at hand.
                                  0.2 is my DNS server.
                                  0.1 is pfsense.

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    johnpoz LAYER 8 Global Moderator
                                    last edited by May 18, 2020, 4:20 PM

                                    Have no idea what else is unique to your setup... Someone using a /18 mask prob has all sorts of nonsense setup ;)

                                    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
                                    • R
                                      rossc719
                                      last edited by May 20, 2020, 11:22 PM

                                      If anyone is interested in debugging this at a later date, please let me know.
                                      I am very interested in working with anyone who has any constructive ideas for how to move forward.

                                      For now, the hack I described above, (The manually created outgoing NAT rule) seems to patch over the bug, so I will go ahead and use that.

                                      Cheers

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        johnpoz LAYER 8 Global Moderator
                                        last edited by May 21, 2020, 12:15 PM

                                        @rossc719 said in NAT Reflection (Pure NAT) not working for same subnet (v2.2.2):

                                        seems to patch over the bug

                                        There is no BUG.. The problem your seeing is something unique to your setup.. More than happy to help you work through it.. But as I have shown, I can not reproduce your issue. The problem is something unique to your setup.

                                        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

                                        R 1 Reply Last reply May 21, 2020, 8:06 PM Reply Quote 0
                                        • R
                                          rossc719 @johnpoz
                                          last edited by May 21, 2020, 8:06 PM

                                          More than happy to help you work through it..

                                          Excellent. How would you like to proceed?

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