CentOSを使用しています。
IPTable テスト環境で次のことを行いました。を使用して、すべてのルールをフラッシュしました
iptables -F
次に、次のルールを追加しました。
iptables -I INPUT -p all -j ACCEPT
次に、観察に基づいて、このルールを追加しました。
iptables -A INPUT -s 192.168.2.50 -j DROP
私は実行しました
service iptable save
その後、ブロックされた IP (192.168.2.50) に ping を実行しようとしました。私はまだそれをpingでき、ブロックされたIPは私にpingできます。
ブロックされた IP からの着信接続をブロックしたい。
これはiptables -Lの私の出力です
Chain INPUT (policy DROP) target prot opt source destination
ACCEPT all -- anywhere anywhere
DROP all -- 192.168.2.50 anywhere
Chain FORWARD (policy DROP) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination
Chain icmp_packets (0 references) target prot opt source destination
Chain tcp_packets (0 references) target prot opt source destination
助けてください..ありがとう..