diff --git a/proxy/README.md b/proxy/README.md index 3f85aac..7299695 100644 --- a/proxy/README.md +++ b/proxy/README.md @@ -50,6 +50,7 @@ Usage of ./proxy: disable the exposing mechanism for stats using logs -ephemeral-ports-range range Set the range of ports used for client connections (format:":"). + Useful in conjunction with port forwarding, in order to make the proxy NAT type "unrestricted". If omitted, the ports will be chosen automatically from a wide range. When specifying the range, make sure it's at least 2x as wide as the amount of clients that you are hoping to serve concurrently (see the "capacity" flag). -keep-local-addresses diff --git a/proxy/main.go b/proxy/main.go index a75d1fd..b25a3e0 100644 --- a/proxy/main.go +++ b/proxy/main.go @@ -44,7 +44,7 @@ func main() { metricsAddress := flag.String("metrics-address", "localhost", "set listen `address` for metrics service") metricsPort := flag.Int("metrics-port", 9999, "set port for the metrics service") verboseLogging := flag.Bool("verbose", false, "increase log verbosity") - ephemeralPortsRangeFlag := flag.String("ephemeral-ports-range", "", "Set the `range` of ports used for client connections (format:\":\").\nIf omitted, the ports will be chosen automatically from a wide range.\nWhen specifying the range, make sure it's at least 2x as wide as the amount of clients that you are hoping to serve concurrently (see the \"capacity\" flag).") + ephemeralPortsRangeFlag := flag.String("ephemeral-ports-range", "", "Set the `range` of ports used for client connections (format:\":\").\nUseful in conjunction with port forwarding, in order to make the proxy NAT type \"unrestricted\".\nIf omitted, the ports will be chosen automatically from a wide range.\nWhen specifying the range, make sure it's at least 2x as wide as the amount of clients that you are hoping to serve concurrently (see the \"capacity\" flag).") versionFlag := flag.Bool("version", false, "display version info to stderr and quit") var ephemeralPortsRange []uint16 = []uint16{0, 0}