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

    NAT external IP to internal one + port

    Scheduled Pinned Locked Moved NAT
    1 Posts 1 Posters 671 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
      luupi
      last edited by

      Hello all,

      I am migrating to iptables to Pfsense and I am trying to implement all the configuration to match.

      To summarize, we have email filtering client that needs to pull out LDAP information from our AD server on our private network.  Traffic sourced from the email client, destined to our public facing email server on port 389, needs to be translated to the private IP of our internal AD server, and again on port 389.

      $IPTABLES -t nat -A PREROUTING -i eth0 -s <email service public IP>  -d <public facing email server> -p tcp –dport 389 -j DNAT --to <private IP>:389

      Do you have any idea on what needs to be configured in Pfsense to accomplish this. Thanks in advance

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