Routing web traffic based on source ip to two different web servers
-
Is it possible to route packets to two different end points based on where the traffic originates, all using pfSense?
E.g.
Web Server #1: 10.0.1.200/24
Web Server #2: 10.0.2.200/24WAN: 40.30.20.10
Route #1: IF SOURCE=170.160.150.0/24 THEN SEND PACKETS TO WEB SERVER #1
Route #2: IF SOURCE=210.220.230.0/24 THEN SEND PACKETS TO WEB SERVER #2Thanks
-
Just use those source networks as source networks in your port forward rules. Source networks in port forwards are hidden under the advanced button (for good reason). Leave the source port as any.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.