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

    [SOLVED]Redirect outgoing traffic port to lan port

    Scheduled Pinned Locked Moved NAT
    6 Posts 3 Posters 1.2k 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.
    • G
      Gioggiolo
      last edited by

      Hello,
      sorry for my bad english and i don't know if this is the right section.

      I have installed a pfsense box with 1 LAN interface and 1 WAN interface.

      I'd like to redirect the outgoing connections on a specific port to a lan address:port.
      Let me write an example.
      A LAN PC having address 172.16.2.10 tries to make a TCP connection to a REMOTE_IP:62150.
      I'd like to force the connection to the LAN address:port 172.16.2.150:34567

      How I can do it? I tried many things but nothing worked.
      I hope I explained it well.

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

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

        1 Reply Last reply Reply Quote 0
        • G
          Gioggiolo
          last edited by

          Thank you doktornotor
          but it doesn't work.
          I attached screenshots

          port_forward.png
          port_forward.png_thumb
          associated_rule.png
          associated_rule.png_thumb
          logging.png
          logging.png_thumb

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

            Why don't you have 172.16.2.20 just connect directly to 172.16.2.150?

            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
            • D
              doktornotor Banned
              last edited by

              ^^^ This.

              @Gioggiolo:

              Thank you doktornotor
              but it doesn't work.

              If's something on your LAN (and not pfSense itself), you'd better leave the NAT reflection enabled.

              1 Reply Last reply Reply Quote 0
              • G
                Gioggiolo
                last edited by

                Again Thank you doktornotor!
                By enabling pure NAT, the LAN port forward works!  ;D

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