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

    Routed Subnet on LAN

    NAT
    2
    11
    10.1k
    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.
    • H
      hoba
      last edited by

      Does your router between the server and the pfsense do nat? If not you need a static route at the pfsense using the routers IP 192.168.2.2 as gateway for the subnet 192.168.100.0/24 (I guess it's a /24 subnet?).

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

        No the internal router does not do NAT.  I already have the route statement as you suggest.  Any other things I should check?

        1 Reply Last reply Reply Quote 0
        • H
          hoba
          last edited by

          Does the pfsense do nat or are you routing? maybe the router in front of your pfsense doesn't have a route back to your 192.168.100.0/24 subnet?

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

            yes, pfSense is doing NAT.

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

              Well I am about to throw in the towel.  Just to make sure nothing on the back-end changed I burned a m0n0wall boot CD/Floppy and added the exact same settings and it works.  I have had people better qualified than I take a look at it as well but still nothing.  Does anyone else have a routed subnet on the LAN side that is working?

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

                Ok, running TCPDUMP on the WAN interface shows that traffic from the LAN subnet is being NATed correctly but traffic from the Core Network subnet is NOT being NATed but using the actual address.  Is this a bug or do I need to do something special to make sure this subnet is NATed

                1 Reply Last reply Reply Quote 0
                • H
                  hoba
                  last edited by

                  Try enabling advanced outbound nat (webgui, Firewall>Nat, outbound tab).
                  It will create a rule for the LAN interface. Copy that rule and modify the Source to be the core network. does this then work for you?

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

                    @hoba:

                    Try enabling advanced outbound nat (webgui, Firewall>Nat, outbound tab).
                    It will create a rule for the LAN interface. Copy that rule and modify the Source to be the core network. does this then work for you?

                    YES!!  That did it.  Is this normally needed or is there something funky with my network that requires this?

                    1 Reply Last reply Reply Quote 0
                    • H
                      hoba
                      last edited by

                      If you say it works with m0n0 it looks like we are doing something different here with the "behind the scenes" nat rules. Maybe m0n0 creates a source any rule at internal interfaces and we only nat the interfaces source IP range. we'll have to check this and discuss if we want it the other way.

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

                        Fair enough.  Thanks for all of your help Hoba.

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