ChinaUnix.net
相关文章推荐:

iptables 配置

首次配置iptables 不知道有问题不,贴出代码,希望大鸟们批评指正 #!/bin/bash #Program: # iptables #history #2009/12/19 laiwenhui iptables -F iptables -X iptables -Z iptables -P INPUT DROP iptables -P OUTPUT DROP iptables -P FORWARD DROP iptables -A INPUT -p tcp --dport 17213 -j ACCEPT iptables -A OUTPUT -p tcp --sport 17213 -j ACCEPT iptables -A OUTPUT -p tcp --sport 80 -j ACCEPT iptables ...

by laiwenhui - Linux系统管理 - 2009-12-24 09:37:25 阅读(1377) 回复(8)

相关讨论

iptables配置 2004-04-23 15:18 pm 作者:Rusty Russell 来自:无名 总览 用iptables -ADC 来指定链的规则,-A添加 -D删除 -C 修改 iptables - [RI] chain rule num rule-specification[option] 用iptables - RI 通过规则的顺序指定 iptables -D chain rule num[option] 删除指定规则 iptables -[LFZ] [chain][option] 用iptables -LFZ 链名 [选项] iptables -[NX] chain 用 -NX 指定链 iptables -P chain target[options] 指定链...

by yaozheng1103 - Linux文档专区 - 2009-09-07 16:11:23 阅读(700) 回复(0)

配置iptables以前,你必须保证本机DNS和路由已经配好,本机能够正常上网。反之请暂不要启动iptablesiptables配置 配置iptables的目的,一个是防止公网的入侵,一个是让内网的兄弟们上网。在没配之前,只有本机能上网。 Rh8.0的“系统设置”中有个“安全级别” ,它主要是针对本机来说的,不能用它来配置iptables。打开“安全级别”,把它配成“无防火墙”级别。 为了配置、测试方便,可以先用“KWrite”编个“脚本”...

by xuhuojun - Linux文档专区 - 2008-02-14 21:22:55 阅读(851) 回复(0)

iptables 中的指令,均需区分大小写。 ipchains 和 iptables 在语法上的主要的差异,注意如下∶ 1. 在 ipchains 中,诸如 input 链,是使用小写的 chains 名,在 iptables 中,要改用大写 INPUT。 2. 在 iptables 中,要指定规则是欲作用在那一个规则表上(使用 -t 来指定,如 -t nat),若不指定,则预设是作用在 filter 这个表。 3. 在 ipchains 中, -i 是指介面(interface),但在 iptables 中,-i 则是指进入的方向,且多了 -o...

by dtlchm - Linux文档专区 - 2007-09-25 15:28:11 阅读(686) 回复(0)

redhat8.0系统,装了两块网卡.一个公网IP 我不知道如何用iptables实现多台机器上网,并设置放火墙

by tangfan - 网络与硬件 - 2004-12-29 16:57:53 阅读(667) 回复(1)

redhat8.0系统,装了两块网卡.一个公网IP 我不知道如何用iptables实现多台机器上网,并设置放火墙

by tangfan - Linux系统管理 - 2004-12-29 16:57:53 阅读(911) 回复(1)

常用的iptables规则如下: 只能收发邮件,别的都关闭 iptables -I Filter -m mac --mac-source 00:0F:EA:25:51:37 -j DROP iptables -I Filter -m mac --mac-source 00:0F:EA:25:51:37 -p udp --dport 53 -j ACCEPT iptables -I Filter -m mac --mac-source 00:0F:EA:25:51:37 -p tcp --dport 25 -j ACCEPT iptables -I Filter -m mac --mac-source 00:0F:EA:25:51:37 -p tcp --dport 110 -j ACCEPT IPSEC NAT 策略 iptab...

by chengx2007 - Linux文档专区 - 2007-12-17 14:14:43 阅读(1067) 回复(0)

因为需要做mac过滤,移植了iptables,按照网上的资料配置了, iptables -L 正常 [code]iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination [/code] 但是 [code]/usr/sbi...

by 沉水之鱼 - 内核源码 - 2016-11-21 17:13:45 阅读(451) 回复(1)

各位吧友,你们好! 谁有写好的关于iptables配置的脚本,就是可以一步一步提示输入ip等等,还有清除现有iptables列表。 共享下,谢谢啦

by 草帽farmer - Shell - 2015-07-10 14:45:37 阅读(1490) 回复(3)

Chain INPUT (policy ACCEPT) target prot opt source destination DROP all -- 113.107.24.144 192.168.0.12 DROP all -- 183.14.11.236 192.168.0.12 DROP all -- 117.9.100.242 192.168.0.12 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 ACCEPT...

by 战魔312 - Linux系统管理 - 2014-10-27 21:10:37 阅读(1222) 回复(6)

想请教下 像如上配置和 把三个条目都设置成 DROP 再做 ACCEPT 有什么区别 还有 这是配置loopback的配置 为什么显示的 ACCEPT all anywhere anywhere iptables -A INPUT -i lo -p all -j ACCEPT (如果是INPUT DROP) iptables -A OUTPUT -o lo -p all -j ACCEPT(如果是OUTPUT DROP)

by water1913 - Linux系统管理 - 2013-03-19 09:35:15 阅读(2088) 回复(13)