hailong001 发表于 2006-11-4 16:30:35

高手看下我这个pf规则有什么问题

#macros
lan = "em0"
wan = "em1"

#options
set loginterface em0
set loginterface em1
set optimization normal
set limit states 100000
set block-policy drop

#scrub
#scrub in all fragment reassemble

#queue

#NAT
rdr on $wan proto tcp from any to 61.145.231.28 port 80 -> 192.168.4.5
nat on $wan from $lan:network to any -> $wan

pass in on $wan proto tcp from any to 192.168.4.5 port 80


为什么外网还是不能访问192.168.4.5上的web服务哪?

hailong001 发表于 2006-11-10 20:14:47

没有搞pf吗?
页: [1]
查看完整版本: 高手看下我这个pf规则有什么问题