hwdsl2 / docker-ipsec-vpn-server

Docker image to run an IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
https://hub.docker.com/r/hwdsl2/ipsec-vpn-server
Other
6.38k stars 1.38k forks source link

client on local network of the server #308

Closed diotta88 closed 2 years ago

diotta88 commented 2 years ago

Checklist

Hi, I’ve been following your documentation to create a server-vpn with docker and it works perfectly, but I need to know if there is the possibility to give clients the local IP-address of the server network address to easily access the remote interfaces of my remote-hardware from my pcs.

So imagine that I have locally the class 192.168.50.1/24 and the server vpn is at 192.168.50.200 but every client of the vpn take not only a specific vpn-ip like 192.168.42.1/24 but also an IP address from my dhcp server in the class 192.168.50.1/24.

Greatings

hwdsl2 commented 2 years ago

@diotta88 Hello! The feature you mentioned is not supported. However, you can customize VPN subnet(s) using instructions at: https://github.com/hwdsl2/docker-ipsec-vpn-server/blob/master/docs/advanced-usage.md#customize-vpn-subnets

For example, you can specify a custom VPN subnet 192.168.50.0/24 for IPsec/XAuth and IKEv2 VPN clients. Note that this may or may not enable the VPN clients to communicate with other devices on the 192.168.50.0/24 subnet.