Linux Command - Add a firewall

iptables -L # view existing firewall rules chain
iptables -F # emptied existing firewall rules chain
iptables -D INPUT 1 # To delete rule INPUT chain in the first rule

 

chestnut

iptables -I INPUT -p tcp --dport 8897 -s 10.187.161.14 -j DROP
ip c端 port p端

The port number 8897 of the application intercepts all requests from the IP address 14

Guess you like

Origin www.cnblogs.com/suger43894/p/12156344.html
Recommended