ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Andrei Lomov <lomov@math.nsc.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] отключить юзера от внешней сети
Date: Mon, 06 Apr 2009 23:36:03 +0700
Message-ID: <grdb01$tjg$1@ger.gmane.org> (raw)
In-Reply-To: <e12fd2db0904060911l37ac73fy50c2822d3ca85516@mail.gmail.com>

Eugene Ostapets wrote:

> 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, как минимум... 

Ага, понял ошибку. 
Как сделать, пока не понял.
man iptables трудновато читается. 

> И вопрос... Эту строчку вы где прописывали?
Это разве принципиально?
/etc/rc.d/rc.local 

/etc/rc5.d/S99local -> ../rc.d/rc.local

-- 
Всего доброго,
А.Л.




  reply	other threads:[~2009-04-06 16:36 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
2009-04-06 16:36   ` Andrei Lomov [this message]
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='grdb01$tjg$1@ger.gmane.org' \
    --to=lomov@math.nsc.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