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

    Convert LAN PORT to WAN PORT

    Routing and Multi WAN
    2
    3
    1.2k
    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.
    • M
      mehmetyayla
      last edited by

      Hi everyone,

      I dont know is this true section for this post.

      I want to lan to wan port forwarding

      For example,

      When I'll try to connection port 1251 anywhere, it is shuold be convert to port 25

      is it possible with pfsense?

      I've used before endian. But I have not used before pfsense.

      Please help me .

      Thanks for your answer.

      1 Reply Last reply Reply Quote 0
      • V
        vindenesen
        last edited by

        Hi mehmetyayla,

        You want to alter the destination port from 1251 to 25 on traffic going from LAN to WAN (or any other interface), but keep the destination IP address?
        Example: Host 10.0.0.5 tries to connect to any host (in another subnet) on port 1251. pfSense changes only the destination port from 1251 to 25, but keeps the destination IP address.

        I suspect that this isn't possible with pfSense. The nearest solution is the ability to redirect all outgoing traffic destined for any host on port 1251, towards a specific host on port 25.
        Example: Host 10.0.0.5 tries to connect to any host on port 1251. pfSense changes the destination IP address to 12.34.56.78 and port to 25. For this you would use port forwarding.

        Support the project by buying a Gold Subscription at https://portal.pfsense.org
        Running pfSense on SuperMicro A1SRI-2758F with ESXi 5.5

        1 Reply Last reply Reply Quote 0
        • M
          mehmetyayla
          last edited by

          thank you vindenesen for your reply.

          Thats right. I want to alter the destionation port going from lan to wan. But not necessary keep destination IP Address. Because we've a lot of Wan Ip address. We can send to any ip address. But should be as follows. 1251 to 25 wan ip xxx.xxx.xxx.xxx, 1252-26 wan ip xx1.xx1.xx1.xx1 etc…

          For example : telnet mx1.hotmail.com 1251
          hotmail server should give back to smtp helo (port 25)

          I'm investigating for long time and I learned it is feasible with outbound NAT.

          And I've tried alot of outbound rules. but doesn't work still

          And this is very important for me :(

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