From: Ben Russo <ben@umialumni.com>
To: netfilter@lists.netfilter.org
Subject: snmptraps incomming on udp port 162 REDIRECT to 4162 not working?
Date: 05 Nov 2002 11:16:29 -0500 [thread overview]
Message-ID: <1036512998.8715.44.camel@ben.mis.tnsi.com> (raw)
Hi,
I have a server that performs many functions on a testing/lab network.
I don't really need a firewall, but I do want to restrict users from
having root access.
Sometimes users want to be able to bind a process to a low port like say
an snmptrap receiver to port 162, but the process needs privelages to do
that.
So I had the bright idea of using iptables to redirect the incomming
packets on the low port to a high port that the users program can bind
to without problems.
I tried the following:
iptables -t nat -p udp -m udp --dport 162 -j REDIRECT --to-ports 4162
The user started his program that bound to udp port 4162 (I could see it
while using netstat -nap ). But his program didn't receive anything?
tcpdump -n | egrep "snmptrap|162
did show incomming snmptraps to port 162, but "icmp unreachable" replies
were sent back?
Any ideas on how to make this work?
Thanks in advance,
-Ben.
next reply other threads:[~2002-11-05 16:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-05 16:16 Ben Russo [this message]
2002-11-05 17:43 ` snmptraps incomming on udp port 162 REDIRECT to 4162 not working? Joel Newkirk
2002-11-05 18:29 ` Antony Stone
2002-11-05 19:13 ` Ben Russo
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=1036512998.8715.44.camel@ben.mis.tnsi.com \
--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