From: Joel Newkirk <netfilter@newkirk.us>
To: Craig Packard <cpackard@zoominternet.net>
Cc: netfilter@lists.netfilter.org
Subject: Re: UDP DNAT help
Date: Tue, 8 Apr 2003 11:35:52 -0400 [thread overview]
Message-ID: <200304081135.52432.netfilter@newkirk.us> (raw)
In-Reply-To: <Pine.LNX.4.44.0303110642100.29619-100000@linux1>
On Tuesday 11 March 2003 06:44 am, Craig Packard wrote:
> > Sounds like a SNAT rule that isn't tied down to just the external
> > interface. Including packet traces and sniffs is potentially
> > useful, but more useful would be any SNAT and DNAT rules themselves.
>
> I've already posted my PREROUTING chain to the list. And in the same
I've not been able to find it. I found a request for it on Friday from
Ralf Spenneberg but if you posted it to the list I didn't receive that
post. (not hard to believe - I seem to get a good percentage of this
list several days late - not just messages awaiting moderator approval)
> message you replied to was several packet captures further down the
> message. There is no SNATing anywhere--on any interface. I would be
> thankful for any help or info on more places to look to troubleshoot.
Sorry, I was aware of the captures in that message, but snipped them from
my reply for brevity.
My suggestion for further troubleshooting at this point would be to set
up a few LOG rules temporarily to try to track the progress of the
packets through netfilter.
iptables -t nat -I PREROUTING 1 -p udp -s 192.168.25.11 -j LOG
--log-prefix "NatPreS:"
iptables -I FORWARD 1 -p udp -s 192.168.25.11 -j LOG --log-prefix "FwdS:"
iptables -t nat -I POSTROUTING 1 -p udp -d 192.168.25.11 -j LOG
--log-prefix NatPostD:"
etc. If you have loaded (or can load) mangle table, put the log rules in
mangle PREROUTING and POSTROUTING instead of nat. Log both directions,
matching the specific source/dest port if possible, else matching
source/dest IP of both the local and remote boxes.
Make a few connection attempts (then remove the log rules) and then
examine the log entries to see what IPs appear where. This may help
narrow down what packets are being modified at which stage. By
examining packet IDs, src/dest IPs, and the log-prefix to identify which
chain logged the entry, you should get a fairly good picture of what is
taking place within netfilter regarding these connections.
> - Craig
j
prev parent reply other threads:[~2003-04-08 15:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-08 2:31 UDP DNAT help Craig Packard
2003-04-08 4:40 ` Joel Newkirk
2003-03-11 11:44 ` Craig Packard
2003-04-08 15:35 ` Joel Newkirk [this message]
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=200304081135.52432.netfilter@newkirk.us \
--to=netfilter@newkirk.us \
--cc=cpackard@zoominternet.net \
--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