From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Opperisano Subject: Re: Prevent traceroutes Date: Thu, 19 May 2005 19:33:47 -0400 Message-ID: <20050519233347.GA9462@bender.817west.com> References: <20050519232314.GA9369@bender.817west.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20050519232314.GA9369@bender.817west.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: netfilter@lists.netfilter.org On Thu, May 19, 2005 at 07:23:14PM -0400, Jason Opperisano wrote: > # standard UDP ports used by traceroute > iptables -A INPUT -p udp --dport 33434:33523 -j DROP > iptables -A FORWARD -p udp --dport 33434:33523 -j DROP > > # ICMP echo-req's w/ low TTL > iptables -A INPUT -p icmp --icmp-type 8 -m ttl --ttl-lt 5 -j DROP > iptables -A FORWARD -p icmp --icmp-type 8 -m ttl --ttl-lt 5 -j DROP looking at that response--there's a situation screaming for a custom chain: iptables -N DROP_TRACE iptables -A DROP_TRACE -p udp --dport 33434:33523 -j DROP iptables -A DROP_TRACE -p icmp --icmp-type 8 -m ttl --ttl-lt 5 -j DROP iptables -A INPUT -j DROP_TRACE iptables -A FORWARD -j DROP_TRACE -j -- "Announcer: Paw McTucket Beer. If you drink it, hot women will have sex in your backyard." --Family Guy