20190529
iptables
iptables重點:





[server]




[client]

[server]


[client]


Last updated
Was this helpful?
iptables
iptables重點:





[server]




[client]

[server]


[client]


Last updated
Was this helpful?
Was this helpful?
# 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# yum install nmap
# nmap -sS -p 0-1000 192.168.56.101# iptables -D INPUT -p tcp --dport 80 -j ACCEPT
# iptables -I INPUT -p tcp --dport 80 -j ACCEPT# nmap -sS -p 0-1000 192.168.56.101