From: Eugene Ostapets <eostapets@gmail.com>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] отключить юзера от внешней сети
Date: Mon, 6 Apr 2009 19:11:29 +0300
Message-ID: <e12fd2db0904060911l37ac73fy50c2822d3ca85516@mail.gmail.com> (raw)
In-Reply-To: <grd98o$ndl$1@ger.gmane.org>
2009/4/6 Andrei Lomov <lomov math.nsc.ru>:
> Есть локальная сеть, шлюз для выхода наружу 192.168.0.1,
> требуется запретить юзеру uid 503 доступ наружу через шлюз,
> с возможностью ходить только по локалке.
>
> Написал строчку в rc.local:
>
> /sbin/iptables -m owner -I OUTPUT \
> -o eth0 -d 192.168.0.1 \
> --uid-owner 503 -j DROP
>
> Юзер uid 503 получил полный доступ
> ко всем адресам, и локальным и внешним.
>
> Подскажите, что не так
У пакетов, идущих наружу адрес не 192.168.0.1, как минимум... И
вопрос... Эту строчку вы где прописывали?
--
С уважением,
Евгений Остапец
uin: 23747217
jid: eugene_ostapets@jabber.ru
next prev parent reply other threads:[~2009-04-06 16:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-06 16:06 Andrei Lomov
2009-04-06 16:11 ` Eugene Ostapets [this message]
2009-04-06 16:36 ` Andrei Lomov
2009-04-06 19:10 ` Vyatcheslav Perevalov
2009-04-06 19:15 ` Vyatcheslav Perevalov
2009-04-07 7:57 ` Andrei Lomov
2009-04-07 8:33 ` Andrei Lomov
2009-04-07 9:58 ` Ivan Fedorov
2009-04-07 16:27 ` Andrei Lomov
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=e12fd2db0904060911l37ac73fy50c2822d3ca85516@mail.gmail.com \
--to=eostapets@gmail.com \
--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