pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

pastebin private pastebin - collaborative debugging tool What's a private pastebin?

Posted by frymaster on Sun 11th Dec 19:08 (modification of post by frymaster view diff)
diff | download | new post

  1. #Set default policy to allow all incoming and outgoing, and deny forwarding
  2. $IPTABLES -P INPUT ACCEPT
  3. $IPTABLES -P FORWARD DROP
  4. $IPTABLES -P OUTPUT ACCEPT
  5. $IPTABLES -t raw -P OUTPUT ACCEPT
  6. $IPTABLES -t raw -P PREROUTING ACCEPT
  7. $IPTABLES -t nat -P OUTPUT ACCEPT
  8. $IPTABLES -t nat -P PREROUTING ACCEPT
  9. $IPTABLES -t nat -P POSTROUTING ACCEPT
  10.  
  11. #Remove rules from all chains, and remove user-defined chains, in default and nat tables
  12. #If any other tables are used they should be added here
  13. $IPTABLES --flush
  14. $IPTABLES -t nat --flush
  15. $IPTABLES -t raw --flush
  16. $IPTABLES -X
  17. $IPTABLES -t nat -X
  18. $IPTABLES -t raw -X

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Use syntax highlighting

To highlight particular lines, prefix each line with @@


Remember my settings