No subject

bycn82 bycn82 at gmail.com
Wed Feb 11 18:50:50 PST 2015


*Hi,*


*In PF, the 'route-to' and 'rdr-to' support 'round-robin' and 'sticky'. so
PF can be used as a load balancer nicely.*

*In IPFW, 'forward' and 'nat' can do the traffic redirection, but it only
accept 1 destination. in order to do the load-balancing, some rules are
needed before the 'forward/nat' which can split the traffic.*


*e.g.*

*100   tag 1 prob 50%*

*200   skipto 1000 when tagged 1*

*300   tag 2*

*1000  forward to IP1 when tagged 1*


*1100  forward to IP2 when tagged 2*


*It can work as a "random" load-balancer (prob is randon), but cannot
acheve the "round-robin" and "sticky". *


*so I was thinking about how to introduce the feature, and below 2 can
acheve that, but not confident about which looks nicer.*

*1. fwd and nat support multiple destinations,*


*e.g.*

*fwd ip1:port1[,ip2:port2,ip3:port3] *


*fwd ip1:port1[,ip2:port2,ip3:port3] round-robin*


*fwd ip1:port1[,ip2:port2,ip3:port3] round-robin*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20150212/1197a7ef/attachment-0002.htm>


More information about the Users mailing list