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.
Change this under the 'start' case:
sudo gedit /etc/init.d/xinetd
By adding the '-inetd_compat' argument:
start-stop-daemon --start --quiet --background --exec /usr/sbin/xinetd -- -pidfile /var/run/xinetd.pid $XINETD_OPTS
Then, restart xinetd:
start-stop-daemon --start --quiet --background --exec /usr/sbin/xinetd -- -inetd_compat -pidfile /var/run/xinetd.pid XINETD_OPTS
I got that nugget from /usr/share/doc/xinetd/README.Debian
sudo /etc/init.d/xinetd restart
Thanks again for the great tutorial - I had no idea this was even an option.