From: Vadim Gusev <kopilo4ka@gmail.com> To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org> Subject: Re: [Sysadmins] iptables, -j MARK и iproute2 Date: Wed, 16 Aug 2006 13:29:36 +0400 Message-ID: <200608161329.36534.kopilo4ka@gmail.com> (raw) In-Reply-To: <44CCE515.9070709@rambler.ru> > Я пробовал > iptables -t mangle -A OUTPUT \ > -m owner --uid-owner 500 \ > -j MARK --set-mark 1 > ip route add all via 5.6.7.9 dev eth1 table 100 > ip rule add fwmark 1 table 100 > ip route flush cache > В документе > file:/usr/share/doc/alt-docs/master/ch06s05.html#distrib.setup.network.fire >wall Есть схема, из которой видно, что решение о маршрутизации принимается > ещё до того, как отработает моё правило. Т.е. первая команда бесполезна. > > Что делать? Надо различать именно по UID локального пользователя. Я маркировал в выходной цепочке, не -t mangle, а основной (filter), все пучком.
next prev parent reply other threads:[~2006-08-16 9:29 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-07-30 16:57 Olvin 2006-08-16 9:29 ` Vadim Gusev [this message] 2006-08-16 9:42 ` Vadim Gusev 2006-08-16 19:08 ` 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=200608161329.36534.kopilo4ka@gmail.com \ --to=kopilo4ka@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