Networking Forums

Networking Forums > Computer Networking > Linux Networking > OpenVpn Server and two subnets

Reply
Thread Tools Display Modes

OpenVpn Server and two subnets

 
 
paulo@clipinfor.com
Guest
Posts: n/a

 
      11-09-2006, 02:49 PM
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

OpenVpn1 works fine:
Tun0: 10.8.0.xx for my subnet 10.0.0.0/24

OpenVpn2 don't work:
Tun1: 10.9.0.xx for my subnet 10.0.2.0/8
from the client i can't PING the machines in the subnet, only the
server.

from the CentOs i can Ping the two subnets

Now the problem:
If i change the mask of my subnet 10.0.2.0 to class C, and the mask in
the machines to the same class the vpn works fine.

Please some advice, what is wrong in my configuration?

Thanks in advance
Paulo Oliveira

 
Reply With Quote
 
 
 
 
Tauno Voipio
Guest
Posts: n/a

 
      11-09-2006, 04:26 PM
(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
 
Reply With Quote
 
paulo@clipinfor.com
Guest
Posts: n/a

 
      11-09-2006, 04:56 PM

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.

Paulo

 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      11-09-2006, 05:10 PM
(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

 
Reply With Quote
 
paulo@clipinfor.com
Guest
Posts: n/a

 
      11-09-2006, 05:13 PM
Sorry, i make some mistakes

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

OpenVpn1 works fine:
Tun0: 10.8.0.xx for my subnet 10.0.0.0/24

OpenVpn2 don't work:
Tun1: 10.9.0.xx for my subnet 10.0.0.0/8

from the client i can't PING the machines in the subnet, only the
server.

from the CentOs i can Ping the two subnets

Now the problem:
If i change the mask of my subnet 10.0.0.0 to class C, and the mask in
the machines to the same class the vpn works fine.



Please some advice, what is wrong in my configuration?


Thanks in advance
Paulo Oliveira

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RRAS server separating two subnets - one subnet cannot reach the Internet and computers can't ping each other between subnets Spin Windows Networking 11 09-23-2008 11:06 PM
openvpn for windows server prakash.cpm@gmail.com Linux Networking 1 01-05-2008 01:07 PM
openvpn server bridge. music Linux Networking 19 02-16-2007 07:14 AM
OpenVPN working between client and server only, but not able to access any machines in server subnet GS Linux Networking 10 12-06-2006 10:48 AM
OpenVPN server to client paulo@clipinfor.com Linux Networking 1 11-14-2006 12:24 PM



1 2 3 4 5 6 7 8 9 10 11