* Primordial tool missing
@ 2004-08-12 7:47 nadim
2004-08-12 15:47 ` Jason
2004-08-12 19:40 ` Maxime Ducharme
0 siblings, 2 replies; 4+ messages in thread
From: nadim @ 2004-08-12 7:47 UTC (permalink / raw)
To: netfilter
Hi,
For you gurus this might be superfluous but for the lambda user a tool which
given an input packet (xxx.xxx.xxx.xxx:tcp:25) and a set of rules, show how
the packet goes from one rule to the other and finally make it to it's
destination , gets tansformed or dropped.
This would help enormously in understanding how this stuff works (no it's not
that obvious) and I also think it would be a great help when adding rules.
Does such a utility exist?
Cheers, Nadim.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Primordial tool missing
2004-08-12 7:47 Primordial tool missing nadim
@ 2004-08-12 15:47 ` Jason
2004-08-12 19:40 ` Maxime Ducharme
1 sibling, 0 replies; 4+ messages in thread
From: Jason @ 2004-08-12 15:47 UTC (permalink / raw)
To: nadim; +Cc: netfilter
Their is a trace target in POM that does something akin to what you are
looking for.
--
Jason
www.jasonandjessi.com
It gimme the jibblies
On Thu, 12 Aug 2004, nadim wrote:
> Hi,
>
> For you gurus this might be superfluous but for the lambda user a tool which
> given an input packet (xxx.xxx.xxx.xxx:tcp:25) and a set of rules, show how
> the packet goes from one rule to the other and finally make it to it's
> destination , gets tansformed or dropped.
>
> This would help enormously in understanding how this stuff works (no it's not
> that obvious) and I also think it would be a great help when adding rules.
>
> Does such a utility exist?
>
> Cheers, Nadim.
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Primordial tool missing
2004-08-12 7:47 Primordial tool missing nadim
2004-08-12 15:47 ` Jason
@ 2004-08-12 19:40 ` Maxime Ducharme
2004-08-13 8:13 ` nadim
1 sibling, 1 reply; 4+ messages in thread
From: Maxime Ducharme @ 2004-08-12 19:40 UTC (permalink / raw)
To: nadim, netfilter
Hey Nadim
I suggest that you use logging mechaninsm of iptables,
put -j LOG lines in many tables, it will allow you to "see"
the packets going trough tables and chains.
By default packets are logged in /var/log/messages
a good schema on how it works :
http://iptables-tutorial.frozentux.net/iptables-tutorial.html#TRAVERSINGOFTABLES
a good example script of -j LOG :
http://iptables-tutorial.frozentux.net/iptables-tutorial.html#INCLUDE.TESTTABLES
(option "--log-prefix" is important here to know where you are)
I also suggest that you dont drop a packet before logging it,
you may add a logging rule to every DROP or REJECT
rules you may have in your configuration. It also helps
to know where the packet have been dropped.
Hope this helps
Have a nice day
Maxime Ducharme
Programmeur / Spécialiste en sécurité réseau
----- Original Message -----
From: "nadim" <nadim@khemir.net>
To: <netfilter@lists.netfilter.org>
Sent: Thursday, August 12, 2004 3:47 AM
Subject: Primordial tool missing
> Hi,
>
> For you gurus this might be superfluous but for the lambda user a tool
which
> given an input packet (xxx.xxx.xxx.xxx:tcp:25) and a set of rules, show
how
> the packet goes from one rule to the other and finally make it to it's
> destination , gets tansformed or dropped.
>
> This would help enormously in understanding how this stuff works (no it's
not
> that obvious) and I also think it would be a great help when adding rules.
>
> Does such a utility exist?
>
> Cheers, Nadim.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Primordial tool missing
2004-08-12 19:40 ` Maxime Ducharme
@ 2004-08-13 8:13 ` nadim
0 siblings, 0 replies; 4+ messages in thread
From: nadim @ 2004-08-13 8:13 UTC (permalink / raw)
To: netfilter
Thanks for your answer (you too Jason) but I still think the tool _is_
primordial. Fideling with the rules and tailing the log is about as close a
"last resort" as can be. One might also want to try different setups of
rules, etc...
Now I have no ideas of how iptables works and I don't have time to dig into
all the details but if someone gives me a hand, I'll write a perl script.
Cheers, Nadim.
On Thursday 12 August 2004 21:40, Maxime Ducharme wrote:
> Hey Nadim
>
> I suggest that you use logging mechaninsm of iptables,
> put -j LOG lines in many tables, it will allow you to "see"
> the packets going trough tables and chains.
>
> By default packets are logged in /var/log/messages
>
> a good schema on how it works :
> http://iptables-tutorial.frozentux.net/iptables-tutorial.html#TRAVERSINGOFT
>ABLES
>
> a good example script of -j LOG :
> http://iptables-tutorial.frozentux.net/iptables-tutorial.html#INCLUDE.TESTT
>ABLES
>
> (option "--log-prefix" is important here to know where you are)
>
> I also suggest that you dont drop a packet before logging it,
> you may add a logging rule to every DROP or REJECT
> rules you may have in your configuration. It also helps
> to know where the packet have been dropped.
>
> Hope this helps
>
> Have a nice day
>
> Maxime Ducharme
> Programmeur / Spécialiste en sécurité réseau
>
> ----- Original Message -----
> From: "nadim" <nadim@khemir.net>
> To: <netfilter@lists.netfilter.org>
> Sent: Thursday, August 12, 2004 3:47 AM
> Subject: Primordial tool missing
>
> > Hi,
> >
> > For you gurus this might be superfluous but for the lambda user a tool
>
> which
>
> > given an input packet (xxx.xxx.xxx.xxx:tcp:25) and a set of rules, show
>
> how
>
> > the packet goes from one rule to the other and finally make it to it's
> > destination , gets tansformed or dropped.
> >
> > This would help enormously in understanding how this stuff works (no it's
>
> not
>
> > that obvious) and I also think it would be a great help when adding
> > rules.
> >
> > Does such a utility exist?
> >
> > Cheers, Nadim.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-08-13 8:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-12 7:47 Primordial tool missing nadim
2004-08-12 15:47 ` Jason
2004-08-12 19:40 ` Maxime Ducharme
2004-08-13 8:13 ` nadim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox