User Tools

Site Tools


network:packet_filter:load_balance

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
network:packet_filter:load_balance [2014/03/05 09:44]
tschulz
network:packet_filter:load_balance [2014/03/05 09:44]
tschulz [Route traffic based on destination]
Line 34: Line 34:
 ====== Route traffic based on destination ====== ====== Route traffic based on destination ======
   * packet filter matches on the last rule that matches, so start with a generic rule and get more specific as you write the config file.    * packet filter matches on the last rule that matches, so start with a generic rule and get more specific as you write the config file. 
-<​file>​+<​file ​pf>
 pass in on $int_if route-to { ($ext_if1 $ext_gw1),​($ext_if1 $ext_gw1),​($ext_if2 $ext_gw2) } round-robin proto tcp from <​dynamic_ips>​ to <​ext_nets>​ port {80} flags S/SA modulate state pass in on $int_if route-to { ($ext_if1 $ext_gw1),​($ext_if1 $ext_gw1),​($ext_if2 $ext_gw2) } round-robin proto tcp from <​dynamic_ips>​ to <​ext_nets>​ port {80} flags S/SA modulate state
 pass in on $int_if route-to { ($ext_if1 $ext_gw1),​($ext_if1 $ext_gw1),​($ext_if2 $ext_gw2) } round-robin proto {udp,icmp} from <​dynamic_ips>​ to <​ext_nets>​ keep state pass in on $int_if route-to { ($ext_if1 $ext_gw1),​($ext_if1 $ext_gw1),​($ext_if2 $ext_gw2) } round-robin proto {udp,icmp} from <​dynamic_ips>​ to <​ext_nets>​ keep state
network/packet_filter/load_balance.txt · Last modified: 2014/03/05 09:44 by tschulz