Quantcast
Viewing all articles
Browse latest Browse all 60861

Re: Load Balancing


dpurgert wrote:

A very basic setup would be like this, assuming eth0 and eth2 are the WAN connections.

 

+modify balance {
+    rule 1 {
+        action modify
+        modify {
+            lb-group LB
+        }
+    }
+}
[edit]
+load-balance {
+    group LB {
+        interface eth0 {
+            weight 50
+        }
+        interface eth2 {
+            weight 50
+        }
+        lb-local enable
+    }
+}

(note that weight 50 is optional, as if left undefined, it'll try to split the traffic 50/50 anyway)

 

Commands:

set firewall modify balance rule 1 modify lb-group LB
set load-balance group LB interface eth0 weight 50
set load-balance group LB interface eth2 weight 50

Finally, you have to attach it to eth1 (your LAN) with

set interfaces ethernet eth1 firewall modify balance

Hi ,

 

I'm having issues on the command to attach to my LAN (ETH2)

 

Image may be NSFW.
Clik here to view.
1.JPG


 

However i have set up the rest of the load balance commands, will it work?

 

Regards,

Nicholas 


Viewing all articles
Browse latest Browse all 60861

Trending Articles