From fa25f9430f314368abfb4db3cd5338f624588a9b Mon Sep 17 00:00:00 2001 From: Daniel Santos Date: Thu, 24 Mar 2022 11:00:21 -0600 Subject: [PATCH] doc(README): Add alternative way of specifying gocast_nat --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 7328848..897a2f6 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,10 @@ If `gocast_nat=protocol:listenPort:destinationPort` is specified, then GoCast wi Example: `gocast_nat=tcp:53:8053` and `gocast_nat=udp:53:8053` +Alternatively, if `gocast_nat=protocol:port` is specified, then GoCast will create NAT rules, via iptables, and map traffic destined to the assigned VIP and the specified `port` to the physical IP and `port`. + +Example: `gocast_nat=tcp:53` and `gocast_nat=udp:53` + ## Docker support The docker image at mayuresh82/gocast can be used to run GoCast inside a container. In order for GoCast to manipulate the host network stack correctly, the container needs to run with NET_ADMIN capablity and host mode networking. For example: ```