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

    Help with NAT rules

    Scheduled Pinned Locked Moved NAT
    1 Posts 1 Posters 275 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.
    • H
      hotdog
      last edited by

      I am trying to test out load balancing in the home lab and am running into issues. I haven't tried to do this before on pfsense and am lost. I have an incoming NAT rule to forward port 8080 to the load balancer. The load balancer then sends the data to the correct server. The server then tries to connect directly to the source IP bypassing the load balancer on the way out. The traffic is hitting pfsense fine but if I do not have an outbound NAT rule it changes the source port from 8080 to something else. Then when the client IP receives the data it gets dropped because the port does match what the client firewall is expecting. I tried setting outbound NAT to hybrid and adding a rule but can't get it to work. I have tried several different setting for the rule, but the traffic in a packet capture shows the internal address and it doesn't rewrite it so it never makes it through pfsense. Any ideas? I'm sure I missed something. Thanks!

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