From: Andrei Lomov <lomov@math.nsc.ru> To: sysadmins@lists.altlinux.org Subject: [Sysadmins] отключить юзера от внешней сети Date: Mon, 06 Apr 2009 23:06:35 +0700 Message-ID: <grd98o$ndl$1@ger.gmane.org> (raw) Есть локальная сеть, шлюз для выхода наружу 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 получил полный доступ ко всем адресам, и локальным и внешним. Подскажите, что не так -- Всего доброго, А.Л.
next reply other threads:[~2009-04-06 16:06 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-04-06 16:06 Andrei Lomov [this message] 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
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='grd98o$ndl$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