[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: howto block ports



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Feb 25, 2004 at 09:50:28AM -0500, Harland Christofferson wrote:
> i have had a firewall configured to drop inbound packets on ports 
> that i am not using via iptables. i ran a port scanning utility from 
> an external machine. the utility detected that, although the ports 
> were _closed_, the ports still responded to the port scan utility.

Yes, that's right.  This is not a bug.  Making ports not respond is
broken behavior, go read the RFCs.

> i suspect that data destine for these _closed_ ports is being put 
> in the TCP/UDP stack.

All traffic coming in is, whether or not it's for you, if it's on the
same segment.  This isn't different in any other OS, either.

> i further suspect that malicious code could take advantage of bugs
> in the stack if there are any. i wish to be able to _block_ these
> ports entirely.

The only way you're going to do that is to go use another machine
before that one to be the firewall, you just can't do that in software
alone.

- -- 
 .''`.     Paul Johnson <baloo@ursine.ca>
: :'  :    http://ursine.ca/
`. `'`     proud Debian admin and user
  `-       Debian.  Because it *must* work.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAPOEIUzgNqloQMwcRAnx8AKCxFA1DM7J+oaGlXQT5EaPgnoXPqACgjTqw
k7um1ZpmY4kcRigjee9ebZU=
=TvTN
-----END PGP SIGNATURE-----



Reply to: