I'm trying to run kylemanna/docker-openvpn container with --network-host option on a virtual machine.
But any clients are able to connect. when I look at the server logs, it's like if no one tries to connect.
It works very well when I use docker network and exposing port 1194/udp
I don't have a eth0 interface on my host machine (as it's a VM). All my public traffic uses enp1s0 interface
I know this by using the command ip route | grep default who gives me the result default via 95.x.x.x dev enp1s0
After diving in the code, I noticed the option OVPN_NATDEVICE that I tried to set with the correct value in the ovpn_env.sh file.
But it didn't solve the problem.
Any help or ideas will be appreciated to help me to salve this problem
Hello,
I'm trying to run kylemanna/docker-openvpn container with --network-host option on a virtual machine. But any clients are able to connect. when I look at the server logs, it's like if no one tries to connect.
It works very well when I use docker network and exposing port
1194/udp
I don't have a eth0 interface on my host machine (as it's a VM). All my public traffic uses
enp1s0
interface I know this by using the commandip route | grep default
who gives me the resultdefault via 95.x.x.x dev enp1s0
After diving in the code, I noticed the option
OVPN_NATDEVICE
that I tried to set with the correct value in theovpn_env.sh
file. But it didn't solve the problem.Any help or ideas will be appreciated to help me to salve this problem