Skip to contentSkip to conversation

how to implement the multi client in openvpn?

Openvpn-devel oyk 3 participants 4 messages Jun 7, 2004 – Jun 8, 2004

lore
Share & tools
lore

oyk

author
#0 lore raw

Hi,guys
I want to know how the openvpn control the multi-client case in 2.0 version.
for example:

  clientA---Internet---|             |----Internal Server1
                       |----Server---|----Internal Server2
  clientB---Internet---|             |----Internal Server3

Based on my comprehension, clientA (10.1.0.2) and clientB (10.1.0.3) can make a tunnel with Server (10.1.0.1) respectively using TCP connection. clientA sockA----------Server SockA1
clientB sockB----------Server SockB1
When Server recieves the package from clientA or clientB, it pushs the packages to the tun/tap device. And the Server box could route the package to the internal server. And the internal server response the package to Server.

My question is: when OpenVPN Server recieves one package from one internal server, how does it control the package and redirect to whom(clientA or clientB)?

Please help, thanks!

PS: could I use windows version as OpenVPN Server?

Best Regards
Ouyang Kai

#1 lore raw
Quoted 7 lines · oyk

Hi,guys
I want to know how the openvpn control the multi-client case in 2.0
version. for example:

  clientA---Internet---|             |----Internal Server1
                       |----Server---|----Internal Server2
  clientB---Internet---|             |----Internal Server3
Quoted 8 lines

Based on my comprehension, clientA (10.1.0.2) and clientB (10.1.0.3) can make a tunnel with Server (10.1.0.1) respectively using TCP connection. clientA sockA----------Server SockA1
clientB sockB----------Server SockB1
When Server recieves the package from clientA or clientB, it pushs the packages to the tun/tap device. And the Server box could route the package to the internal server. And the internal server response the package to Server.

No. Internal server replies to client's IP address. Whether it will be sent to client thru "Server" or not depends on routing. Typically you will have symmetric routing setup, and it will go thru "Server".

Quoted 3 lines

My question is: when OpenVPN Server recieves one package from one internal server, how does it control the package and redirect to whom(clientA or clientB)?

By looking at destination IP.

Quoted 3 lines

Please help, thanks!

PS: could I use windows version as OpenVPN Server?

As a last resort only ;)

Signature · 1 line
vda
#2 lore raw
Quoted 3 lines
Quoted 1 line

PS: could I use windows version as OpenVPN Server?

As a last resort only ;)

Actually, the OpenVPN server will run fine on Windows, though it may be slightly less efficient than Linux on equivalent hardware.

James

#3 lore raw
Quoted 6 lines · James Yonan
Quoted 3 lines
Quoted 1 line

PS: could I use windows version as OpenVPN Server?

As a last resort only ;)

Actually, the OpenVPN server will run fine on Windows, though it may be slightly less efficient than Linux on equivalent hardware.

Sorry, I didn't mean that it won't work.

I meant "use Windows as a last resort, if you positively cannot install Linux on that box".

Signature · 1 line
vda