All pastes #517974 Raw Edit

Something

public text v1 · immutable
#517974 ·published 2007-05-29 05:24 UTC
rendered paste body
# Generated by iptables-save v1.3.5 on Tue May 29 05:19:49 2007
*filter
:INPUT ACCEPT [895:169098]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [172:20098]

# accept all from localhost
-A INPUT -s 127.0.0.1 -j ACCEPT

# accept all previously established connections
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

# ssh
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT

# ftp / webserver related
-A INPUT -p tcp -m state --state NEW -m tcp --dport 20 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT

# Windows / Samba
#-A INPUT -p tcp -m state --state NEW -m tcp --dport 137:139 -j ACCEPT
#-A INPUT -p tcp -m state --state NEW -m tcp --dport 426 -j ACCEPT
#-A INPUT -p tcp -m state --state NEW -m tcp --dport 445 -j ACCEPT

# up to 5 Bit-torrent connections
-A INPUT -p tcp -m state --state NEW -m tcp --dport 6881:6886 -j ACCEPT

#Teamspeak
-A INPUT -p tcp -m state --state NEW -m tcp --dport 51234 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 14534 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 8767 -j ACCEPT

#Bind
-A INPUT -p tcp -m state --state NEW -m tcp --dport 53 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 53 -j ACCEPT

-A INPUT -p tcp -m state --state NEW -m tcp --dport 67 -j ACCEPT

# reject everything else
-A INPUT -j REJECT --reject-with icmp-port-unreachable



COMMIT
# Completed on Tue May 29 05:19:49 2007