亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 5231 | 回復: 2
打印 上一主題 下一主題

[FreeBSD] Freebsd PF 做策略路由 [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2007-11-04 22:18 |只看該作者 |倒序瀏覽
# /etc/pf.conf
# write by loulancn@163.com
set limit states 1000000
set limit frags 100000
set limit src-nodes 100000
set timeout tcp.established 3600
set timeout {tcp.closing 5,tcp.finwait 5,tcp.closed 5,udp.multiple 5,udp.single 5}

table <Lan_A> {192.168.0.0/16}
table <Lan_B> {172.16.0.0/12}
table <Lan_All> {192.168.0.0/16,172.16.0.0/12}

ip_pool_A="1.1.1.1/32"
ip_pool_B="2.2.2.2/32"

Lan_if="em1"
Lan_IP="3.3.3.3"

gw_A_if="xl0"
gw_A="1.1.1.1"

gw_B_if="em0"
gw_B="2.2.2.2"

nat on $gw_A_if from <Lan_All> to any -> $IP_Pool_A source-hash
nat on $gw_B_if from <Lan_All> to any -> $IP_Pool_B source-hash

pass quick on lo0 all

block in quick proto udp from <Lan_All> port 15000 to any

pass in quick on $Lan_if proto { tcp,udp,icmp } from <Lan_All> to $Lan_IP keep state
pass in quick on $Lan_if route-to ($gw_A_if $gw_A) proto { tcp,udp,icmp } from <Lan_A> to any keep state
pass in quick on $Lan_if route-to ($gw_B_if $gw_B) proto { tcp,udp,icmp } from <Lan_B> to any keep state

pass out quick on $gw_B_if keep state
pass out quick on $gw_A_if keep state

pass in quick on $Lan_if proto tcp from <Lan_All> to $ Lan_IP port 22 keep state

block all




http://loulan.lapp.cn/show-131-1.html

論壇徽章:
0
2 [報告]
發(fā)表于 2007-11-04 22:20 |只看該作者
以前在網(wǎng)上看到的一個是在服務器上做雙線的策略路由的

這個主要是針對雙線用戶通過策略路由NAT上網(wǎng)用的。

關于雙線負載均衡,可以參見我的Blog

http://loulan.lapp.cn/show-119-1.html

論壇徽章:
0
3 [報告]
發(fā)表于 2007-11-05 07:49 |只看該作者
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP