mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 10:05:48 +03:00
[GH-ISSUE #385] Change default ports #358
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 @grinono on GitHub (Jun 9, 2023).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/385
I'm running this container on Kubernetes, but exposing it with nodePort will change the output ports to 30000+. I do not have a load balancer to trim down the ports again. There is no other"simple" way to directly expose to a lower range for UDP traffic.
Would it be somehow possible to change the exposed ports and then populate these in the generated config files? So the client connections are established directly to these non-standard ports?
@hwdsl2 commented on GitHub (Jun 9, 2023):
@grinono Hello! Currently, with this Docker image it is not supported to change the default ports (UDP 500 and 4500) for the IPsec VPN. The related Libreswan option is
leftikeport, read more at this link. You can customize this Docker image yourself and add this option to the IPsec configuration inrun.sh, and modify the Dockerfile to expose different ports. This has not been tested, however, and IPsec VPN clients may not support connecting to custom ports.