---restore content starts---
Iptables-f Clear All Rules
Iptables-l Show All Rules
Iptables–p setting default Rules
Iptables-a input-j drop inputs and input data are not prompted
Iptables-a input-j REJECT inputs and input data are dropped to prompt for corresponding values or to terminate packet access
Iptables-a input-s localhost-j drop from (localhost) data is dropped (-s specifies the source "hostname/domain name")
Iptables-a input-p TCP--dport 80-j accept data from the TCP protocol 80 destination port all data is released or accepts all data from the TCP protocol 80 destination port
Iptables-a input-i network-j drop from the network all the data that came in from the network
Iptables-a output-p TCP--sport 80-j DROP data from TCP protocol 80 source port all disabled
Iptables-a opuput-o network-j DROP All data from the network is banned
Iptables-i input-s localhost DROP inserts a rule that prohibits localhost
Service iptables Save rules persist
Iptables-save >/etc/sysconfig/iptables Save rules
iptables-d INPUT Delete 1th rule
Iptables-l-N--line-number (-n Display network Listener) (--line-number display line number)
--dport Destination port (service port for localhost)
(Accept all data) (drop suppresses all data and does not prompt) (reject suppresses all data with a hint message)
(-I enters the number of network cards) (-o data card) (--sport Source port) (--dport Target Port)
---restore content ends---
Linux comes with firewall iptables basic use