trgtecno
(usa Debian)
Enviado em 24/07/2012 - 12:55h
Olá, vamos lá:
Rotas da Matriz
Tabela de Roteamento IP do Kernel
Destino Roteador MáscaraGen. Opções Métrica Ref Uso Iface
10.1.1.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
172.25.2.0 10.1.1.2 255.255.255.0 UG 0 0 0 tun0
189.33.176.0 0.0.0.0 255.255.248.0 U 0 0 0 eth1
172.25.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 189.33.176.1 0.0.0.0 UG 0 0 0 eth1
Rotas da Filial
Tabela de Roteamento IP do Kernel
Destino Roteador MáscaraGen. Opções Métrica Ref Uso Iface
10.1.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
172.25.1.0 10.1.1.1 255.255.255.0 UG 0 0 0 tun0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
172.25.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 eth1
Tabela Firewall da matriz
aubert-sp:~# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
net_dnat 0 -- anywhere anywhere policy match dir in pol none
loc_dnat 0 -- anywhere anywhere policy match dir in pol none
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
eth1_masq 0 -- anywhere anywhere
MASQUERADE 0 -- 10.1.1.2 anywhere
MASQUERADE 0 -- 10.0.0.0/24 anywhere
MASQUERADE 0 -- 10.1.1.2 anywhere
MASQUERADE 0 -- 10.1.1.2 anywhere
MASQUERADE 0 -- 10.1.1.1 anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain eth1_masq (1 references)
target prot opt source destination
MASQUERADE 0 -- 172.25.0.0/16 anywhere policy match dir out pol none
Chain excl_1 (1 references)
target prot opt source destination
RETURN 0 -- anywhere 200.201.174.207
RETURN 0 -- anywhere 172.25.1.175
RETURN 0 -- anywhere 200.201.0.0/24
REDIRECT tcp -- anywhere anywhere redir ports 3128
Chain loc_dnat (1 references)
target prot opt source destination
excl_1 tcp -- anywhere anywhere tcp dpt:www
Tabela Firewall Filial
root@aubert-abc:~# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
dnat all -- anywhere anywhere
Chain INPUT (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
eth1_masq all -- anywhere anywhere
MASQUERADE all -- 10.1.1.1 anywhere
Chain dnat (1 references)
target prot opt source destination
net_dnat all -- anywhere anywhere
Chain eth1_masq (1 references)
target prot opt source destination
MASQUERADE all -- 172.25.0.0/16 anywhere
Acho que era isso..
Obrigado