From mboxrd@z Thu Jan 1 00:00:00 1970 From: Antony Stone Subject: Re: nmap Date: Tue, 22 Oct 2002 19:31:42 +0100 Sender: netfilter-admin@lists.netfilter.org Message-ID: <20021022183147.PITY17202.mta01-svc.ntlworld.com@there> References: <1035264046.15391.85.camel@hyperno> <20021022174245.13d2766b.fonetica@tiscali.it> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20021022174245.13d2766b.fonetica@tiscali.it> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org On Tuesday 22 October 2002 4:42 pm, antonio wrote: > Hi Everyone, > > Just a question: > I want to set up a firewall box with iptables in which I can use nmap. > Which ports/protocols can I set to ACCEPT and which to DROP? Do you mean you want to run nmap on a box also running netfilter, to scan other machines ? If so, set your OUTPUT policy to ACCEPT, set your INPUT policy to DROP with a single rule: iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT and you'll be able to scan other machines and get the replies back, but anything new coming in to your machine will be blocked. If I didn't understand correctly what you wanted to do please give more details. Antony. -- Which part of 'apt-get dist-upgrade' do you not understand ???