This is a great tutorial, very helpful, thanks.
My install was however using xinetd instead of inetd. Is this installed autimatically with Ubuntu? Xinetd is considered more secure than inetd, so I decided to keep it instead of installing inetd. Anyway, to get xinetd to read your inetd.conf, and incorporate those rules into it's functionality you can do this:
Edit the startup script that calls xinetd.
Code:
sudo gedit /etc/init.d/xinetd
Change this under the 'start' case:
Code:
start-stop-daemon --start --quiet --background --exec /usr/sbin/xinetd -- -pidfile /var/run/xinetd.pid $XINETD_OPTS
By adding the '-inetd_compat' argument:
Code:
start-stop-daemon --start --quiet --background --exec /usr/sbin/xinetd -- -inetd_compat -pidfile /var/run/xinetd.pid XINETD_OPTS
Then, restart xinetd:
Code:
sudo /etc/init.d/xinetd restart
I got that nugget from /usr/share/doc/xinetd/README.Debian
Thanks again for the great tutorial - I had no idea this was even an option.