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

    How to configure pfsense to forward ports without specifying a gateway on local PC?

    Scheduled Pinned Locked Moved NAT
    2 Posts 2 Posters 765 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.
    • S
      SergeInt
      last edited by

      That was an article on the Russian part of the forum, where I can found the answer (http://forum.pfsense.org/index.php/topic,40376.msg208841.html#msg208841). But now the link is broken. I know that task was completed with help of manual adding rules in outbond nat. Please help to find info about this task.

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

        You have to outbound NAT on the interface you are forwarding the traffic out of to the target. That way the source address appears to be from an address on the target's local subnet so reply traffic doesn't get forwarded by the target server to its default gateway.

        If you were port forwarding TCP port 80 to LAN host 192.168.1.100 the NAT would look like this:

        Firewall > NAT, Outbound

        Select hybrid if not already hybrid or manual and save. Make a new rule:

        Interface: LAN
        Address Family: IPv4
        Protocol: TCP
        Source: Any
        Destination: 192.168.1.100 - Port: 80
        Translation Address: Interface Address

        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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.