[root@localhost ~]# more network_filter.sh
#!/bin/bash
IPT='/sbin/iptables'
$IPT -I INPUT 1 -s 192.168.1.3 -j DROP
$IPT -I OUTPUT 1 -s 192.168.1.3 -j DROP
$IPT -I FORWARD 1 -s 192.168.1.3 -j DROP
$IPT -I FORWARD 1 -d 192.168.1.3 -j DROP
[root@localhost ~]#
阅读(1270) | 评论(0) | 转发(0) |