View Single Post
  #7   (View Single Post)  
Old 17th September 2008
hamba hamba is offline
Fdisk Soldier
Join Date: Apr 2008
Posts: 71


I'm running pf here in the office that is doing load balancing for our 2 adsl lines.

I would suggest you first try a very basic setup to get it working and then start adding your route-to and reply-to rules.
The most basic will be as J65nko pointed out with the link to the pf page.

Once you have that working then you can start routing your traffic to where you want them to go.
Here are a few examples for incoming traffic
rdr on $ext_if1 proto tcp from any to $ext_if1 port 80 -> $webserver
pass in log quick on $ext_if1 reply-to ($ext_if1 $ext_gw1) proto tcp from any to { $webserver } port = 80
and if you want your outgoing traffic to use a specific line
pass in quick on $int_if  route-to { ( $ext_if1 $ext_gw1 ) } proto tcp from $lan_net to any port = 22
Hope this helps you a bit.
Reply With Quote