[MASOCH-L] Roteamento entre 2 redes atrás de OpenVPN

Egberto Monteiro egbertomonteiro at gmail.com
Wed Sep 1 17:12:50 BRT 2010


  ###########
Estação 8.52
$ ping 192.168.9.3
PING 192.168.9.3 (192.168.9.3) 56(84) bytes of data.
64 bytes from 192.168.9.3: icmp_seq=1 ttl=62 time=0.980 ms
64 bytes from 192.168.9.3: icmp_seq=2 ttl=62 time=0.955 ms
^C
--- 192.168.9.3 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 0.955/0.967/0.980/0.033 ms



###########
Estação 9.3
ifconfig
eth0      Link encap:Ethernet  HWaddr 00:25:b3:82:db:73
           inet addr:192.168.9.3  Bcast:192.168.9.255  Mask:255.255.255.0
           inet6 addr: fe80::225:b3ff:fe82:db73/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:511691148 errors:0 dropped:0 overruns:0 frame:0
           TX packets:836425861 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:3007858413 (2.8 GiB)  TX bytes:3977942821 (3.7 GiB)
           Interrupt:17

lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           inet6 addr: ::1/128 Scope:Host
           UP LOOPBACK RUNNING  MTU:16436  Metric:1
           RX packets:8750341 errors:0 dropped:0 overruns:0 frame:0
           TX packets:8750341 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:1508240343 (1.4 GiB)  TX bytes:1508240343 (1.4 GiB)

route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
192.168.9.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.9.1     0.0.0.0         UG    0      0        0 eth0

ping 192.168.8.52
PING 192.168.8.52 (192.168.8.52) 56(84) bytes of data.
64 bytes from 192.168.8.52: icmp_seq=1 ttl=62 time=1.02 ms
64 bytes from 192.168.8.52: icmp_seq=2 ttl=62 time=0.856 ms
^C
--- 192.168.8.52 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 0.856/0.938/1.021/0.088 ms



Respondido?


Att,
Egberto Monteiro


Em 09/01/2010 05:05 PM, Marcio Merlone escreveu:
>  Em 01-09-2010 16:49, Egberto Monteiro escreveu:
>>  Acho que vc só comeu bola invertendo as redes.
> Hã?
>
>> Da uma olhada neste exemplo em produção que tenho aqui:
>> (...)
>> As minhas redes são 192.168.8.0/24 de um lado e 192.168.9.0/24 em 
>> outro local, o tunnel VPN é 10.0.0.0 e a rede publica 
>> xxx.xxx.xxx.0/25 e xxx.xxx.xxx.128/25
>
> E desta forma uma máquina 192.168.8.x consegue pingar outra 192.168.9.x?
>



More information about the masoch-l mailing list