LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Building a Virtual LAN with direct connection between clients (https://www.linuxquestions.org/questions/linux-networking-3/building-a-virtual-lan-with-direct-connection-between-clients-654814/)

stringZ 07-10-2008 05:07 AM

Building a Virtual LAN with direct connection between clients
 
Hey,

I would like to build a Virtual LAN that people can connect to from anywhere. When they connect, they should get an IP address from the server that colligates the network, and after on the Virtual LAN and they see the each other. Mainly the communication shouldn't go through the server, but direct connection between the clients. If direct connection is not possible, the fallback method is to communicate using the server.

As far as I read, OpenVPN is able to do this, but I couldn't find any howto on this special case. Everything is about linking two subnets together. No, I want to create a subnet and every client should have one IP address and only see each other, not their subnet.

Anyone could help me out with a howto or something?

Thanks
stringZ

acid_kewpie 07-10-2008 06:17 AM

What is special about this? I can't see anything interesting in what you're asking for. why would commincations be going via a server? what server would this be?? what services are you referring to?

stringZ 07-10-2008 06:42 AM

Quote:

Originally Posted by acid_kewpie (Post 3209909)
What is special about this? I can't see anything interesting in what you're asking for. why would commincations be going via a server? what server would this be?? what services are you referring to?

What I need is to bulid a virtual local area network that can be used by people regardless to their location. For example:

client1 has 89.10.45.6 WAN IP address, connects to this network and gets 10.0.21.1
client2 has 76.16.241.78 WAN IP address, connects to this network and gets 10.0.21.2

direct connection: if client1 has an open port for this issue, and a communication begins between client1 and client2, then 89.10.45.6 will connect to 76.16.241.78 and transfer the data.

So the server should only give dhcp address to each client and authorize them. They can communicate with each other after this.


Whatis special? Everything is about linking two remote subnets together, like 10.0.1.0/24 and 10.0.2.0/24. But I don't want to bridge networks, but create one.

acid_kewpie 07-10-2008 07:52 AM

well that's a standard "road warrior" or "remote access" set up as opposed to a "site to site" layout. There are plenty of guides, i saw a reasonable looking on on the gentoo wiki earlier.


All times are GMT -5. The time now is 05:20 AM.