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

    Chained nat

    Scheduled Pinned Locked Moved NAT
    8 Posts 5 Posters 1.4k 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.
    • I
      ismaelnoble
      last edited by

      has anyone managed to get chained nat to work in PfSense, im looking to do something similar to proxy chaining where the setup would be something like

      WAN–>pfsense wan ip--->pfsense wanip2---> host on wan2

      where i would type in pfsense wan ip: 8000 if would nat to wanip2 8000
      at which point the system would then nat wanip2 8000 to host on wan2 port 80.

      i have the system setup to the point where i am able to type in wanip2 8000 and get the web port of the host on wan2
      i also have the nat setup for wan1 port 8000 to wanip2 8000 but cant get it to work from the wan1 side.
      i have tested the forward from wan1 port 8000 to a lan host and it works so it may be a setting im missing to facilitate the chaining of wan rules.

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        read this like 5 times and can not for the life of me figure out what your trying to accomplish..

        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

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

          One interpretation of their description is they have two NATs and want the first external NAT to forward port 8000 to the first internal NAT, then have that NAT forward to an internal host on port 80?

          The confusing part is WAN is being used everywhere and there are no LANs? While WANs are an concept of a "wide area network", they also carry and assumption that they have publicly routable IP addresses. Of courseyou don't use NAT to connection routable IP addresses, so it's very confusing as to what is public and what is private.

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            So you agree its confusing to what they are after ;)  Glad not just me…

            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

            1 Reply Last reply Reply Quote 0
            • D
              doktornotor Banned
              last edited by

              Does this have some actually meaninful purpose?

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                Not sure because at a loss to what the OP is actually wanting to accomplish - can you make out what he wants to do?

                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

                1 Reply Last reply Reply Quote 0
                • D
                  doktornotor Banned
                  last edited by

                  Not at all… hence asking about what's the real purpose here... :D

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

                    @ismaelnoble:

                    has anyone managed to get chained nat to work in PfSense, im looking to do something similar to proxy chaining where the setup would be something like

                    WAN–>pfsense wan ip--->pfsense wanip2---> host on wan2

                    where i would type in pfsense wan ip: 8000 if would nat to wanip2 8000
                    at which point the system would then nat wanip2 8000 to host on wan2 port 80.

                    i have the system setup to the point where i am able to type in wanip2 8000 and get the web port of the host on wan2
                    i also have the nat setup for wan1 port 8000 to wanip2 8000 but cant get it to work from the wan1 side.
                    i have tested the forward from wan1 port 8000 to a lan host and it works so it may be a setting im missing to facilitate the chaining of wan rules.

                    not sure about your question . can you draw your network topology ?
                    if there are nat after nat affter nat .. going on and you want to forward a port for application at last nat translations..assign the host static ip and do it straigth from throughout the chain..

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