@websec007
2019-03-04T23:50:29.000000Z
字数 1216
阅读 1109
安全课程作业
++++++++++++++++++++++++
Alice.rules
++++++++++++++++++++++++
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
iptables -A INPUT -p udp --dport 4445 -j ACCEPT
iptables -A INPUT -j DROP
iptableS -A OUTPUT -p tcp --dport 20 -j ACCEPT
iptableS -A OUTPUT -p tcp --dport 21 -j ACCEPT
iptables -A OUTPUT -j DROP
+++++++++++++++++++++++++
Bob.rules
+++++++++++++++++++++++++
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 8080 -j ACCEPT
iptables -A INPUT -p udp --dport 4444 -j ACCEPT
iptableS -A OUTPUT -p tcp --dport 20 -j ACCEPT
iptableS -A OUTPUT -p tcp --dport 21 -j ACCEPT
iptables -A OUTPUT -j DROP
iptables -A INPUT -j DROP
++++++++++++++++++++++++++
Charlie.rules:
++++++++++++++++++++++++++
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A OUTPUT -j DROP
iptables -A INPUT -j DROP
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A OUTPUT -j DROP
iptables -A INPUT -j DROP