explain inetd should only answer on 127.0.0.1 instead of all interfaces. Suggestion from xhr
This commit is contained in:
parent
b2ccab7448
commit
ec3d847e1c
2 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ Create an user `gemini_user`.
|
|||
Add this line to inetd.conf:
|
||||
|
||||
```
|
||||
11965 stream tcp nowait gemini_user /usr/local/bin/vger vger
|
||||
127.0.0.1:11965 stream tcp nowait gemini_user /usr/local/bin/vger vger
|
||||
```
|
||||
|
||||
Add this to relayd.conf
|
||||
|
@ -77,7 +77,7 @@ tcp protocol "gemini" {
|
|||
|
||||
relay "gemini" {
|
||||
listen on hostname.example port 1965 tls
|
||||
protocol "gemini"
|
||||
protocol "gemini"
|
||||
forward to 127.0.0.1 port 11965
|
||||
}
|
||||
```
|
||||
|
|
2
vger.8
2
vger.8
|
@ -62,7 +62,7 @@ can be used on any port because it won't be public.
|
|||
.Pp
|
||||
/etc/inetd.conf example using a dedicated gemini_user:
|
||||
.Bd -literal -offset indent
|
||||
11965 stream tcp nowait gemini_user /usr/local/bin/vger vger
|
||||
127.0.0.1:11965 stream tcp nowait gemini_user /usr/local/bin/vger vger
|
||||
.Ed
|
||||
.Pp
|
||||
The public port TCP/1965 must be served by a daemon like
|
||||
|
|
Loading…
Reference in a new issue