From: Adam Sampson <azz@us-lot.org>
To: "Sven Köhler" <skoehler@upb.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: allow process or user to listen on priviledged ports?
Date: Wed, 24 Dec 2003 21:34:39 +0000 [thread overview]
Message-ID: <y2allp1c32o.fsf@cartman.at.fivegeeks.net> (raw)
In-Reply-To: <bscg1m$1eg$1@sea.gmane.org> ( =?iso-8859-15?q?Sven_K=F6hler's_message_of?= "Wed, 24 Dec 2003 17:43:09 +0100")
Sven Köhler <skoehler@upb.de> writes:
> So is there any machanism to bind that permission (to listen on a
> priviledged tcp-port) to a specific user or a specific process?
Even if you can't find a way to do this, you can cheat: use an
iptables DNAT rule to translate connections to the desired port into
connections to a non-privileged port upon which your daemon is
actually listening. Something like:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 1.2.3.4:8080
--
Adam Sampson <azz@us-lot.org> <http://offog.org/>
next prev parent reply other threads:[~2003-12-24 21:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-24 16:43 Sven Köhler
2003-12-24 17:02 ` Michael Buesch
2003-12-24 17:23 ` Olaf Dietsche
2003-12-24 21:34 ` Adam Sampson [this message]
2003-12-24 21:59 ` Thomas Zehetbauer
2003-12-24 22:00 ` Eric
2003-12-25 10:45 ` Nick Craig-Wood
2003-12-25 12:18 ` Sven Köhler
2003-12-25 17:46 ` Sven Köhler
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=y2allp1c32o.fsf@cartman.at.fivegeeks.net \
--to=azz@us-lot.org \
--cc=linux-kernel@vger.kernel.org \
--cc=skoehler@upb.de \
/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
all inboxes | Powered by JetHome®