Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ----------------------------------------------------------------------------
- # TuxFrw 2.61
- # Copyright (C) 2001-2005 Marcelo Gondim (http://tuxfrw.sourceforge.net)
- # ----------------------------------------------------------------------------
- #
- # tf_DMZ-EXT.mod - TuxFrw DMZ->EXT rules module
- #
- # ----------------------------------------------------------------------------
- #
- # This file is part of TuxFrw
- #
- # TuxFrw is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 2 of the License, or
- # (at your option) any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program; if not, write to the Free Software
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- #
- # ----------------------------------------------------------------------------
- #
- # DMZ->EXT directional chain
- #
- # Drop windows or worm packets :)
- $IPTABLES -A DMZ2EXT -p udp -m multiport --dports 135,445 -j DROP
- $IPTABLES -A DMZ2EXT -p udp -m udp --dport 137:139 -j DROP
- $IPTABLES -A DMZ2EXT -p udp -m udp --sport 137 --dport 1024:65535 -j DROP
- $IPTABLES -A DMZ2EXT -p tcp -m multiport --dports 135,139,445 -j DROP
- $IPTABLES -A DMZ2EXT -p udp -m udp --dport 1900 -j DROP
- $IPTABLES -A DMZ2EXT -p udp -s $IP_DNS1 --dport 53 -j $TARGET
- $IPTABLES -A DMZ2EXT -p tcp -s $IP_DNS1 --dport 53 -j $TARGET
- $IPTABLES -A DMZ2EXT -p udp -s $IP_DNS2 --dport 53 -j $TARGET
- $IPTABLES -A DMZ2EXT -p tcp -s $IP_DNS2 --dport 53 -j $TARGET
- $IPTABLES -A DMZ2EXT -p tcp -s $IP_SMTP --dport 25 -j $TARGET
- # log and reject all the unmatched packets
- $IPTABLES -A DMZ2EXT -j LOG --log-prefix "tuxfrw: DMZ->EXT! "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement