mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 18:15:50 +03:00
[GH-ISSUE #211] Access resources in the same server that docker #196
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @certifirm on GitHub (Nov 7, 2020).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/211
I am testing your docker image and all works well.
I need only to access resources on the server, like mariadb, apache, ...
This is my env file
If I ping from a client to server address it works (ping from 192.168.50.50 to 192.168.50.1), but resources in server are not accessible.
Thanks
@hwdsl2 commented on GitHub (Nov 7, 2020):
@certifirm Hello! Due to Docker's network isolation, and because your VPN clients connect to the VPN server which is running inside a Docker container, they cannot access resources on the Docker host. The only possible solution I can think of is to try the "--net=host" option when creating the Docker container, so that the container will share the Docker host's networking. There are some caveats and possible bugs, however, such as #207. Also you may need to manually clean up the Docker host's IPTables rules if you no longer need to run the VPN server container.