81

iptables filter表案例-13372947-51CTO博客

 6 years ago
source link: http://blog.51cto.com/13382947/2066768
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
第1章iptablesfilter表小案例案列:只针对filter表,预设策略INPUT链DROP,其他两个链ACCEPT,然后针对192.168.133.0/24开通22端口,对所有网段开放80端口,对所有网段开放21端口。#!/bin/bashipt="/usr/sbin/iptables"//命令的绝对路径,防止因为环境变量的问题导致命令无法执行$ipt-F//清空规则$

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK