Guest User

tf_EXT-DMZ.mod

a guest
Jan 16th, 2012
65
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # ----------------------------------------------------------------------------
  2. # TuxFrw 2.61
  3. # Copyright (C) 2001-2005 Marcelo Gondim (http://tuxfrw.sourceforge.net)
  4. # ----------------------------------------------------------------------------
  5. #
  6. # tf_EXT-DMZ.mod - TuxFrw EXT->DMZ rules module
  7. #
  8. # ----------------------------------------------------------------------------
  9. #
  10. # This file is part of TuxFrw
  11. #
  12. # TuxFrw is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 2 of the License, or
  15. # (at your option) any later version.
  16. #
  17. # This program is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. # GNU General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU General Public License
  23. # along with this program; if not, write to the Free Software
  24. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  25. #
  26. # ----------------------------------------------------------------------------
  27. #
  28. # EXT->DMZ directional chain
  29. #
  30. # Drop windows or worm packets :)
  31. $IPTABLES -A EXT2DMZ -p udp -m multiport --dports 135,445 -j DROP
  32. $IPTABLES -A EXT2DMZ -p udp -m udp --dport 137:139 -j DROP
  33. $IPTABLES -A EXT2DMZ -p udp -m udp --sport 137 --dport 1024:65535 -j DROP
  34. $IPTABLES -A EXT2DMZ -p tcp -m multiport --dports 135,139,445 -j DROP
  35. $IPTABLES -A EXT2DMZ -p udp -m udp --dport 1900 -j DROP
  36.  
  37. $IPTABLES -A EXT2DMZ -p tcp -d $IP_WWW1 -m multiport --dports 80,443 -j $TARGET
  38. $IPTABLES -A EXT2DMZ -p tcp -d $IP_SMTP -m multiport --dports 25,110 -j $TARGET
  39. $IPTABLES -A EXT2DMZ -p udp -d $IP_DNS1 --dport 53 -j $TARGET
  40. $IPTABLES -A EXT2DMZ -p tcp -d $IP_DNS1 --dport 53 -j $TARGET
  41. $IPTABLES -A EXT2DMZ -p udp -d $IP_DNS2 --dport 53 -j $TARGET
  42. $IPTABLES -A EXT2DMZ -p tcp -d $IP_DNS2 --dport 53 -j $TARGET
  43.  
  44. # log and reject all the unmatched packets
  45. $IPTABLES -A EXT2DMZ -m limit --limit 1/m --limit-burst 5 -j LOG --log-prefix "tuxfrw: EXT->DMZ! "
RAW Paste Data