Advertisement
Guest User

/etc/shorewall/rules

a guest
Aug 31st, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. #
  2. # Shorewall version 4.0 - Sample Rules File for two-interface configuration.
  3. # Copyright (C) 2006,2007 by the Shorewall Team
  4. #
  5. # This library is free software; you can redistribute it and/or
  6. # modify it under the terms of the GNU Lesser General Public
  7. # License as published by the Free Software Foundation; either
  8. # version 2.1 of the License, or (at your option) any later version.
  9. #
  10. # See the file README.txt for further details.
  11. #------------------------------------------------------------------------------
  12. # For information about entries in this file, type "man shorewall-rules"
  13. ##############################################################################################################################################################################################
  14. #ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE USER/ MARK CONNLIMIT TIME HEADERS SWITCH HELPER
  15. # PORT PORT(S) DEST LIMIT GROUP
  16. #SECTION ALL
  17. #SECTION ESTABLISHED
  18. #SECTION RELATED
  19. SECTION NEW
  20.  
  21. # Don't allow connection pickup from the net
  22. Invalid(DROP) net all tcp
  23.  
  24. # Accept DNS connections from the firewall to the network
  25. DNS(ACCEPT) $FW net
  26. DNS(ACCEPT) loc $FW
  27.  
  28. # Permite conectarse al servidor por ssh desde la LAN y desde WAN
  29. SSH(ACCEPT) loc $FW
  30. SSH(ACCEPT) net $FW
  31. # Aceptar ssh desde el exterior y desde la lan
  32. SSH(ACCEPT) $FW net
  33. SSH(ACCEPT) $FW loc
  34.  
  35. # Allow Ping from the local network
  36. Ping(ACCEPT) loc $FW
  37.  
  38. # Drop Ping from the "bad" net zone.. and prevent your log from being flooded..
  39. Ping(DROP) net $FW
  40. ACCEPT $FW loc icmp
  41. ACCEPT $FW net icmp
  42.  
  43. # SQUID
  44. ACCEPT $FW net tcp www
  45. ACCEPT loc $FW tcp www
  46. REDIRECT loc 3128 tcp www - !192.168.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement