All pastes #282450 Raw Edit

Mine

public text v1 · immutable
#282450 ·published 2006-12-17 16:24 UTC
rendered paste body
$ cat /etc/iptables.up.rules
# Generated by iptables-save v1.3.3 on Sat Dec 16 09:24:15 2006
*nat
:PREROUTING ACCEPT [158:8870]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
# Completed on Sat Dec 16 09:24:15 2006
# Generated by iptables-save v1.3.3 on Sat Dec 16 09:24:15 2006
*mangle
:PREROUTING ACCEPT [306:21697]
:INPUT ACCEPT [147:12775]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [132:168326]
:POSTROUTING ACCEPT [132:168326]
COMMIT
# Completed on Sat Dec 16 09:24:15 2006
# Generated by iptables-save v1.3.3 on Sat Dec 16 09:24:15 2006
*filter
:FORWARD ACCEPT [0:0]
:INPUT DROP [0:0]
:OUTPUT ACCEPT [0:0]
# Accept traffic from internal interfaces
-A INPUT ! -i eth0 -j ACCEPT
# Accept traffic with the ACK flag set
-A INPUT -p tcp -m tcp --tcp-flags ACK ACK -j ACCEPT
# Allow incoming data that is part of a connection we established
-A INPUT -m state --state ESTABLISHED -j ACCEPT
# Allow data that is related to existing connections
-A INPUT -m state --state RELATED -j ACCEPT
# Accept responses to DNS queries
-A INPUT -p udp -m udp --dport 1024:65535 --sport 53 -j ACCEPT
# Accept responses to our pings
-A INPUT -p icmp -m icmp --icmp-type echo-reply -j ACCEPT
# Accept notifications of unreachable hosts
-A INPUT -p icmp -m icmp --icmp-type destination-unreachable -j ACCEPT
# Accept notifications to reduce sending speed
-A INPUT -p icmp -m icmp --icmp-type source-quench -j ACCEPT
# Accept notifications of lost packets
-A INPUT -p icmp -m icmp --icmp-type time-exceeded -j ACCEPT
# Accept notifications of protocol problems
-A INPUT -p icmp -m icmp --icmp-type parameter-problem -j ACCEPT
# Respond to pings
-A INPUT -p icmp -m icmp --icmp-type echo-request -j ACCEPT
# Allow connections to our SSH server
-A INPUT -p tcp -m tcp --dport ssh -j ACCEPT
# Allow connections to our SMTP server
-A INPUT -p tcp -m tcp --sport smtp -j ACCEPT
# Allow connections to our IDENT server
-A INPUT -p tcp -m tcp --dport auth -j ACCEPT
# Allow connections to our Apache server
-A INPUT -p tcp -m tcp --dport www -j ACCEPT
# Allow connections to our POP server
-A INPUT -p tcp -m tcp --sport pop3 -j ACCEPT
# Accept http protocol over TLS/SSL
-A INPUT -p tcp -m tcp --sport https -j ACCEPT
# Allow connections to our webmin server
-A INPUT -p tcp -m tcp --sport 10000 -j ACCEPT
COMMIT
# Completed on Sat Dec 16 09:24:15 2006