Networking Forums

Networking Forums > Computer Networking > Linux Networking > OpenVpn multi-server

Reply
Thread Tools Display Modes

OpenVpn multi-server

 
 
Mauro D.
Guest
Posts: n/a

 
      05-13-2009, 08:52 AM
Hi all, i have this problem to solve

1 to 20 remote appliance with openvpn installed (configuration is not
modifyable apart primary and backup server name)

two Debian machines behind two different ADSL router are the servers
reached from remote appliance

remote appliance talks via socket with a service resident in a windows
machine in the same network of the two Debian servers

remote appliance cannot resolve DNS... so only ip available.

My problem is: how the windows machine can know where to send packets to
remote appliance (by server 1 or server 2?)

How must be configured Debian servers and windows networks to gain this
functionality?

Here you can see a schema of what i have (don't take care about the
third linux box..)



http://it.tinypic.com/r/2uhpis2/5


Thanks
Mauro
 
Reply With Quote
 
 
 
 
David Brown
Guest
Posts: n/a

 
      05-13-2009, 10:29 AM
Mauro D. wrote:
> Hi all, i have this problem to solve
>
> 1 to 20 remote appliance with openvpn installed (configuration is not
> modifyable apart primary and backup server name)
>
> two Debian machines behind two different ADSL router are the servers
> reached from remote appliance
>
> remote appliance talks via socket with a service resident in a windows
> machine in the same network of the two Debian servers
>
> remote appliance cannot resolve DNS... so only ip available.
>
> My problem is: how the windows machine can know where to send packets to
> remote appliance (by server 1 or server 2?)
>
> How must be configured Debian servers and windows networks to gain this
> functionality?
>
> Here you can see a schema of what i have (don't take care about the
> third linux box..)
>
>
>
> http://it.tinypic.com/r/2uhpis2/5
>


Just make sure that the two openvpn servers have different networks for
their vpn tunnels, and that your Windows machine knows how to route
packets to those addresses. For example, suppose Linux 1 uses 10.1.x.x
for its openvpn network, and Linux 2 uses 10.2.x.x. Then if a client
connects via Linux 2, it gets an address such as 10.2.0.5 with a tunnel
endpoint on Linux 2 of 10.2.0.6. The windows machine sees the incoming
packets from source 10.2.0.5, and sends replies to Linux 2, which passes
them out to the client.

 
Reply With Quote
 
Mauro D.
Guest
Posts: n/a

 
      05-13-2009, 10:48 AM
David Brown wrote:
> Just make sure that the two openvpn servers have different networks for
> their vpn tunnels, and that your Windows machine knows how to route
> packets to those addresses. For example, suppose Linux 1 uses 10.1.x.x
> for its openvpn network, and Linux 2 uses 10.2.x.x. Then if a client
> connects via Linux 2, it gets an address such as 10.2.0.5 with a tunnel
> endpoint on Linux 2 of 10.2.0.6. The windows machine sees the incoming
> packets from source 10.2.0.5, and sends replies to Linux 2, which passes
> them out to the client.
>


This require a radical change into the service source code because in
the "standard" the service knows the IP assigned to remote device
because he need to contact device directly... I'll check if I can change
this behavior.

Thanks
Mauro
 
Reply With Quote
 
David Brown
Guest
Posts: n/a

 
      05-13-2009, 01:30 PM
Mauro D. wrote:
> David Brown wrote:
>> Just make sure that the two openvpn servers have different networks
>> for their vpn tunnels, and that your Windows machine knows how to
>> route packets to those addresses. For example, suppose Linux 1 uses
>> 10.1.x.x for its openvpn network, and Linux 2 uses 10.2.x.x. Then if
>> a client connects via Linux 2, it gets an address such as 10.2.0.5
>> with a tunnel endpoint on Linux 2 of 10.2.0.6. The windows machine
>> sees the incoming packets from source 10.2.0.5, and sends replies to
>> Linux 2, which passes them out to the client.
>>

>
> This require a radical change into the service source code because in
> the "standard" the service knows the IP assigned to remote device
> because he need to contact device directly... I'll check if I can change
> this behavior.
>
> Thanks
> Mauro


This is not a "radical change" - it's standard configuration for the
openvpn servers. You just have to make sure that on one of the server's
configuration you have a line such as "server 10.1.0.0 255.255.0.0", and
on the other you have "server 10.2.0.0 255.255.0.0".

Or do you mean that the windows machine has to know the addresses of the
clients and initiate a connection with them? If that is the case, then
you have a bit more of a challenge.

 
Reply With Quote
 
Mauro D.
Guest
Posts: n/a

 
      05-13-2009, 02:33 PM
David Brown ha scritto:
> This is not a "radical change" - it's standard configuration for the
> openvpn servers. You just have to make sure that on one of the server's
> configuration you have a line such as "server 10.1.0.0 255.255.0.0", and
> on the other you have "server 10.2.0.0 255.255.0.0".
>
> Or do you mean that the windows machine has to know the addresses of the
> clients and initiate a connection with them? If that is the case, then
> you have a bit more of a challenge.
>


The last sentence is the right one ... damn

So I have to rewrite my service code...

Mauro
 
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
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
OpenVpn Server and two subnets paulo@clipinfor.com Linux Networking 4 11-09-2006 05:13 PM



1 2 3 4 5 6 7 8 9 10 11