$IPTABLES -A allowed -p TCP –syn -j ACCEPT
$IPTABLES -A allowed -p TCP -m state –state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A allowed -p TCP -j DROP
#
# TCP rules
#
$IPTABLES -A tcp_packets -p TCP -s 0/0 –dport 21 -j allowed
$IPTABLES -A tcp_packets -p TCP -s 0/0 –dport 22 -j allowed
$IPTABLES -A tcp_packets -p TCP -s 0/0 –dport 80 -j allowed
$IPTABLES -A tcp_packets -p TCP -s 0/0 –dport 113 -j allowed
#
# UDP ports
#
$IPTABLES -A udp_packets -p UDP -s 0/0 –source-port 53 -j ACCEPT
if [ $DHCP == «yes» ] ; then
$IPTABLES -A udp_packets -p UDP -s $DHCP_SERVER –sport 67 \
–dport 68 -j ACCEPT
fi
#$IPTABLES -A udp_packets -p UDP -s 0/0 –source-port 53 -j ACCEPT
#$IPTABLES -A udp_packets -p UDP -s 0/0 –source-port 123 -j ACCEPT
$IPTABLES -A udp_packets -p UDP -s 0/0 –source-port 2074 -j ACCEPT
$IPTABLES -A udp_packets -p UDP -s 0/0 –source-port 4000 -j ACCEPT
#
# In Microsoft Networks you will be swamped by broadcasts. These lines
# will prevent them from showing up in the logs.
#
#$IPTABLES -A udp_packets -p UDP -i $INET_IFACE \
#–destination-port 135:139 -j DROP
#
# If we get DHCP requests from the Outside of our network, our logs will