Wednesday, November 04, 2009

openbsd -mpath (route base load balancing)

tutorial openbsd -mpath (route base load balancing, my fave method to loadbalance)

pf.conf
ext_if1=fxp0
ext_if1=fxp1
int_if=rl0
nat on $ext_if1 to any -> $ext_if
nat on $ext_if2 to any -> $ext_if

/etc/sysctl.conf
sysctl net.inet.ip.multipath=1

/etc/hostname.fxp0
inet 10.20.30.2 255.255.255.252 none
!route add -mpath default 10.20.30.1

/etc/hostname.fxp1
inet 10.20.30.6 255.255.255.252 none
!route add -mpath default 10.20.30.5

/etc/mygate
#kosong ae, tapi kalo mau di isi ya gak papa, terserah





No comments: