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

    Same NaT translation

    Scheduled Pinned Locked Moved NAT
    8 Posts 3 Posters 1.0k 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.
    • L
      lifeanddeath
      last edited by

      Hello everybody,

      How can I set my nat setting that when an outsider user wants to connect my pfsense subnet they will again have the same ip after nat translation?

      For example, if there is a user with a ip 179.156.130.45 , wants to connect my pfsense subnet, how should ı arrange my nat table that it will again have this 179.156.130.45 ip, after nat translation.

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

        He?!?!?  :o ???

        Perhaps describe the GOAL here instead.

        1 Reply Last reply Reply Quote 0
        • L
          lifeanddeath
          last edited by

          I think it was quite explanatory , why wouldnt u understand sir?

          I say that, I have a computer that has pfsense on it, so what I want is, some user from outside of the network for example with the IP 193.168.139.140, wants to connect ınternet vıa usıng my pfsense network,so when it will try to connect my pfsense subnet, pfsense will give it to new ip after proceeding NAT, so it will have a new ip like a 192.156.130.132 but ı dont want this, ı want it to have exactly same ip like it has before, so how can i do it?

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

            Your user "from outside of the network" will not be able to connect at all… wrong subnet, wrong GW, no route back. Dunno what problem are you trying to "solve" here.

            1 Reply Last reply Reply Quote 0
            • L
              lifeanddeath
              last edited by

              Dude it is like this we have company here and we re thinking about to place a pfsense access point to refactory so that people there can connect to ınternet vıa pfsense, so its actually local area network ınsıde to company rıght?and we wıll use pfsense to block some sites and put lımıtatıons, so when people wants to connect ınternet  they wıll fırst have ıp from ınsıde the company with DHCP thanks to wireless , so after that they wıll enter to pfsense access poınt, so ı want them to have same ip again they obtained from DHCP after they connect to Pf sense

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

                Then route and do NOT NAT the traffic. System - Routing - Gateways/Routes.

                https://doc.pfsense.org/index.php/Static_Routes

                P.S. FreeBSD is an absolutely horrible platform to run wireless AP on. Draw some network diagram on what you plan to do to get some input.

                1 Reply Last reply Reply Quote 0
                • L
                  lifeanddeath
                  last edited by

                  thanks I'll try it out !

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Yes, a diagram here would help a lot. It's not obvious to me what you're trying to achieve.

                    Steve

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