* LOG target with MARK?
@ 2013-02-12 3:02 Aaron Lewis
2013-02-12 7:36 ` Andrew Beverley
0 siblings, 1 reply; 3+ messages in thread
From: Aaron Lewis @ 2013-02-12 3:02 UTC (permalink / raw)
To: netfilter mailing list
Hi,
Looks like the LOG target doesn't output the mark of a packet?
I checked -j LOG --help and there's no such option, so what should I do
to get the mark of each packet and print them?
--
Best Regards,
Aaron Lewis - PGP: 0xDFE6C29E ( http://pgp.mit.edu/ )
Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: LOG target with MARK?
2013-02-12 3:02 LOG target with MARK? Aaron Lewis
@ 2013-02-12 7:36 ` Andrew Beverley
2013-02-12 9:44 ` [SOLVED] " Aaron Lewis
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Beverley @ 2013-02-12 7:36 UTC (permalink / raw)
To: Aaron Lewis; +Cc: netfilter mailing list
On Tue, 2013-02-12 at 11:02 +0800, Aaron Lewis wrote:
> Hi,
>
> Looks like the LOG target doesn't output the mark of a packet?
>
> I checked -j LOG --help and there's no such option, so what should I do
> to get the mark of each packet and print them?
It will log marks on packets by default. If there is no mark then
nothing will be printed; if there is, the value will be printed at the
end of the logging line (eg MARK=0x64).
Andy
^ permalink raw reply [flat|nested] 3+ messages in thread
* [SOLVED] Re: LOG target with MARK?
2013-02-12 7:36 ` Andrew Beverley
@ 2013-02-12 9:44 ` Aaron Lewis
0 siblings, 0 replies; 3+ messages in thread
From: Aaron Lewis @ 2013-02-12 9:44 UTC (permalink / raw)
To: Andrew Beverley; +Cc: Aaron Lewis, netfilter mailing list
Hi Andrew,
On 07:36 Tue 12 Feb , Andrew Beverley wrote:
> On Tue, 2013-02-12 at 11:02 +0800, Aaron Lewis wrote:
> > Hi,
> >
> > Looks like the LOG target doesn't output the mark of a packet?
> >
> > I checked -j LOG --help and there's no such option, so what should I do
> > to get the mark of each packet and print them?
>
> It will log marks on packets by default. If there is no mark then
> nothing will be printed; if there is, the value will be printed at the
> end of the logging line (eg MARK=0x64).
Ah, thanks I get it, I did some experiment, if MARK is not set, it won't
get printed.
Now it works.
>
> Andy
>
>
--
Best Regards,
Aaron Lewis - PGP: 0xDFE6C29E ( http://pgp.mit.edu/ )
Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-12 9:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-12 3:02 LOG target with MARK? Aaron Lewis
2013-02-12 7:36 ` Andrew Beverley
2013-02-12 9:44 ` [SOLVED] " Aaron Lewis
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.