这个您加 了没
# nat/rdr
#nat on $ext_if from $stu_if:network to any -> ($ext_if)
nat on $ext_if f ...
myuebbs 发表于 2011-03-14 16:01
This would lead to a most basic form of these lines similar to this:
match out on tl0 from 192.168.1.0/24 to any nat-to 24.5.0.5
pass on tl0 from 192.168.1.0/24 to any
or you may simply use
pass out on tl0 from 192.168.1.0/24 to any nat-to 24.5.0.5
This rule says to perform NAT on the tl0 interface for any packets coming from 192.168.1.0/24 and to replace the source IP address with 24.5.0.5.
match out on $ext_if from !($ext_if) to any nat-to ($ext_if)
pass out on $ext_if all
试试
freebsdpf 发表于 2011-03-14 16:59
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |