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

    2 WAN AND 1 LAN WITHOUT BALANCING

    Scheduled Pinned Locked Moved Routing and Multi WAN
    6 Posts 2 Posters 1.8k 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
      denisx
      last edited by

      Hi, I have 2 wan (wan1, wan2)interfaces and one Lan interface, I need divide the LAN into 2 groups,
      the first group to the wan1 and the second group to the wan2.

      like this:

      group 1
      ip: 192.168.1.101,192.168.1.102,192.168.1.103,192.168.1.104 to WAN1

      group 2
      ip: 192.168.1.111,192.168.1.112,192.168.1.113,192.168.1.114 to WAN2

      I need the rules or the steps to do it.
      My server have 3 interfaces: wan1,wan2, lan.

      I have tried everything and No results.

      Please help me.

      Thanks in advance.

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

        create aliasses (firewall –> aliases) and create your groups of hosts.

        then create a rule on the lan-tab with source (alias_X) and choose Gateway_X, create a second rule with source (Alias_Y) and choose Gateway_Y
        dont forget to remove/disable/override the default any-to-any rule ;)

        enjoy

        1 Reply Last reply Reply Quote 0
        • D Offline
          denisx
          last edited by

          @heper:

          create aliasses (firewall –> aliases) and create your groups of hosts.

          then create a rule on the lan-tab with source (alias_X) and choose Gateway_X, create a second rule with source (Alias_Y) and choose Gateway_Y
          dont forget to remove/disable/override the default any-to-any rule ;)

          enjoy

          Thanks you are the best.

          1 Reply Last reply Reply Quote 0
          • D Offline
            denisx
            last edited by

            Sorry, i have another question…

            Can i use squid (no transparent) to block/allow several sites with this configuration?

            i have the 2 groups and work fine, but i need a proxy.
            if all machines pass thru the proxy then the wan, the division is useless?

            example
            proxy = 192.168.2.1
            m1 = 192.168.2.20
            wan = 100.120.20.35
            wan2 = 100.200.15.32

            /->Wan1   
            m1 -> Proxy -|
                              ->Wan2
            is this correct?

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

              using a proxy would work to block certain sites (see squidguard).

              But as you noted: running all through the proxy would render the firewall rules useless to devide the traffic over the WANS (for http/https traffic atleast. other protocols would still work)

              1 Reply Last reply Reply Quote 0
              • D Offline
                denisx
                last edited by

                @heper:

                using a proxy would work to block certain sites (see squidguard).

                But as you noted: running all through the proxy would render the firewall rules useless to devide the traffic over the WANS (for http/https traffic atleast. other protocols would still work)

                Thanks.
                But i need the 2 groups for all protocols including http/https.
                Thanks again.

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