Great Circle Associates Firewalls
(August 1993)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Listening at all ports
From: Tom Fitzgerald <fitz @ wang . com>
Date: Mon, 16 Aug 93 15:51:44 EDT
To: roger . hunen @ medtronic . com
Cc: Firewalls @ GreatCircle . COM
In-reply-to: <MAILQ_SMTP_IN-101 . 930816163839 . 352 @ nvl1 . brc . medtronic . com>; from "Roger Hunen" at Aug 16, 93 4:38 pm

> When using a UNIX box (eg. SUN) for a firewall, it would be nice to have a
> daemon listening at ALL UDP and TCP ports in order to see who is knocking on
> the door... and where! How can this be done? Any pointers are appreciated.

You can't easily do ALL of them, but you can cover the interesting-looking
tcp ports via inetd.  I'm using tcpd, and I have a pile of extra entries in
inetd.conf for nonexistent daemons:

exec	stream	tcp	nowait	nouser	/usr/local/etc/tcpd no-exec
uucp	stream	tcp	nowait	nouser	/usr/local/etc/tcpd no-uucp
rje	stream	tcp	nowait	nouser	/usr/local/etc/tcpd no-rje
link	stream	tcp	nowait	nouser	/usr/local/etc/tcpd no-link
sunrpc	stream	tcp	nowait	nouser	/usr/local/etc/tcpd no-sunrpc
sftp	stream	tcp	nowait	nouser	/usr/local/etc/tcpd no-sftp
printer	stream	tcp	nowait	nouser	/usr/local/etc/tcpd no-printer
nterm	stream	tcp	nowait	nouser	/usr/local/etc/tcpd no-nterm

etc.  When somebody connects to one of those ports and it can't start the
corresponding (nonexistent) daemon, tcpd logs a complaint with the name of
the daemon.

On a Sun you can probably extend this to UDP, I'm on a SysV where tcpd
can't handle UDP connections correctly.

-- 
Tom Fitzgerald   Wang Labs       fitz @
 wang .
 com   "I went to the universe today;
1-508-967-5278   Lowell MA, USA                   It was closed...."




References:
Indexed By Date Previous: Re: listening at all ports -
From: jim @ tadpole . com (Jim Thompson)
Next: globalsoft
From: Bob Sutterfield <bob @ MorningStar . Com>
Indexed By Thread Previous: Listening at all ports
From: "Roger Hunen" <roger . hunen @ medtronic . com>
Next: Re: Listening at all ports
From: jim @ tadpole . com (Jim Thompson)

Google
 
Search Internet Search www.greatcircle.com