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.37k stars 1.38k forks source link

[Question] How i can forward port from client to server? #355

Closed andreypfau closed 1 year ago

andreypfau commented 1 year ago

For example i has VPN server for example ip (33.33.33.33) running using this image, and i have client connected with this VPN. I wanna forward port (for example 25565) from my client to VPN server (33.33.33.33) for connection 33.33.33.33:25565 redirecting to my client port 25565

hwdsl2 commented 1 year ago

@andreypfau Hello! If you set up the VPN server directly without using Docker, refer to Port forwarding to VPN clients.

On the other hand, if you are using this Docker image, in the default configuration, the only ports exposed are UDP ports 500 and 4500, so the Docker daemon won't forward other ports to the container. Therefore it can be difficult to forward ports. For this use case, you may want to set up the VPN server directly as mentioned above.