mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 10:05:48 +03:00
[GH-ISSUE #421] [Question] Is it possible to access a client from the server hosts network/subnet #393
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 @jamesholz on GitHub (Mar 27, 2024).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/421
Hello!
I am running this vpn through docker, currently in bridge mode. The clients are able to access resources on the server's subnet, however I am not able to access any client from the servers subnet (unless of course i connect the relevant device to the vpn also).
I followed instructions in the non docker version such as IP tables and routing but this was confusing because of the docker. I also note there are no specific instructions around this here.
For example, client is assigned 192.168.42.10, and trying to access it from servers 192.168.1.37, but this does not work.
Any ideas? Thank you so much.
@hwdsl2 commented on GitHub (Mar 27, 2024):
@jamesholz Hello! For your use case, due to Docker's network isolation it is difficult to access a VPN client from the Docker host's network, so this use case is not currently supported. A few things you can try:
10.1.0.3with192.168.1.37.exit.192.168.1.37server, perform step 2 in the section mentioned above, be sure to replace10.1.0.2with your Docker host's IP address, andeth0with the network interface name of the192.168.1.37server.The above may not work due to Docker's network isolation. In that case, you may want to look into alternative methods for your use case.