ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] отключить юзера от внешней сети
@ 2009-04-06 16:06 Andrei Lomov
  2009-04-06 16:11 ` Eugene Ostapets
  0 siblings, 1 reply; 9+ messages in thread
From: Andrei Lomov @ 2009-04-06 16:06 UTC (permalink / raw)
  To: sysadmins

Есть локальная сеть, шлюз для выхода наружу 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 получил полный доступ
ко всем адресам, и локальным и внешним.

Подскажите, что не так

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




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-04-07 16:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-06 16:06 [Sysadmins] отключить юзера от внешней сети Andrei Lomov
2009-04-06 16:11 ` Eugene Ostapets
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

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