上課筆記
  • 20190227
  • 20190227
  • 20190306
  • 20190306
  • 20190313
  • 20190320
  • 20190327
  • 20190327
  • 20190327
  • 20190417
  • 20190424
  • 20190501
  • 20190508
  • 20190515
  • 20190529
  • 20190605
  • 20190917
  • 20190917
  • 20190924
  • 20191001
  • 20191001
  • 20191008
  • 20191008
  • 20191015
  • 20191015
  • 20191022
  • 20191022
  • 20191029
  • 20191029
  • 20191105
  • 20191105
  • 20191119
  • 20191119
  • 20191203
  • 20191203
  • 20191210
  • 20191217
  • 20191217
  • 20191224
  • 20191224
Powered by GitBook
On this page

Was this helpful?

20190529

iptables

Previous20190515Next20190605

Last updated 5 years ago

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