I'm testing a real situation through a virtual machine with 2 virtual network cards (first simulate wan card, second simulate lan card). This is the topology:
The host connected to the lan card (eth1) gets IP address from OpenWrt' dhcp OK.
On OpenWrt I've used
Code: Select all
vpncmd
Code: Select all
bridgelist
I've created a cascade connection with VPN Server and I've turned on the cascade session IT'S ONLINE AND IT WORKS.
What's the problem?
If I connect a host in MY LAN to VPN Server, it doesn't receive an ip address from OpenWrt's dhcp, then it gets a private ip, and the PCs of the two LAN don't communicate.
But if I manually set ip address of VPN Client host, then they can communicate.
NB: If I install a dhcp server on a host (under eth1), then VPN Client host gets ip from him.
Instead, If I put VPN Bridge out of OpenWrt (I've install it on Host machine, where I run VM) and set the bridge with eth1, then VPN Client host gets ip automatically from OpenWrt.
I would like to know if this is possible and in your opinion what the problem is. I would not use secureNAT and/or virtual dhcp embedded in VPN Bridge
I hope I explained myself. Sorry for grammatical errors. :)