From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: providing partial access to iptables for non root user
Date: Mon, 21 Feb 2005 09:29:17 -0500 [thread overview]
Message-ID: <1108996157.5516.14.camel@hubcap.ljm.dom> (raw)
In-Reply-To: <4219C6F1.2070500@juergens.name>
On Mon, 2005-02-21 at 06:33, Michael Jürgens wrote:
> Hi,
>
> I´m looking for a solution to provide a non root user write access to a
> chain.
>
> In this special case I have to provide the a mechanism to block some ip
> adresses to connect to http.
> But this should be done by a non root user. The non root user should not
> change any other rule.
>
> Any ideas?
use sudo?
Host_Alias LOCALHOST = thishostname
User_Alias U_HTTP = youruser
Cmnd_Alias C_HTTP = /sbin/iptables -A blockhttp -s * -j DROP
U_HTTP LOCALHOST = C_HTTP
...or if is this is scripted:
U_HTTP LOCALHOST = NOPASSWD: C_HTTP
obviously--there's opportunity for abuse here--but it's the best i've
come up with. if you front-end this with a script, it will allow you to
scrub/check/validate the input much more extensively (which is what i
actually do).
-j
--
"Oh look at me! I'm making people happy! I'm the magical man from
Happyland, in a gumdrop house on Lollipop Lane!"
--The Simpsons
next prev parent reply other threads:[~2005-02-21 14:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-21 11:33 providing partial access to iptables for non root user Michael Jürgens
2005-02-21 13:38 ` Chris Brenton
2005-02-21 14:29 ` Jason Opperisano [this message]
2005-02-23 22:38 ` 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=1108996157.5516.14.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