diff options
| author | tv <tv@nomic.retiolum> | 2014-01-06 01:23:19 +0100 | 
|---|---|---|
| committer | tv <tv@nomic.retiolum> | 2014-01-06 01:23:19 +0100 | 
| commit | 12c7c4889965e75af35baaae82d5a68881672eda (patch) | |
| tree | 66f96e6dfc9ef87242088b1d03917c6c6f705919 | |
| parent | 5d194fb02e34fa8459e437449ef5bb466f0b4fb0 (diff) | |
go: talk about port redirection
| -rw-r--r-- | go/README.markdown | 7 | ||||
| -rw-r--r-- | go/etc/conf.d/go.env | 2 | 
2 files changed, 5 insertions, 4 deletions
diff --git a/go/README.markdown b/go/README.markdown index e508094b..f25bdf77 100644 --- a/go/README.markdown +++ b/go/README.markdown @@ -49,6 +49,7 @@      systemctl start go -  this can fail you haven't configured or useradd the user, -  or if you haven't changed the port and the user isn't allowed to -  listen to fancy ports like `80`. +  if you want to run as an unprivileged user but still want to use +  port `80`, then maybe try something like + +    iptables -t nat -A PREROUTING -p tcp --dport 1337 -j REDIRECT --to-ports 80 diff --git a/go/etc/conf.d/go.env b/go/etc/conf.d/go.env index 365bd0c7..1767ffce 100644 --- a/go/etc/conf.d/go.env +++ b/go/etc/conf.d/go.env @@ -1,2 +1,2 @@  HOSTN=go -PORT=80 +PORT=1337  | 
