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

Network unreachable #68

Open
zhengshaoyong opened this issue Jun 2, 2023 · 1 comment
Open

Network unreachable #68

zhengshaoyong opened this issue Jun 2, 2023 · 1 comment

Comments

@zhengshaoyong
Copy link

zhengshaoyong commented Jun 2, 2023

docker run
--privileged
--name openvpn
--volume /opt/data/openvpn:/etc/openvpn
--detach=true
-p 1194:1194/udp
-e "OVPN_SERVER_CN=myserver.mycompany.com"
-e "LDAP_URI=ldap://xxxx"
-e "LDAP_BASE_DN=ou="
-e "LDAP_BIND_USER_DN=cn=xxx"
-e "LDAP_BIND_USER_PASS=xxx"
--cap-add=NET_ADMIN
-e OVPN_NAT=true
-e OVPN_ROUTES="172.16.64.0 255.255.255.0"
wheelybird/openvpn-ldap-otp:v1.7

VPN connection is okay, unable to access VPN intranet.

Test results:

  1. Ping Docker container IP is normal

  2. Ping Docker 172.17.0.1 doesn't work

  3. Ping Docker host IP is also not available

@wheelybird
Copy link
Owner

The Docker IPs wouldn't be covered by the route you've added (172.16.64.0/24). Try not adding the route and see if you can connect without it.

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

2 participants