Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to vpn server with --network=host #741

Open
Chris3481 opened this issue Feb 7, 2023 · 0 comments
Open

Unable to connect to vpn server with --network=host #741

Chris3481 opened this issue Feb 7, 2023 · 0 comments

Comments

@Chris3481
Copy link

Chris3481 commented Feb 7, 2023

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 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant