mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 01:55:53 +03:00
[GH-ISSUE #141] How to configure server route tables or gateway to let the remote server visit local network? #127
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 @Laruto on GitHub (Apr 22, 2019).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/141
Problem
I tried to use IPsec vpn tunnel to let remote server visit services on local network.
After start the docker container, my PC can connect to the IPsec server, and my PC can visit remote service. However, when I try to ping back my PC on the server, it failed. I noticed that something need to be done, such as adding a gateway record to
route tables, but I don't know how to.The following is the server's
route tables:The following is the server's IPsec status:
Thanks!
@cmsax commented on GitHub (Apr 22, 2019):
Try this:
@Laruto commented on GitHub (Apr 22, 2019):
network is unreachable
@hwdsl2 commented on GitHub (Apr 22, 2019):
@Laruto Hello! AFAIK there are a few issues that prevent your use case from working with this Docker image.
Firstly, it is generally more difficult to access the VPN client’s local network from the VPN server. The reverse is normally easier.
Secondly, while connected to the VPN, you may access the VPN client itself from the VPN server using its assigned internal VPN IP (e.g. 192.168.42.10). This is true when not using Docker. However, Docker enforces isolation for the VPN container, such that access to these internal VPN IPs is possible only from inside the container, not from outside (on the Docker host).
Commands that @cmsax suggested could work if you are not using Docker, but instead set up the VPN directly using scripts from my other repo.
@ldlPlus commented on GitHub (Dec 24, 2020):
我也想知道该怎么弄