標籤:
iptables -F[email protected]:/system/bin # iptables -L -niptables -L -nChain INPUT (policy ACCEPT)target prot opt source destinationChain FORWARD (policy ACCEPT)target prot opt source destinationChain OUTPUT (policy ACCEPT)target prot opt source destination[email protected]:/system/bin # iptables -A INPUT -p tcp --sport 80 -s 61.0.0.0/8 -jDROP-sport 80 -s 61.0.0.0/8 -j DROP <protoent* getprotobyname(char const*)(3) is not implemented on Android[email protected]:/system/bin # iptables -L -niptables -L -nChain INPUT (policy ACCEPT)target prot opt source destinationDROP tcp -- 61.0.0.0/8 0.0.0.0/0 tcp spt:80Chain FORWARD (policy ACCEPT)target prot opt source destinationChain OUTPUT (policy ACCEPT)target prot opt source destination[email protected]:/system/bin # iptables -A OUTPUT -p tcp --dport 80 -s 61.0.0.0/8 -j DROP--dport 80 -s 61.0.0.0/8 -j DROP <protoent* getprotobyname(char const*)(3) is not implemented on Android[email protected]:/system/bin # iptables -L -niptables -L -nChain INPUT (policy ACCEPT)target prot opt source destinationDROP tcp -- 61.0.0.0/8 0.0.0.0/0 tcp spt:80Chain FORWARD (policy ACCEPT)target prot opt source destinationChain OUTPUT (policy ACCEPT)target prot opt source destinationDROP tcp -- 61.0.0.0/8 0.0.0.0/0 tcp dpt:80[email protected]:/system/bin #
iptables-過濾61開頭的ip資料包