how to bind initd to 127.0.0.1 ?

zwieblum

Member

Reaction score: 6
Messages: 39

I would like to make initd() only listen to 127.0.0.1, is there a way to do this via /etc/rc.conf? Reason is, that I have [MAN=]Xvnc [/MAN]started oner inetd(), and that should only be available to users logged in via ssh().
 
OP
OP
zwieblum

zwieblum

Member

Reaction score: 6
Messages: 39

Found it: /etc/defailt/rc.conf gave the hint ...
Code:
inetd_enable=YES
inetd_flags="-wW -C 60 -a 127.0.0.1"
Now it bind's to 127.0.0.1 only :)
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 8,487
Messages: 32,557

Do NOT edit /etc/default/rc.conf, put your changes in /etc/rc.conf. Never edit any of the files in /etc/default/.
 
Top