Re: Limiting server side RPC ports for firewall rules
Casper Dik <[email protected]> Thu, 22 Apr 2004 11:57:24 +0200
| Newsgroups | gmane.comp.security.sun |
|---|---|
| Message-ID | <[email protected]> |
>Is it possible to limit the range of ports allocated to RPC on the >server side of a connection? If so, how, what settings, etc.? I want >to limit the ports used by RPC servers to a narrow range, so that the >current firewall rules which specify a large port range can be limited >to a narrower range, and the connections can be more securely handled. The only way to achieve this for services which bind to ephemeral ports is to (temporarily?) change the port range used for anonymous ports: ndd /dev/tcp tcp_smallest_anon_port ndd /dev/tcp tcp_largest_anon_port ndd /dev/udp udp_smallest_anon_port ndd /dev/udp udp_largest_anon_port Is there any particular reason why you don't filter all incoming traffic? If you use a stateful filter, this really shouldn't be a problem for outgoing connections. Casper