From: Ben Russo <ben@umialumni.com>
To: netfilter@lists.netfilter.org
Subject: redirect doesn't seem to work?
Date: 04 Nov 2002 23:41:08 -0500 [thread overview]
Message-ID: <1036471268.2912.7.camel@localhost.localdomain> (raw)
Have a UNIX server. User wants to write programs to receive SNMPTraps.
I *thought* I could redirect incomming traffic to port 162 to a high
port, (like 4162) where the user could have his programs receive the
messages with no special privelages?
Anyway, a completely normal box, no special firewalling rules....
The only rule I create is:
iptables -t nat -A POSTROUTING -p udp -m udp --dport 162 -j REDIRECT
--to-ports 4162
Now, the user starts his program that binds to udp port 4162 ( I can see
it with "netstat -nap" ) but he doesn't see any packets coming in.
I run tcpdump -n | grep snmptrap and I see packets coming from the
network to the server on udp port 162, and the server sending back icmp
unreachable packets back to the sources??
Why doesn't the redirect work?
-Ben.
next reply other threads:[~2002-11-05 4:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-05 4:41 Ben Russo [this message]
2002-11-09 12:57 ` redirect doesn't seem to work? Antony Stone
2002-11-09 13:16 ` Robert P. J. Day
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=1036471268.2912.7.camel@localhost.localdomain \
--to=ben@umialumni.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