ルーターへのアクセスを全てカットする
-
- 適当
#!/bin/sh myhost=`cat /etc/sysconfig/network-scripts/ifcfg-eth0 | grep IPADDR | awk -F = {'print $2'}` router='192.168.1.1' echo $myhost # clear iptables -F iptables -X # set iptables -A OUTPUT -p all -s $myhost -d $router -j DROP iptables -L