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

    Port Forwarding + rewriting source ip

    Scheduled Pinned Locked Moved NAT
    2 Posts 2 Posters 1.8k 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
      s.rabas
      last edited by

      Hi

      I'd like to use pfsence as a second (yes I know, slightly odd… but in my special case it makes sense.)
      firewall in my network.
      Therefore the pfsence box is NOT the standard gateway.

      I enabled port forwarding.
      It works fine, but I couldn't figure out, how to get the source ip address of the packets rewritten.
      At current state, the incoming (from WAN) packets get routet through to the specified machines.
      But as the source IP's remain the original ones, the answering machine tryes to route them through
      my standard gateway, which blocks them.

      How can I enable inbound NAT and source ip rewriting on the firewall?

      I also need more than 2 port forwarding rules, so i figured out that 1:1 NAT doesn't fit here.

      The config as I want to have it works fine on n old openSUSE machine wich i want to replace.

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        I never actually tested this.
        I "think" if you create an "advanced outbound NAT" rule that NAT's from the WAN to your LAN it should rewriting the source.

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

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