sneeps.ninja
(usa Debian)
Enviado em 31/05/2013 - 10:59h
amarildosertorio escreveu:
Posta ai...
# route
# iptables -nvL
# iptables -nvL -t nat
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 * 255.255.255.0 U 0 0 0 eth2
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
189.58.100.0 * 255.255.255.0 U 0 0 0 eth1
default 10.0.0.1 0.0.0.0 UG 0 0 0 eth2
iptables -nvL
Chain INPUT (policy ACCEPT 33 packets, 10824 bytes)
pkts bytes target prot opt in out source destination
18 4320 ACCEPT all -- * * 189.58.100.0/24 0.0.0.0/0
1946 124K ACCEPT all -- * * 0.0.0.0/0 189.58.100.0/24
2819 259K ACCEPT all -- * * 192.168.1.0/24 0.0.0.0/0
0 0 ACCEPT all -- * * 0.0.0.0/0 192.168.1.0/24
0 0 ACCEPT all -- * * 10.0.0.0/24 0.0.0.0/0
4 449 ACCEPT all -- * * 0.0.0.0/0 10.0.0.0/24
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:22
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:3306
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:8443
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
0 0 ACCEPT tcp -- * * 127.0.0.0/24 0.0.0.0/0 tcp flags:0x17/0x02
0 0 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp flags:0x17/0x02
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- * * 192.168.1.0/24 189.58.100.0/24
0 0 ACCEPT all -- * * 189.58.100.0/24 192.168.1.0/24
11 584 ACCEPT tcp -- * * 0.0.0.0/0 192.168.1.139 tcp dpt:3389
0 0 ACCEPT tcp -- * * 192.168.1.139 0.0.0.0/0 tcp spt:3389
Chain OUTPUT (policy ACCEPT 1889 packets, 139K bytes)
pkts bytes target prot opt in out source destination
iptables -nvL -t nat
Chain PREROUTING (policy ACCEPT 281 packets, 44564 bytes)
pkts bytes target prot opt in out source destination
4 212 DNAT tcp -- * * 0.0.0.0/0 189.58.100.148 tcp dpt:3389 to:192.168.1.139:3389
Chain POSTROUTING (policy ACCEPT 8 packets, 480 bytes)
pkts bytes target prot opt in out source destination
0 0 MASQUERADE all -- * eth2 192.168.1.0/24 0.0.0.0/0
0 0 MASQUERADE all -- * eth1 192.168.1.0/24 0.0.0.0/0
0 0 MASQUERADE all -- * eth1 0.0.0.0/0 0.0.0.0/0
0 0 MASQUERADE tcp -- * eth1 192.168.1.139 0.0.0.0/0 tcp spt:3389
Chain OUTPUT (policy ACCEPT 4 packets, 268 bytes)
pkts bytes target prot opt in out source destination