From Kromonos, 3 Years ago, written in Plain Text.
Embed
  1. iptables -P INPUT ACCEPT
  2. iptables -F
  3. iptables -A INPUT -i lo -j ACCEPT
  4. iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
  5. iptables -A INPUT -p tcp --dport 22 -j ACCEPT
  6. iptables -P INPUT DROP
  7. iptables -P FORWARD DROP
  8. iptables -P OUTPUT ACCEPT
  9. iptables -L -v
  10. iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 208.67.222.222
  11. iptables -t nat -A OUTPUT -p tcp --dport 53 -j DNAT --to-destination 208.67.222.222
  12. iptables -L -v -t nat