I am trying to understand some basic principle of virtual networks.
Is it (and how is it) possible to let a vpn tunnel work like a switch? So that my local machine is getting an address of the remote net?
Site A: Net A: 10.1.0.0/16 Internet Gateway: 10.1.0.254 VPN Server A: 10.1.0.200 Some Clients in Network A: PC1: 10.1.0.1 PC2: 10.1.0.2 ... PC199 etc. And some File Servers. DHCP Net A: 10.1.0.253 Site B: Net B: 192.168.2.0/24 Client B: 192.168.2.2 Internet Gateway: 192.168.2.254
Client B should connect to Net A via VPN Server A. Is it possible that it gets an ip-address in range of net A on its vpn interface, eg. 10.1.0.201?
Would it be possible that a PC in Network B (VPN_B) acts also as a switch, so that the DHCP of Network A gives the addresses to network B? And all clients of network B connect to the net via the VPN_B?
I think that will be the scenario that is most productive: For a single client as in scenario 1 for a net connection:
Network A: 10.1.0.0/16 or 192.168.1.0/24 Network B: 10.2.0.0/16 or 192.168.2.0/24 Network C: 10.3.0.0/16 or 192.168.3.0/24 etc.
and each network has an own DHCP and Gateway. how do I need to configure the VPN Servers that Traffic in the site-spanning 10.0.0.0/8 Net would go through the vpn if the client is not in the same site and external traffice (Web Connection) goes directly through the Internet Gateway.
Does the VPN Server must be configured as the Gateway and routes the traffic either to a "wan"-port or the vpn or would it be possible to use any client in the network as VPN Server