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

Static route with dual lan and load balancing

Scheduled Pinned Locked Moved Routing and Multi WAN
3 Posts 2 Posters 2.2k 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.
  • D Offline
    densleonis
    last edited by Jan 11, 2007, 12:21 PM Jan 11, 2007, 12:16 PM

    Hi
    I have a dual wan configured with load balancing working right but I have a pb with some websites using ip to stay connected, when I click on a link on the page and loadbalancing switches to the other wan, it says that my session has expired…

    How can I tell pfsense that for one website (or IP) it have to use wan1 and not wan 2 ?

    here is how I set this up:

    ---------- 192.168.0.2--------FREEBOX(192.168.0.254)---
    LAN 10.0.0.103----- PFSENSE                                                                                 --------NET
                                             -----------192.168.1.2---------NEUFBOX(192.168.1.1)-----

    For example When I use IP 194.117.200.10, I wish It only uses ====> LAN then 192.168.0.2 then 192.168.0.254 then NET
    Hopt I am clear enough...

    Thanks in advance

    1 Reply Last reply Reply Quote 0
    • H Offline
      hoba
      last edited by Jan 11, 2007, 12:32 PM

      Create an hostsalias at firewall>aliases "unbalancable". Then add all destinations that won't work loadbalanced. Now go to firewall>rules, lan tab. Add a pass rule above your loadbalancing rule "pass, proto any, source any, destination unbalanceable, gateway <desired gateway="">. You also can do this based on destinationports like https or a portalias for example (https will most likely break when balanced).</desired>

      1 Reply Last reply Reply Quote 0
      • D Offline
        densleonis
        last edited by Jan 11, 2007, 8:46 PM

        It works thanks a lot  ;D

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received