(E-Mail Removed) wrote:
> Tauno Voipio escreveu:
>
>>(E-Mail Removed) wrote:
>>
>>>Hi all,
>>>
>>>I have a CentOs machine with a OpenVpn server and with tree network
>>>cards.
>>>
>>>eth0: 192.168.0.254
>>>mask:255.255.255.0
>>>
>>>eth1: 10.0.0.1
>>>mask:255.255.255.0
>>>
>>>eth2: 10.0.2.100
>>>mask:255.0.0.0
>>
>>Is this mask correct?
>>Which addresses do you want to travel via this interface?
>>
>>--
>>
>>Tauno Voipio
>>tauno voipio (at) iki fi
>
> Yes, the mask is correct.
> I want to travel to hosts 10.0.2.1 and 10.0.2.2
> from CentOs i can Ping this hosts, but from OpenVpn Client.. no.
Are you sure?
This mask tells that all targets from 10.0.0.0 to 10.255.255.255
should be routed to eth2, unless some tighter rule dictates otherwise.
For 10.0.2.100, 10.0.2.1 and 10.0.2.2 the correct mask would be
255.255.255.128
--
Tauno Voipio
tauno voipio (at) iki fi