iptables-save

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Generated by iptables-save v1.4.1.1 on Wed Jul 22 16:28:01 2009
*mangle
:PREROUTING ACCEPT [1126219:263241997]
:INPUT ACCEPT [1126219:263241997]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1087376:358810385]
:POSTROUTING ACCEPT [1087376:358810385]
COMMIT
# Completed on Wed Jul 22 16:28:01 2009
# Generated by iptables-save v1.4.1.1 on Wed Jul 22 16:28:01 2009
*filter
:INPUT DROP [839:52985]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [74989:37223575]
:blocksshd - [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -p udp -m udp --sport 53 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j blocksshd
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 873 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 6522 -j ACCEPT
COMMIT
# Completed on Wed Jul 22 16:28:01 2009