r> 建立防火墙代理配置: # vi /etc/pf.conf =========================pf.conf======================= ext_if = "tun0" int_if = "{ dc0, rl0 }" int_net = "{ 192.168.0.0/24, 192.168.10.0/24 }" loop = "lo0" tcp_services = "{ www, ftp }" boss_ip = "{ 192.168.10.10, 192.168.10.11, 192.168.10.12, 192.168.10.13, 192.168.10.14, 192.168.10.15 }" noroute = "{ 127.0.0.1/8, 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8, 255.255.255.255/32 }" web_server = "{ 192.168.10.5, 192.168.100.16 }" set block-policy return set loginterface $ext_if set optimization aggressive scrub in all altq on $int_if cbq bandwidth 1200Kb queue { dflt, boss } queue dflt bandwidth 300Kb cbq(default) queue boss bandwidth 900Kb cbq(borrow)<页码:[1] [2] [3] [4] [5] [6] [7] [8] 第2页、共8页 |