iptables 拦载url 和 过滤端口 及 iptables 使用
1.iptabels 保存规则文件
iptabels-save > /etc/iptabels.up.rules //路径
2.-A 添加规则
3.DROP 过滤
4.ACCEPT 通过
4.iptables -A OUTPUT -p tcp -m tcp --dport 80 -j DROP //过滤80 端口
5.iptables -A OUTPUT -p tcp -m string --string "www.baidu.com" --algo kmp --dport 80 -j DROP
posted on 2013-11-14 17:22 Technology 阅读(2206) 评论(0) 编辑 收藏 举报