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

    Routing web traffic based on source ip to two different web servers

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 2 Posters 561 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.
    • U
      ultimal
      last edited by

      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/24

      WAN: 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 #2

      Thanks

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

        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.

        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.