Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Stuff
Sunday, December 30th, 2007 at 7:41:11am UTC 

  1. #!/bin/sh
  2.  
  3. #
  4. # Set the default policy
  5. #
  6. iptables -P INPUT ACCEPT
  7. iptables -P FORWARD ACCEPT
  8. iptables -P OUTPUT ACCEPT
  9.  
  10. #
  11. # Set the default policy for the NAT table
  12. #
  13. iptables -t nat -P PREROUTING ACCEPT
  14. iptables -t nat -P POSTROUTING ACCEPT
  15. iptables -t nat -P OUTPUT ACCEPT
  16.  
  17. #
  18. # Delete all rules
  19. #
  20. iptables -F
  21. iptables -t nat -F
  22.  
  23. #
  24. # Delete all chains
  25. #
  26.  
  27. iptables -X
  28. iptables -t nat -X
  29.  
  30. # End message
  31. echo " [End of flush]"

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right