From: Pavel <p2n@ya.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] iptables и цель ROUTE
Date: Mon, 11 Aug 2008 09:20:32 +0500
Message-ID: <g7oekq$fde$1@ger.gmane.org> (raw)
In-Reply-To: <489EFCF4.6090206@rambler.ru>
>> ping одна из таких - raw-сокет для отправки ICMP-пакета echo request
>> может создать только root (кратковременная процедура), а принять echo
>> reply (долговременная процедура - ее и видно в выводе ps) можно и с
>> пониженными привилегиями.
> Т.е. пакеты она должна посылать уже из-под обычного пользователя, так?
Насколько я понял, и создание и отправка ICMP может происходить
только от root'а.
А если посмотреть так:
> # iptables -t mangle -A OUTPUT -p icmp -m owner --uid-owner user -j MARK --set-mark 0xA
> # iptables -t mangle -A OUTPUT -p icmp -m owner --uid-owner root -j MARK --set-mark 0xB
>
> # iptables -t mangle -L OUTPUT -vn
>> Chain OUTPUT (policy ACCEPT 149K packets, 53M bytes)
>> pkts bytes target prot
>> 0 0 MARK icmp OWNER UID match 500 MARK set 0xa
>> 0 0 MARK icmp OWNER UID match 0 MARK set 0xb
>
> $ ping -c 3 ya.ru
>
> # iptables -t mangle -L OUTPUT -vn
>> Chain OUTPUT (policy ACCEPT 149K packets, 53M bytes)
>> pkts bytes target prot
>> 0 0 MARK icmp OWNER UID match 500 MARK set 0xa
>> 3 252 MARK icmp OWNER UID match 0 MARK set 0xb
Это не может дать однозначного ответа?
--
Best regards, Pavel
email/xmpp: p2n-at-ya-dot-ru
next prev parent reply other threads:[~2008-08-11 4:20 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-05 10:11 Olvin
2008-08-05 10:36 ` Serge
2008-08-05 11:08 ` Olvin
2008-08-05 12:04 ` Serge
2008-08-05 12:20 ` Olvin
2008-08-05 13:40 ` Alexander Vasiliev
2008-08-05 14:47 ` Olvin
2008-08-06 7:44 ` Pavel
2008-08-07 16:08 ` Olvin
2008-08-08 7:30 ` Pavel
2008-08-08 21:15 ` Olvin
2008-08-08 21:28 ` Yuri Bushmelev
2008-08-08 22:00 ` Olvin
2008-08-10 12:18 ` Pavel
2008-08-10 14:36 ` Olvin
2008-08-11 4:20 ` Pavel [this message]
2008-08-10 12:39 ` Pavel
2008-08-10 14:40 ` Olvin
2008-08-11 6:33 ` Pavel
2008-08-05 12:16 ` Alexander Vasiliev
2008-08-05 13:31 ` Olvin
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='g7oekq$fde$1@ger.gmane.org' \
--to=p2n@ya.ru \
--cc=sysadmins@lists.altlinux.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
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git