[关闭]
@websec007 2019-03-04T23:50:29.000000Z 字数 1216 阅读 1088

第2次作业

安全课程作业


Network Security and Attacks

第3部分 Firewalls

题目答案

++++++++++++++++++++++++
Alice.rules
++++++++++++++++++++++++

  1. iptables -A INPUT -i lo -j ACCEPT
  2. iptables -A OUTPUT -o lo -j ACCEPT
  3. iptables -A INPUT -p tcp --dport 22 -j ACCEPT
  4. iptables -A INPUT -p tcp --dport 80 -j ACCEPT
  5. iptables -A INPUT -p tcp --dport 443 -j ACCEPT
  6. iptables -A INPUT -p tcp --dport 21 -j ACCEPT
  7. iptables -A INPUT -p tcp --dport 21 -j ACCEPT
  8. iptables -A INPUT -p udp --dport 4445 -j ACCEPT
  9. iptables -A INPUT -j DROP
  10. iptableS -A OUTPUT -p tcp --dport 20 -j ACCEPT
  11. iptableS -A OUTPUT -p tcp --dport 21 -j ACCEPT
  12. iptables -A OUTPUT -j DROP

+++++++++++++++++++++++++
Bob.rules
+++++++++++++++++++++++++

  1. iptables -A INPUT -i lo -j ACCEPT
  2. iptables -A OUTPUT -o lo -j ACCEPT
  3. iptables -A INPUT -p tcp --dport 22 -j ACCEPT
  4. iptables -A INPUT -p tcp --dport 8080 -j ACCEPT
  5. iptables -A INPUT -p udp --dport 4444 -j ACCEPT
  6. iptableS -A OUTPUT -p tcp --dport 20 -j ACCEPT
  7. iptableS -A OUTPUT -p tcp --dport 21 -j ACCEPT
  8. iptables -A OUTPUT -j DROP
  9. iptables -A INPUT -j DROP

++++++++++++++++++++++++++
Charlie.rules:
++++++++++++++++++++++++++

  1. iptables -A INPUT -i lo -j ACCEPT
  2. iptables -A OUTPUT -o lo -j ACCEPT
  3. iptables -A INPUT -p tcp --dport 22 -j ACCEPT
  4. iptables -A OUTPUT -j DROP
  5. iptables -A INPUT -j DROP

题目收获

  1. iptables -A INPUT -i lo -j ACCEPT
  2. iptables -A OUTPUT -o lo -j ACCEPT
  3. iptables -A INPUT -p tcp --dport 22 -j ACCEPT
  4. iptables -A OUTPUT -j DROP
  5. iptables -A INPUT -j DROP
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注