20190529
iptables
Last updated
Was this helpful?
iptables
Last updated
Was this helpful?
Was this helpful?
iptables重點:
[server]
# iptables -F
# iptables -L
# iptalbes -I INPUT -p tcp --dport 80 -j ACCEPT
# iptalbes -I INPUT -p tcp --dport 22 -j ACCEPT
# iptalbes -I INPUT -p tcp --dport 10:21 -j ACCEPT
# iptables -L
# iptalbes -I INPUT -p icmp -j ACCEPT
# iptables -A INPUT -j REJECT
[client]
# yum install nmap
# nmap -sS -p 0-1000 192.168.56.101
[server]
# iptables -D INPUT -p tcp --dport 80 -j ACCEPT
# iptables -I INPUT -p tcp --dport 80 -j ACCEPT
[client]
# nmap -sS -p 0-1000 192.168.56.101