分类: LINUX
2007-04-21 05:12:24
iptables –N test (新建一个test表) iptables –A test DROP iptables –A test –p tcp –dport 80 –j ACCEPT(允许80端口被访问) iptables –A INPUT –j test iptables –A OUTPUT –j test iptables –A FORWARD –j test(这3条的意思指让INPUT OUTPUT FORWARD都按照test的设置)