Linux Netfilter discussions
 help / color / mirror / Atom feed
* RE: nmap
@ 2002-10-22 21:11 Antonio Paulo Salgado Forster
  0 siblings, 0 replies; 17+ messages in thread
From: Antonio Paulo Salgado Forster @ 2002-10-22 21:11 UTC (permalink / raw)
  To: Andy Wood; +Cc: netfilter


thanks for that :-)



Andy Wood <andy.wood@sptrm.com>@lists.netfilter.org on 10/22/2002 05:46:26
PM

Sent by:    netfilter-admin@lists.netfilter.org


To:    Antonio Paulo Salgado Forster/Brazil/IBM@IBMBR
cc:    netfilter@lists.netfilter.org
Subject:    RE: nmap



echo 32768 > /proc/sys/net/ipv4/ip_conntrack_max

 Value should depend on RAM

-----Original Message-----
From: Antonio Paulo Salgado Forster [mailto:aforster@br.ibm.com]
Sent: Tuesday, October 22, 2002 3:19 PM
To: Antony Stone
Cc: netfilter@lists.netfilter.org
Subject: Re: nmap



I  had problems on scanning through netfilter depending on the kind of scan
you run.. One of the problems you may face in case you run a ACK scan from
a
segment that has the permition for the traffic, you will have your
conntrack
full in a few seconds with ESTABLISHED connections that will take long to
disappear.. The same will happen when portscanning from the firewall box
with a default policy for OUTPUT set as ACCEPT.

One of the ways to fix this is to increase the size of the conntrack.. I
use
to do that when creating the box by changing the source code and
recompiling
the kernel... but I dont know if there are any side effects on doing that..

--Regards,

Forster




Antony Stone <Antony@Soft-Solutions.co.uk>@lists.netfilter.org on
10/22/2002
03:31:42 PM

Sent by:    netfilter-admin@lists.netfilter.org


To:    netfilter@lists.netfilter.org
cc:
Subject:    Re: nmap



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 ???










^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: nmap
@ 2002-10-23  5:35 zeus
  0 siblings, 0 replies; 17+ messages in thread
From: zeus @ 2002-10-23  5:35 UTC (permalink / raw)
  To: netfilter

> OK but if I set the policy OUTPUT at DROP which ports/prot I have to set to
> ACCEPT?  This's my problem.

you can use the ownercmd patch in p-o-m for this:

iptables -A OUTPUT -m owner --cmd-owner nmap -j ACCEPT

-Bob


^ permalink raw reply	[flat|nested] 17+ messages in thread
* RE: nmap
@ 2002-10-22 20:46 Andy Wood
  0 siblings, 0 replies; 17+ messages in thread
From: Andy Wood @ 2002-10-22 20:46 UTC (permalink / raw)
  To: 'Antonio Paulo Salgado Forster'; +Cc: netfilter

echo 32768 > /proc/sys/net/ipv4/ip_conntrack_max

	Value should depend on RAM

-----Original Message-----
From: Antonio Paulo Salgado Forster [mailto:aforster@br.ibm.com] 
Sent: Tuesday, October 22, 2002 3:19 PM
To: Antony Stone
Cc: netfilter@lists.netfilter.org
Subject: Re: nmap



I  had problems on scanning through netfilter depending on the kind of scan
you run.. One of the problems you may face in case you run a ACK scan from a
segment that has the permition for the traffic, you will have your conntrack
full in a few seconds with ESTABLISHED connections that will take long to
disappear.. The same will happen when portscanning from the firewall box
with a default policy for OUTPUT set as ACCEPT.

One of the ways to fix this is to increase the size of the conntrack.. I use
to do that when creating the box by changing the source code and recompiling
the kernel... but I dont know if there are any side effects on doing that..

--Regards,

Forster




Antony Stone <Antony@Soft-Solutions.co.uk>@lists.netfilter.org on 10/22/2002
03:31:42 PM

Sent by:    netfilter-admin@lists.netfilter.org


To:    netfilter@lists.netfilter.org
cc:
Subject:    Re: nmap



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 ???






^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: nmap
@ 2002-10-22 19:19 Antonio Paulo Salgado Forster
  0 siblings, 0 replies; 17+ messages in thread
From: Antonio Paulo Salgado Forster @ 2002-10-22 19:19 UTC (permalink / raw)
  To: Antony Stone; +Cc: netfilter


I  had problems on scanning through netfilter depending on the kind of scan
you run.. One of the problems you may face in case you run a ACK scan from
a segment that has the permition for the traffic, you will have your
conntrack full in a few seconds with ESTABLISHED connections that will take
long to disappear.. The same will happen when portscanning from the
firewall box with a default policy for OUTPUT set as ACCEPT.

One of the ways to fix this is to increase the size of the conntrack.. I
use to do that when creating the box by changing the source code and
recompiling the kernel... but I dont know if there are any side effects on
doing that..

--Regards,

Forster




Antony Stone <Antony@Soft-Solutions.co.uk>@lists.netfilter.org on
10/22/2002 03:31:42 PM

Sent by:    netfilter-admin@lists.netfilter.org


To:    netfilter@lists.netfilter.org
cc:
Subject:    Re: nmap



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 ???






^ permalink raw reply	[flat|nested] 17+ messages in thread
* PPTP Question
@ 2002-10-22  5:20 Rommy Taslim
  2002-10-22 15:42 ` nmap antonio
  0 siblings, 1 reply; 17+ messages in thread
From: Rommy Taslim @ 2002-10-22  5:20 UTC (permalink / raw)
  To: netfilter

Hi Everyone,

Just a question, is it possible to have two box of linux OS (both
connected to internet with different IP addresses) to do VPN/PPTP
masquerading to one PPTP server (Windows 2000 box) inside the LAN ?

I only manage to get it to work with one of them (the one that the
Windows 2000 box have a default gateway to).

Thanks in advance !

Rommy



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2002-10-23 15:25 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-22 21:11 nmap Antonio Paulo Salgado Forster
  -- strict thread matches above, loose matches on Subject: below --
2002-10-23  5:35 nmap zeus
2002-10-22 20:46 nmap Andy Wood
2002-10-22 19:19 nmap Antonio Paulo Salgado Forster
2002-10-22  5:20 PPTP Question Rommy Taslim
2002-10-22 15:42 ` nmap antonio
2002-10-22 18:25   ` nmap Gaël Le Mignot
2002-10-22 19:12     ` nmap antonio
2002-10-22 21:05       ` nmap Gaël Le Mignot
2002-10-22 22:35         ` nmap antonio
2002-10-23  7:35           ` nmap Gaël Le Mignot
2002-10-23  9:06             ` nmap Gavin
2002-10-23 12:02               ` nmap Gaël Le Mignot
2002-10-23 12:15                 ` nmap Gavin
2002-10-23 15:25                   ` nmap Antony Stone
2002-10-22 18:31   ` nmap Antony Stone
2002-10-22 22:38     ` nmap hellbreak
2002-10-22 23:25   ` nmap Nick Drage

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox