Package Filter1, 打开转发功能, 编辑/etc/sysctl.conf, 将net.inet.ip.forwarding=1前面的注释符号 # 去掉。2, 编辑/etc/rc.conf, 打开PF, pf=YES。3, 编辑/etc/pf.conf, 设置规则链。我的pf.conf规则链还没设置好, 这里就先贴我现在写的pf.conf, 私网中的机器已可以上网了。Gate-OpenBSD# cat pf.conf# $OpenBSD: pf.conf,v 1.28 2004/04/29 21:03:09 frantzen Exp $## See pf.conf(5) and /usr/share/pf for syntax and examples.# Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1# in /etc/sysctl.conf if packets are to be forwarded between interfaces.ext_if="ne3"int_if="dc0"tcp_services="{21, 22, 53, 67, 68, 80, 1...[ 查看全文 ]