kylemanna / docker-openvpn

🔒 OpenVPN server in a Docker container complete with an EasyRSA PKI CA
https://hub.docker.com/r/kylemanna/openvpn/
MIT License
8.62k stars 2.37k forks source link

Question: How to connect clients to the same subnet as server? #693

Open hdnh2006 opened 2 years ago

hdnh2006 commented 2 years ago

Hello,

I am new with OpenVPN and I don't know too much about networks. So, apologies if I say things with no sense.

I could run the docker container and I was able to connect my clients successfully. The problem is my server cannot "see" the clients connected and I guess it is because I didn't change the configuration so the server is assigning to the clients ips like following: 192.168.255.9 while the server is connected to the router under the ip 192.168.1.60

Curiously, the clients can see the server! I have an API deployed in the server and I can call the API from the clients without any problems but the opposite is not possible.

So my question is, how do I create the VPN in order to my server "can see" my clients? As I told before, I guess it is because my server is assigning ips like: 192.168.255.9 but I am not sure because I don't know nothing about networks.