All pastes #271305 Raw Edit

Untitled

public text v1 · immutable
·published 2006-12-08 03:59 UTC
rendered paste body
# Generated by iptables-save v1.2.11 on Tue May 10 08:06:58 2005 
*filter 
:INPUT ACCEPT [5:952] 
:FORWARD ACCEPT [0:0] 
:OUTPUT ACCEPT [1192099:595387635] 



# 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 21 -j ACCEPT 
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -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 

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

:COMMIT