iptables-过滤61开头的ip数据包

iptables -F
root@android:/system/bin # iptables -L -n
iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination Chain FORWARD (policy ACCEPT)
target prot opt source destination Chain OUTPUT (policy ACCEPT)
target prot opt source destination
root@android:/system/bin # iptables -A INPUT -p tcp --sport 80 -s 61.0.0.0/8 -j
DROP
-sport -s 61.0.0.0/ -j DROP <
protoent* getprotobyname(char const*)() is not implemented on Android
root@android:/system/bin # iptables -L -n
iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP tcp -- 61.0.0.0/ 0.0.0.0/ tcp spt: Chain FORWARD (policy ACCEPT)
target prot opt source destination Chain OUTPUT (policy ACCEPT)
target prot opt source destination
root@android:/system/bin # iptables -A OUTPUT -p tcp --dport 80 -s 61.0.0.0/8 -j
DROP
--dport -s 61.0.0.0/ -j DROP <
protoent* getprotobyname(char const*)() is not implemented on Android
root@android:/system/bin # iptables -L -n
iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP tcp -- 61.0.0.0/ 0.0.0.0/ tcp spt: Chain FORWARD (policy ACCEPT)
target prot opt source destination Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DROP tcp -- 61.0.0.0/ 0.0.0.0/ tcp dpt:
root@android:/system/bin #
上一篇:Easy UI treegrid 分页实例


下一篇:怎样在Ubuntu 14.04中安装Java(转)