How things could be solved
Exercise 7
Assignment 7.1
I can do this myself, right? :-)
Assignment 7.2
There are no no-comment lines in /etc/inetd.conf
and
if I'll have a look on netstat's output, there is a astonishing similarity
between them.
Assignment 7.3
- Add line
supertelnet 31415/tcp
to the
/etc/services
- Add line
supertelnet stream tcp nowait root
/usr/sbin/tcpd in.telnetd
to the file /etc/inetd.conf
(in other words, just take line for telnet
service, copy it,
and prefix it with 'super').
- And also, don't forget to tell inetd to reload its configuration; e.g.
using the command
killall -HUP inetd
, or kill -HUP `pidof
inetd`
.
Assignment 7.4
Append to /etc/hosts.deny
line in.telnetd: ALL
and to /etc/hosts.allow
append in.telnetd: 10.0.0.222
(given that is the IP of computer you would like to grant access to service).
By this you attain blocking of both supertelnet and telnet. To be able to
differentiate them, you need to change in.telnetd
to other
program name, e.g. in.supertelnetd
, which could be link to
original in.telnetd
.
Assignment 7.5
Any problem with making mess on other computers? :)