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

    Single Lan - Multi Wan routing question

    Scheduled Pinned Locked Moved Routing and Multi WAN
    5 Posts 2 Posters 2.0k 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.
    • B
      bashirj
      last edited by

      Hi Guys,

      I have been trolling the forum looking for a possible soluotion but thus far have been unable to find, so hoping someone can point me in the correct direction. What I am trying to achieve sounds trivial in relation to setting it up, for me at least.

      What is have is a pfsense 2.0 box with 3 interfaces, 1 lan and 2 wan interfaces, both wan has static ip's.

      I have it set up at the moment that all LAN traffic goes out via the default route, what I want to achieve is to have a sub set of the lan to go out via the second wan connection.

      192.168.0.0/24 <> via default
      192.168.0.100-192.168.0.110 <> via wan2

      is this set up possible? I do not require fail-over or any load balancing at this stage…. this is purely for my development network and just need to split the traffic.

      Bash

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        sure. You can specify a gateway for each firewall rule.

        create an alias for the address' you wish to send to the secondary wan and give it some name.

        then create a new firewall rule in the LAN tab, above the default rule.
        it should be similar to the default rule that is allready there with 2 differences:
        source: alias_of_adress_you_created
        gateway: wan2_gateway

        1 Reply Last reply Reply Quote 0
        • B
          bashirj
          last edited by

          Thanks Heper,

          I have done this but I am still going out via default route.

          I have:

          • created an alias with relevent lan addresses and named it under firewall>aliases

          • created a firewall rule under firewall>lan and duplicated the defalut rule and changed the source to the named alias and gateway to the secind wan connection

          However when i go to whatsmyip i still see the default wan ip address. is there anything else i need to do?

          Bashir

          1 Reply Last reply Reply Quote 0
          • H
            heper
            last edited by

            did you reset states ?
            Resetting states is sometimes needed when making adjustments to the rules
            also: you can experiment with the order (move one above the other). But as far as i know the default rule should be at the bottom, the one going to GW2 should be above default rule.

            1 Reply Last reply Reply Quote 0
            • B
              bashirj
              last edited by

              Sorry for replying so late, was unable to get on to the forum for all of yesterday.

              I have reset states as well as moved the rules around and still no luck.

              attached screen captures of the rules and associated aspects.

              lan_alias.JPG
              lan_alias.JPG_thumb
              lan_rule.JPG
              lan_rule.JPG_thumb
              wan.JPG
              wan.JPG_thumb

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