From: "p. awa" <pawa@tormail.net>
To: netfilter@vger.kernel.org
Subject: Re: tag process's future sockets for iptables rules?
Date: Sun, 23 Oct 2011 17:18:17 +0000 [thread overview]
Message-ID: <1RI1gs-000H1O-OY@internal.tormail.net> (raw)
In-Reply-To: <alpine.LNX.2.01.1110222242100.17728@frira.zrqbmnf.qr>
> >| netfilter_add_tag("public-addresses-proxied-via-tor");
> >| netfilter_add_tag("internal-addresses-directly");
> >| netfilter_remove_tag("proxy-dns");
> >| execlp("wget", ...);
>
> A socket option, SO_MARK, for use with setsockopt/getsockopt.
but setsockopt is per socket. i'm looking for something that is
per process (and inherited by children - in the example, wget).
this is to replace what i do at the moment, namely
| setgid(123);
| execlp("wget", ...);
and
# iptables ... -m owner --gid-owner 123 ...
next prev parent reply other threads:[~2011-10-23 17:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-22 16:34 tag process's future sockets for iptables rules? p. awa
2011-10-22 20:43 ` Jan Engelhardt
2011-10-22 23:28 ` pawa
2011-10-23 17:18 ` p. awa [this message]
2011-10-23 19:20 ` Nikolay S.
-- strict thread matches above, loose matches on Subject: below --
2011-10-22 14:44 p. awa
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=1RI1gs-000H1O-OY@internal.tormail.net \
--to=pawa@tormail.net \
--cc=netfilter@vger.kernel.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