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.72k stars 2.39k forks source link

Access VPN client's subnet from the VPN server #569

Open zhex900 opened 4 years ago

zhex900 commented 4 years ago

Hi,

How I access VPN client's subnet from the VPN server? VPN client's ip address 192.168.255.11. This is static ip address.

On the VPN client which is my laptop, it have access to 10.10.10.0/24

I want to access 10.10.10.0/24 in the VPN host that is running the openvpn container.

Paraidomat commented 4 years ago

IIRC this is not possible, since you can not "route" traffic into the docker container. But I may be wrong.

duketwo commented 4 years ago

Use network_mode 'host'. This possibly implies other chnages. Not quite sure, I'm atm on it.