Re: transparent proxy and port assignment

Paul Rusty Russell (Paul.Russell@rustcorp.com.au)
Fri, 19 Feb 1999 10:51:29 +1130


In message <19990218130710.U569@osiris.978.org> you write:
> I'm using transparent proxy to redirect ports 8000-8799 on my box to other
> ports. (it's to help folks get around port filters)
>
> I need to know these ports are marked as used or not by the kernel, or if
> there's a way to do this -- specificly, I'd like to avoid a user process
> from accidentally getting stuck with one of those ports when trying to make
> an outgoing connection or dynamicly assigned listening port (like an IRC
> DCC).

This is one of the problems with redirect. Look at
net/ipv4/tcp_ipv4.c's tcp_good_socknum(), and hack it not to return
those values.

Rusty.

--
 .sig lost in the mail.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/