Package Filter (1)

2016-01-29 18:09 4 1 收藏

Package Filter (1),Package Filter (1)

【 tulaoshi.com - Linux 】

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

来源:https://www.tulaoshi.com/n/20160129/1504617.html

延伸阅读
标签: ASP
  /*******部分代码*******/ /*******idArr()和codeArr()为两个数组,其中,idArr()为filter数据过滤条件,codeArr()作为更新数据**********/ .......   dim CRs,sql,FStr   sql=""      conn.begintrans   set CRs=server.CreateObject("adodb.recordset") &nbs...
标签: PS PS教程
在学习中遇到问题可以到 论坛 发贴交流! 相关教程链接: Photoshop CS3 照片滤镜视频教程 照片滤镜/Photo Filter命令详解  (本文) 照片滤镜/Photo Filter名词详解 photoshop调色教程:流行皮肤色照片滤镜调色法 实例剖析说说照片滤镜的运用   这是一个跟摄影有关的重要图像调整命令。 有关这一命令的...
Delphi 8 for .NET Assemblies; Packages and Libraries In this article, Bob Swart will explain what .NET Assemblies are, how we can use them in Delphi 8 for .NET applications, and especially how we can make them ourselves (it actually turns out that there is more than one way, and even some special way to us...
标签: Web开发
find()会在div元素内 寻找 class为classname的元素。 filter()则是筛选div的class为classname的元素。 基本是find子元素找,filter是平级找 ·find 函数是在当前对象集合的子元素中进行查询; ·filter 函数是对当前对象集合进行过滤, 利用过滤条件缩小范围; ·find 函数的参数是 jQuery 选择器表达式; ·filter 的参数也是选择器表达式,...

经验教程

398

收藏

30
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部