Hello,
i've got a small server recently and got into some virtualization. I had the idea that i could setup a virtual VPN server which has access to both a physical and a virtual network in ESXi. The physical connection would allow for VPN connections and the virtual network is shared with other virtual machines. VPN users would be able to access those virtual machines by their corresponding ip addresses eg (static: 10.0.0.1, NAS) (The physical network uses 192.168.2.0/24).
My question is "simply" how can i get my clients to be able to connect to other virtual machines on that virtual network, eg. what settings do i need for routing ...
And yes, i've already read through many HOW-TOs in the docs and forums but i can't figure it out.
The connection itself works.
client.conf:
client
dev tun
;dev-node MyTap
proto udp
remote 192.168.2.115 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert david.crt
key david.key
remote-cert-tls server
comp-lzo
verb 3
server.conf:
port 1194
proto udp
dev tap
ca ca.crt
cert vpnhost.crt
key vpnhost.key # This file should be kept secret
dh dh2048.pem
topology subnet
server 10.8.0.0 255.255.255.0
push "route 10.0.0.0 255.255.255.0"
ifconfig-pool-persist ipp.txt
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
Some help would be really appreciated, i'm somewhat of a noob when it comes to networking :/
(No, i don't want you to spoon feed, just some hints would be awesome 😃 )