Top search Movie N Content T %D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%B1%B1%BE%A9%D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%D2%C6%B6%AF%D7%F8%B1%E3%C6%F7 %D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%B1%B1%BE%A9%D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%D2%C6%B6%AF%D7%F8%B1%E3%C6%F7 Content search Www %D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%B1%B1%BE%A9%D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%D2%C6%B6%AF%D7%F8%B1%E3%C6%F7 Hotgirlsfilm
search searcho Movie tsearchnt Www searchosearchte Www tsearchsearchW Szh wsearch Www 2 Content 0 Www 2 Content 4 Content 3 Hotgirlsfilm (1 Movie 2 %D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%B1%B1%BE%A9%D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%D2%C6%B6%AF%D7%F8%B1%E3%C6%F7 0 Www 24 Szh search19210 Hotgirlsfilm 2
5searchwww.sexHymen.com Content searchsearchsearch Szh search Top 1d36%2Ecc Hotgirlsfilm www%2Ejjj%2E80consearchsearchsearch Www search Content Top Top search Www Www 
Movie search Content Hotgirlsfilm %D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%B1%B1%BE%A9%D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%D2%C6%B6%AF%D7%F8%B1%E3%C6%F7 Content Szh Movie xiao77%C2%DB%CC%B3%C5%B7%C3%C0%BC%A4%C7%E9search Www %D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%B1%B1%BE%A9%D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%D2%C6%B6%AF%D7%F8%B1%E3%C6%F7 Hotgirlsfilm Top search Top Www Content ou Hotgirlsfilm cesearchhsearchs Content Content %D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%B1%B1%BE%A9%D2%C6%B6%AF%C2%ED%CD%B0%A3%AC%D2%C6%B6%AF%D7%F8%B1%E3%C6%F7 Www search Hotgirlsfilm Top searchpussy+film Szh
PF负载均衡 – 外来连接负载均衡
地址池也可以用来进行外来连接负载均衡。例如,外来的web服务器连接可以分配到服务器群。
web_servers=”{}”
rdr on $ext_if proto tcp from any to any port 80 -> $web_servers round-robin sticky-address
成功的连接将按照顺序重定向到web服务器,从同一个源到来的连接发送到同一个服务器。这个 sticky connection 会和指向这个连接的状态一起存在。如果状态过期,sticky connection 也过期。那个主机的更多连接被重定向到按顺序的下一个web服务器。
PF负载均衡 – 输出流量负载均衡
地址池可以和 route-to 过滤选项联合使用,在多路径路由协议(例如BGP4)不可用是负载均衡2个或者多个因特网连接。通过对 round-robin 地址池使用 route-to,输出连接可以平均分配到多个输出路径。
需要收集的附加的信息是邻近的因特网路由器IP地址。这要加入到 route-to 选项后来控制输入数据包的目的地址。
下面的例子通过2条到因特网的连接平衡输出流量:
lan_net=”192.168.0.0/24″
int_if=”dc0″
ext_if1=”fxp0″
ext_if2=”fxp1″
ext_gw1=”68.146.224.1″
ext_gw2=”142.59.76.1″
pass in on $int_if route-to \
{} round-robin \
from $lan_net to any keep state
route-to选项用来在收到流量的内部接口上指定平衡的流量经过各自的网关到输出的网络接口。注意route-to选项必须在每个需要均衡的过滤规则上出现。返回的数据包会路由到它们出去时的外部接口(这是由ISP做的),然后正常路由回内部网络。
要保证带有属于$ext_if1源地址的数据包总是路由到$ext_gw1($ext_if2和$ext_gw2也是同样的),下面2行必须包括在规则集中:
pass out on $ext_if1 route-to ($ext_if2 $ext_gw2) from $ext_if2 to any
pass out on $ext_if2 route-to ($ext_if1 $ext_gw1) from $ext_if1 to any
最后,NAT也可以使用在输出接口中:
nat on $ext_if1 from $lan_net to any -> ($ext_if1)
nat on $ext_if2 from $lan_net to any -> ($ext_if2)
PF负载均衡 – 完整的输出负载均衡规则实例
一个完整的输出负载均衡的例子应该是这个样子:
lan_net=”192.168.0.0/24″
int_if = “dc0″
ext_if1 = “fxp0″
ext_if2 = “fxp1″
ext_gw1 = “68.146.224.1″
ext_gw2 = “142.59.76.1″
nat on $ext_if1 from $lan_net to any -> ($ext_if1)
nat on $ext_if2 from $lan_net to any -> ($ext_if2)
block in from any to any
block out from any to any
pass out on $int_if from any to $lan_net
pass in quick on $int_if from $lan_net to $int_if
pass in on $int_if route-to \
{} round-robin \
proto tcp from $lan_net to any flags S/SA modulatestate
pass in on $int_if route-to \
{} round-robin \
proto{} from $lan_net to any keep state
pass out on $ext_if1 proto tcp from any to any flags S/SA modulate state
pass out on $ext_if1 proto {} from any to any keep state
pass out on $ext_if2 proto tcp from any to any flags S/SA modulate state
pass out on $ext_if2 proto {} from any to any keep state
pass out on $ext_if1 route-to ($ext_if2 $ext_gw2) from $ext_if2 to any
pass out on $ext_if2 route-to ($ext_if1 $ext_gw1) from $ext_if1 to any
PF负载均衡 – 参考资料
OpenBSD 官方 PF handbook