[GH-ISSUE #355] [Question] How i can forward port from client to server? #329

Closed
opened 2026-03-02 08:01:24 +03:00 by kerem · 1 comment
Owner

Originally created by @andreypfau on GitHub (Mar 8, 2023).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/355

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

Originally created by @andreypfau on GitHub (Mar 8, 2023). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/355 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
kerem closed this issue 2026-03-02 08:01:24 +03:00
Author
Owner

@hwdsl2 commented on GitHub (Mar 9, 2023):

@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.

<!-- gh-comment-id:1461227920 --> @hwdsl2 commented on GitHub (Mar 9, 2023): @andreypfau Hello! If you [set up the VPN server directly](https://github.com/hwdsl2/setup-ipsec-vpn) without using Docker, refer to [Port forwarding to VPN clients](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/advanced-usage.md#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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-ipsec-vpn-server#329
No description provided.