maicoabreu
(usa Debian)
Enviado em 26/03/2012 - 17:55h
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
REDIRECT tcp -- anywhere anywhere tcp dpt:www redir ports 3128
DNAT tcp -- anywhere anywhere tcp dpt:at-nbp to:10.10.1.5:22
ACCEPT tcp -- anywhere 200.201.166.0/24
ACCEPT tcp -- anywhere 200.201.173.0/24
ACCEPT tcp -- anywhere 200.201.174.0/24
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- anywhere anywhere
MASQUERADE all -- 10.10.1.0/24 200.201.166.0/24
MASQUERADE all -- 10.10.1.0/24 200.201.173.0/24
MASQUERADE all -- 10.10.1.0/24 200.201.174.0/24
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
#####################################
# iptables -t mangle -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
###################################
# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state NEW,RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp echo-reply
ACCEPT icmp -- anywhere anywhere icmp echo-request
ACCEPT tcp -- anywhere anywhere tcp dpt:3128
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:https state NEW,RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:322
ACCEPT tcp -- anywhere anywhere tcp dpt:http-alt
ACCEPT tcp -- anywhere anywhere tcp dpt:pop3 state NEW,RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp state NEW,RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:submission state NEW,RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:submission
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT tcp -- anywhere anywhere tcp dpt:pop3
ACCEPT udp -- anywhere anywhere udp dpt:submission
ACCEPT udp -- anywhere anywhere udp dpt:25
ACCEPT udp -- anywhere anywhere udp dpt:pop3
ACCEPT tcp -- 10.10.1.0/24 anywhere multiport dports ssmtp,pop3s,https
ACCEPT tcp -- anywhere anywhere tcp dpt:at-nbp state NEW,RELATED,ESTABLISHED
ACCEPT all -- anywhere 200.201.174.207
ACCEPT all -- 200.201.174.207 anywhere
ACCEPT all -- 200.201.174.204 anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:5017 state NEW,RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:8017 state NEW,RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:3389
ACCEPT tcp -- anywhere anywhere tcp spt:3389
ACCEPT tcp -- anywhere anywhere tcp dpt:4201
ACCEPT tcp -- anywhere anywhere tcp spt:4201
ACCEPT tcp -- anywhere anywhere tcp dpt:4202
ACCEPT tcp -- anywhere anywhere tcp spt:4202
ACCEPT tcp -- anywhere anywhere tcp dpt:4203
ACCEPT tcp -- anywhere anywhere tcp spt:4203
ACCEPT tcp -- anywhere anywhere tcp dpt:4204
ACCEPT tcp -- anywhere anywhere tcp spt:4204
ACCEPT tcp -- anywhere anywhere tcp dpt:4205
ACCEPT tcp -- anywhere anywhere tcp spt:4205
ACCEPT tcp -- anywhere anywhere tcp dpt:4206
ACCEPT tcp -- anywhere anywhere tcp spt:4206
ACCEPT tcp -- anywhere anywhere tcp dpt:4207
ACCEPT tcp -- anywhere anywhere tcp spt:4207
ACCEPT tcp -- anywhere anywhere tcp dpt:4208
ACCEPT tcp -- anywhere anywhere tcp spt:4208
ACCEPT tcp -- anywhere anywhere tcp dpt:4209
ACCEPT tcp -- anywhere anywhere tcp spt:4209
ACCEPT tcp -- anywhere anywhere tcp dpt:4210
ACCEPT tcp -- anywhere anywhere tcp spt:4210
ACCEPT tcp -- anywhere anywhere tcp dpt:4211
ACCEPT tcp -- anywhere anywhere tcp spt:4211
ACCEPT tcp -- anywhere anywhere tcp dpt:4212
ACCEPT tcp -- anywhere anywhere tcp spt:4212
ACCEPT tcp -- anywhere anywhere tcp dpt:4213
ACCEPT tcp -- anywhere anywhere tcp spt:4213
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state NEW,RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:https state NEW,RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:322
ACCEPT tcp -- anywhere anywhere tcp dpt:pop3 state NEW,RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp state NEW,RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:submission state NEW,RELATED,ESTABLISHED
ACCEPT tcp -- 10.10.1.0/24 anywhere tcp dpts:ssmtp:1995
ACCEPT tcp -- anywhere anywhere tcp dpt:submission
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT tcp -- anywhere anywhere tcp dpt:pop3
ACCEPT tcp -- anywhere anywhere tcp dpt:at-nbp state NEW,RELATED,ESTABLISHED
ACCEPT tcp -- 10.10.1.0/24 200.201.174.207 tcp dpt:www
ACCEPT tcp -- 10.10.1.0/24 200.201.174.204 tcp dpt:www
ACCEPT tcp -- 10.10.1.0/24 200.201.174.204 tcp dpt:2631
ACCEPT tcp -- anywhere anywhere tcp dpt:2631
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere 200.201.166.0/24
ACCEPT tcp -- anywhere 200.201.173.0/24
ACCEPT tcp -- anywhere 200.201.174.0/24
ACCEPT tcp -- 10.10.1.0/24 anywhere tcp dpt:5017
ACCEPT tcp -- 10.10.1.0/24 anywhere tcp dpt:8017
ACCEPT tcp -- anywhere anywhere tcp spt:3389
ACCEPT tcp -- anywhere anywhere tcp dpt:3389
ACCEPT tcp -- anywhere anywhere tcp spt:4201
ACCEPT tcp -- anywhere anywhere tcp dpt:4201
ACCEPT tcp -- anywhere anywhere tcp spt:4202
ACCEPT tcp -- anywhere anywhere tcp dpt:4202
ACCEPT tcp -- anywhere anywhere tcp spt:4203
ACCEPT tcp -- anywhere anywhere tcp dpt:4203
ACCEPT tcp -- anywhere anywhere tcp spt:4204
ACCEPT tcp -- anywhere anywhere tcp dpt:4204
ACCEPT tcp -- anywhere anywhere tcp spt:4205
ACCEPT tcp -- anywhere anywhere tcp dpt:4205
ACCEPT tcp -- anywhere anywhere tcp spt:4206
ACCEPT tcp -- anywhere anywhere tcp dpt:4206
ACCEPT tcp -- anywhere anywhere tcp spt:4207
ACCEPT tcp -- anywhere anywhere tcp dpt:4207
ACCEPT tcp -- anywhere anywhere tcp spt:4208
ACCEPT tcp -- anywhere anywhere tcp dpt:4208
ACCEPT tcp -- anywhere anywhere tcp spt:4209
ACCEPT tcp -- anywhere anywhere tcp dpt:4209
ACCEPT tcp -- anywhere anywhere tcp spt:4210
ACCEPT tcp -- anywhere anywhere tcp dpt:4210
ACCEPT tcp -- anywhere anywhere tcp spt:4211
ACCEPT tcp -- anywhere anywhere tcp dpt:4211
ACCEPT tcp -- anywhere anywhere tcp spt:4212
ACCEPT tcp -- anywhere anywhere tcp dpt:4212
ACCEPT tcp -- anywhere anywhere tcp spt:4213
ACCEPT tcp -- anywhere anywhere tcp dpt:4213
Chain OUTPUT (policy ACCEPT)
target prot opt source destination