From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: How to debug nfmarking
Date: Mon, 15 Nov 2004 13:03:38 -0500 [thread overview]
Message-ID: <1100541817.3591.10.camel@hubcap.ljm.dom> (raw)
In-Reply-To: <1100540726.2796.23.camel@laserite>
On Mon, 2004-11-15 at 12:45, Eduardo Fernández wrote:
> Hi all,
>
> i'm trying to debug packet marking like this:
>
> iptables -t mangle -A PREROUTING -p icmp -j MARK --set-mark 0x1
> (...)
>
> But I don't know how to check if the packets are really being marked.
> ip_conntrack shows all packets with mark=0, and that's not possible.
> I've tried logging with netfilter but I don't know which option shows
> the nfmark in the log. Any ideas?
>
> Thank you very much in advance.
>
> Eduardo
add a log rule that matches on the mark:
iptables -t mangle -A PREROUTING -p icmp -j MARK --set-mark 1
iptables -t mangle -A PREROUTING -m mark --mark 1 \
-j LOG --log-prefix "FW MARK 1: "
-j
--
"Beer. Now there's a temporary solution."
--The Simpsons
next prev parent reply other threads:[~2004-11-15 18:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-15 17:45 How to debug nfmarking Eduardo Fernández
2004-11-15 18:03 ` Jason Opperisano [this message]
2004-11-15 20:44 ` Eric Leblond
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1100541817.3591.10.camel@hubcap.ljm.dom \
--to=opie@817west.com \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox