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

[solved] Is double NAT bad if pfSense should not be the first router?

Scheduled Pinned Locked Moved NAT
13 Posts 2 Posters 1.1k 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.
  • B
    Bob.Dig LAYER 8
    last edited by Bob.Dig Mar 30, 2024, 2:47 PM Mar 29, 2024, 1:07 PM

    I am calling @johnpoz on this. 😁

    I have double NAT, where there is another router in front of pfSense, pfSense is the exposed host of this first router. Everything works (even IPv6 prefix delegation).

    Now I disabled almost all of the outbound NAT in pfSense, I had a route to my pfSense networks already in place in that first router.
    Screenshot 2024-03-29 140042.png
    The question: Do I gain any benefit from doing this or is it pointless. I want to keep the first router where it is.
    Second question: If I don't NAT, the Static Port Icon shouldn't be there, right? 😉

    J 1 Reply Last reply Mar 29, 2024, 1:28 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @Bob.Dig
      last edited by johnpoz Mar 29, 2024, 1:34 PM Mar 29, 2024, 1:28 PM

      @Bob-Dig so your first router is natting your pfsense lan side network(s)? So its not a soho type router - because not aware of any soho router that will do that.

      Off the top not thinking of any real advantage to this.. But can see some draw backs - if your wanting to talk to stuff on your pfsense wan, you would see asymmetrical.. While if you were natted, the dest you were talking to would respond to the wan IP of pfsense and it wouldn't be asymmetrical.

      As to static nat if not natting? Not sure - but the source port shouldn't change if your not natting. I have never played with this sort of scenario.. I could I guess with one of my VM pfsense installs.. Which currently are double natting.

      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

      B 2 Replies Last reply Mar 29, 2024, 1:33 PM Reply Quote 1
      • B
        Bob.Dig LAYER 8 @johnpoz
        last edited by Bob.Dig Mar 29, 2024, 1:35 PM Mar 29, 2024, 1:33 PM

        @johnpoz said in Is double NAT bad if pfSense should not be the first router?:

        @Bob-Dig so your first router is natting your pfsense lan side network(s)? So its not a soho type router

        I got mine for around 100 bucks back in the day, it is a soho type router around my place.

        J 1 Reply Last reply Mar 29, 2024, 1:35 PM Reply Quote 0
        • B
          Bob.Dig LAYER 8 @johnpoz
          last edited by Bob.Dig Mar 29, 2024, 1:36 PM Mar 29, 2024, 1:34 PM

          @johnpoz said in Is double NAT bad if pfSense should not be the first router?:

          But can see some draw backs - if your wanting to talk to stuff on your pfsense wan, you would see asymmetrical.. While if you were natted, the dest you were talking to would respond to the wan IP of pfsense and it wouldn't be asymmetrical.

          You told me before so there is a rule for that.

          1 Reply Last reply Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator @Bob.Dig
            last edited by Mar 29, 2024, 1:35 PM

            @Bob-Dig so it will just nat any source network that talks to it? Or you have to setup the natting of the downstream networks, or allow for them in firewall rules?

            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

            B 1 Reply Last reply Mar 29, 2024, 1:37 PM Reply Quote 1
            • B
              Bob.Dig LAYER 8 @johnpoz
              last edited by Bob.Dig Mar 29, 2024, 1:49 PM Mar 29, 2024, 1:37 PM

              @johnpoz said in Is double NAT bad if pfSense should not be the first router?:

              so it will just nat any source network that talks to it?

              This!

              Too bad I don't gain anything.

              1 Reply Last reply Reply Quote 0
              • B
                Bob.Dig LAYER 8
                last edited by Bob.Dig Mar 30, 2024, 12:15 PM Mar 30, 2024, 12:08 PM

                @johnpoz Now I encountered a problem. I have another pfSense behind my first pfSense, which is behind that other router. Now this second pfSense (which is the third router) has no internet. And I have no clue why this isn't working anymore, it still does NAT. Now I am thinking about burning this down. Maybe you have an idea what the culprit could be?

                J 1 Reply Last reply Mar 30, 2024, 12:16 PM Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator @Bob.Dig
                  last edited by Mar 30, 2024, 12:16 PM

                  @Bob-Dig so why would anyone want/need to setup 3 nat routers? And you don't want any of the 2 down stream routers to nat? Or you only want the 3rd one to nat to the 2nd router, and then it not to nat and only have your 1st router nat?

                  You could for sure setup router A, and then have B downstream of A, and C downstream of B and all work.. you could also have a D and an and E.. What is the end goal? Why would you need to setup so many routers downstream of each other on your local network?

                  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

                  B 1 Reply Last reply Mar 30, 2024, 12:21 PM Reply Quote 1
                  • B
                    Bob.Dig LAYER 8 @johnpoz
                    last edited by Bob.Dig Mar 30, 2024, 12:31 PM Mar 30, 2024, 12:21 PM

                    @johnpoz said in Is double NAT bad if pfSense should not be the first router?:

                    Or you only want the 3rd one to nat to the 2nd router, and then it not to nat and only have your 1st router nat?

                    This!

                    Why would you need to setup so many routers downstream of each other on your local network?

                    Like I said, probably the best thing to burn it down. But now I am curious why it is not working.

                    The reason why I did it like this, I want to sync some pfSense settings between this third pfSense and a pfSense on a VPS on the internet. Both have similar tasks, are like siblings.

                    Interesting, as soon as I disable those noNAT rules on the first pfSense and than reloading the WAN interface on the second, it has internet. I almost thought I got a different problem in the meantime.

                    J 1 Reply Last reply Mar 30, 2024, 12:57 PM Reply Quote 0
                    • J
                      johnpoz LAYER 8 Global Moderator @Bob.Dig
                      last edited by johnpoz Mar 30, 2024, 12:57 PM Mar 30, 2024, 12:57 PM

                      @Bob-Dig if your going to nat at your 1st router multiple downstream networks, you would need have routes setup at that router, and you would need routes setup on your 2nd router.

                      Lets say you have this

                      internet - 1st - 192.168.1/24 -- 2nd 192.168.2/24 -- 3rd 192.168.3/24

                      So 1st would need routes to both 2 and 3 or mask that includes both sending to 2nd routers 1.x address.

                      2nd router would need route to the 3 network pointing at 3rd routers 2.x address.

                      And firewall rules at all 3 routers would need to allow for all downstream networks.

                      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

                      B 1 Reply Last reply Mar 30, 2024, 2:02 PM Reply Quote 1
                      • B
                        Bob.Dig LAYER 8 @johnpoz
                        last edited by Mar 30, 2024, 2:02 PM

                        @johnpoz Is this all true even if the third does its NAT?

                        Also I noticed that on my first pfSense (the second router) I can ping 9.9.9.9 from any interface other than the one, which is the WAN for my third router. Doesn't make any sense to me.
                        Screenshot 2024-03-30 142208.png

                        J 1 Reply Last reply Mar 30, 2024, 2:32 PM Reply Quote 0
                        • J
                          johnpoz LAYER 8 Global Moderator @Bob.Dig
                          last edited by Mar 30, 2024, 2:32 PM

                          @Bob-Dig said in Is double NAT bad if pfSense should not be the first router?:

                          Is this all true even if the third does its NAT?

                          No if the 3rd router is natting to is 2.x address, then routing wouldn't need to include the 3rd router network in either the 1st router or the 2nd router.. Because anything behind the 3rd router is just going to look like a client of the 2nd router.

                          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

                          B 1 Reply Last reply Mar 30, 2024, 2:46 PM Reply Quote 1
                          • B
                            Bob.Dig LAYER 8 @johnpoz
                            last edited by Mar 30, 2024, 2:46 PM

                            @johnpoz I ditched that buggy interface in the first pfSense, even the whole vlan, and built a truly new one and it is working just fine. Sometimes pfSense can get messy. 😢

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