当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > Package Filter (1)

Unix/Linux
libtcl8.3下载|无法找到libtcl8.3
libmysqlclient.so.10无法找到
Linux+Apache+PHP+MySQL+Zend Optimizer+PHPMyAdmin
glibc安装错误|glibc安装出错
Zlib是什么?|Zlib的作用是什么?|Zlib有什么作用?
什么是glibc?glibc是什么?什么是freetype?freetype是什么?什么是?Xlib是什么?什么是lo
ERROR 1045 (28000): Access denied for user root@localhost (using password: NO)
mysqld是什么意思?如何卸载mysqld?
linux 卸载 mysql
rpm 命令|rpm 安装|rpm 卸载|rpm 使用|rpm 删除
linux下tar命令rpm命令参数列表
linux rpm卸载参数
ERROR 1045: Access denied for user: root@localhost (Using password: NO)
您的服务器不支持mysql数据库
服务器不支持mysql数据库
mysql 如何添加/创建用户
/usr/bin/install: 无法创建一般文件‘/usr/local/man/man1/cjpeg.1’: 没有那个文件
png.h:329:18: zlib.h: 没有那个文件或目录
您的服务器不支持MySql数据库,无法安装论坛程序
phpMyAdmin

Unix/Linux 中的 Package Filter (1)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 33 ::
收藏到网摘: n/a

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, 113, 443}"udp_services="{22, 53, 68}"icmp_types="echoreq"lan_net="192.168.1.0/24"scrub in allnat on $ext_if from !($ext_if) to any -> ($ext_if:0)block log allpass quick on lo0 allantispoof for { lo $int_if $ext_if } inetpass in on $ext_if inet proto tcp from any to $ext_if port ssh flags S/SA keep statepass in on $int_if inet proto tcp from $lan_net to $int_if port ssh flags S/SA keep statepass in on $int_if from $lan_net to anypass out on $int_if from any to $lan_netpass out on $ext_if proto tcp from any to any port $tcp_services keep statepass out on $ext_if proto udp from any to any port $udp_services keep statepass in on $int_if proto tcp from any to any port $tcp_services keep statepass in on $int_if proto udp from any to any port $udp_services keep statepass in inet proto icmp all icmp-type $icmp_types keep statepass out inet proto icmp all icmp-type $icmp_types keep state