G2A Many GEOs
SHARE
TWEET

Untitled

a guest Feb 14th, 2013 418 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. # Reinitialise les regles
  4. iptables -t filter -F
  5. iptables -t filter -X
  6.  
  7. # Bloque tout le trafic
  8. iptables -t filter -P INPUT DROP
  9. iptables -t filter -P FORWARD DROP
  10. iptables -t filter -P OUTPUT DROP
  11.  
  12. # Autorise les connexions deja etabli et localhost
  13. iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
  14. iptables -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
  15. iptables -t filter -A INPUT -i lo -j ACCEPT
  16. iptables -t filter -A OUTPUT -o lo -j ACCEPT
  17.  
  18. # DNS In/Out
  19. iptables -t filter -A OUTPUT -p tcp --dport 53 -j ACCEPT
  20. iptables -t filter -A OUTPUT -p udp --dport 53 -j ACCEPT
  21. iptables -t filter -A INPUT -p tcp --dport 53 -j ACCEPT
  22. iptables -t filter -A INPUT -p udp --dport 53 -j ACCEPT
  23.  
  24. # SSH
  25. iptables -t filter -A INPUT -p tcp --dport 995 -j ACCEPT
  26. iptables -t filter -A OUTPUT -p tcp --dport 995 -j ACCEPT
  27.  
  28. # HTTP/HTTPS
  29. iptables -t filter -A OUTPUT -p tcp --dport 80 -j ACCEPT
  30. iptables -t filter -A INPUT -p tcp --dport 80 -j ACCEPT
  31. iptables -t filter -A OUTPUT -p tcp --dport 443 -j ACCEPT
  32. iptables -t filter -A INPUT -p tcp --dport 443 -j ACCEPT
  33.  
  34. # ICMP
  35. iptables -t filter -A OUTPUT -p icmp -j ACCEPT
  36. iptables -t filter -A INPUT -p icmp -j ACCEPT
  37.  
  38. # TOR
  39. #iptables -t filter -A OUTPUT -p tcp --dport 9001 -j ACCEPT
  40. #iptables -t filter -A INPUT -p tcp --dport 9001 -j ACCEPT
  41. #iptables -t filter -A OUTPUT -p tcp --dport 9030 -j ACCEPT
  42. #iptables -t filter -A INPUT -p tcp --dport 9030 -j ACCEPT
  43. #iptables -t filter -A OUTPUT -p tcp --dport 9050 -j ACCEPT
  44. #iptables -t filter -A INPUT -p tcp --dport 9050 -j ACCEPT
  45.  
  46. # IRC
  47. #iptables -t filter -A OUTPUT -p tcp --dport 6667 -j ACCEPT
  48. #iptables -t filter -A OUTPUT -p udp --dport 6667 -j ACCEPT
  49. #iptables -t filter -A INPUT -p tcp --dport 6667 -j ACCEPT
  50. #iptables -t filter -A INPUT -p udp --dport 6667 -j ACCEPT
  51.  
  52. # Murmur
  53. #iptables -t filter -A OUTPUT -p tcp --dport 64837 -j ACCEPT
  54. #iptables -t filter -A INPUT -p tcp --dport 64837 -j ACCEPT
  55. #iptables -t filter -A OUTPUT -p udp --dport 64837 -j ACCEPT
  56. #iptables -t filter -A INPUT -p udp --dport 64837 -j ACCEPT
  57.  
  58. # Minecraft Server
  59. #iptables -t filter -A OUTPUT -p tcp --dport 2281 -j ACCEPT
  60. #iptables -t filter -A OUTPUT -p udp --dport 2281 -j ACCEPT
  61. #iptables -t filter -A INPUT -p tcp --dport 2281 -j ACCEPT
  62. #iptables -t filter -A INPUT -p udp --dport 2281 -j ACCEPT
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top