Guest User

tf_DMZ-EXT.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_DMZ-EXT.mod - TuxFrw DMZ->EXT 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. # DMZ->EXT directional chain
  29. #
  30. # Drop windows or worm packets :)
  31. $IPTABLES -A DMZ2EXT -p udp -m multiport --dports 135,445 -j DROP
  32. $IPTABLES -A DMZ2EXT -p udp -m udp --dport 137:139 -j DROP
  33. $IPTABLES -A DMZ2EXT -p udp -m udp --sport 137 --dport 1024:65535 -j DROP
  34. $IPTABLES -A DMZ2EXT -p tcp -m multiport --dports 135,139,445 -j DROP
  35. $IPTABLES -A DMZ2EXT -p udp -m udp --dport 1900 -j DROP
  36.  
  37. $IPTABLES -A DMZ2EXT -p udp -s $IP_DNS1 --dport 53 -j $TARGET
  38. $IPTABLES -A DMZ2EXT -p tcp -s $IP_DNS1 --dport 53 -j $TARGET
  39. $IPTABLES -A DMZ2EXT -p udp -s $IP_DNS2 --dport 53 -j $TARGET
  40. $IPTABLES -A DMZ2EXT -p tcp -s $IP_DNS2 --dport 53 -j $TARGET
  41. $IPTABLES -A DMZ2EXT -p tcp -s $IP_SMTP --dport 25 -j $TARGET
  42.  
  43. # log and reject all the unmatched packets
  44. $IPTABLES -A DMZ2EXT -j LOG --log-prefix "tuxfrw: DMZ->EXT! "
RAW Paste Data