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

    Static destination IP translation

    NAT
    3
    7
    2.3k
    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.
    • J
      jejolb
      last edited by

      Hi,

      Im want to setup a destination with pool so I can translate 172.16.10.0/24 to 10.0.0.0/24. For example: destination 172.16.10.5 get translated to 10.0.0.5 and destination 172.16.10.20 gets translated to 10.0.0.20 and so forth. I tried using outbound NAT, but this only translates the source IP.

      Does Anyone have an idea how i can achieve this?

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

        https://doc.pfsense.org/index.php/1:1_NAT

        1 Reply Last reply Reply Quote 0
        • J
          jejolb
          last edited by

          Thanks for the reply!

          I tried that before and it did not work , see attachments.
          The translation doesnt seem to happen.
          msnetwork is the external intefac btw

          t1.PNG
          t2.PNG
          t1.PNG_thumb
          t2.PNG_thumb

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

            No idea what's that second screenshot supposed to mean. It matches none of the 1:1 subnets, what exactly should get translated there?!

            1 Reply Last reply Reply Quote 0
            • DerelictD
              Derelict LAYER 8 Netgate
              last edited by

              On what interface and in what direction do you want the destination translated?

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

              1 Reply Last reply Reply Quote 0
              • DerelictD
                Derelict LAYER 8 Netgate
                last edited by

                Can you translate the outside local to outside global (cisco speak) address in pfSense?

                Meaning if I have:

                Host A1: 172.26.0.100

                pfSense LAN: 172.26.0.1

                pfSense WAN: 172.27.0.5

                Host A1 attempts a connection to 10.0.0.5.  Can pfSense translate that destination address from 10.0.0.5 to 172.16.10.5, while also translating the source address from 172.26.0.100 to 172.27.0.5 on its way out WAN?

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                1 Reply Last reply Reply Quote 0
                • J
                  jejolb
                  last edited by

                  I want the NAT translation to take place on the WAN interface. Basically i want the following to happen:

                  LAN Subnet 10.0.0.0/24
                  HostB on LAN: 10.0.0.5
                  HostC on LAN: 10.0.0.10

                  WAN subnet: 192.168.190.0/24
                  WAN interface:192.168.190.10
                  HostA on WAN:192.168.190.20

                  Host A has a static route to 172.16.10.0/24 with next hop 192.168.190.10

                  Host A attempts to connect with HostB on 172.16.10.5, pfsense(192.168.190.10) translates the destination to 10.0.0.5. HostB sends a reply back to 192.168.190.20(hostA) with source 10.0.0.5, pfsense(192.168.190.10) translates the source to 172.16.10.5.

                  Host A attempts to connect with HostC on 172.16.10.10, pfsense(192.168.190.10) translates the destination to 10.0.0.10. HostC sends a reply back to 192.168.190.20(hostA) with source 10.0.0.10, pfsense(192.168.190.10) translates the source to 172.16.10.10.

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