From: "Шенцев Алексей Владимирович" <ashen@nsrz.ru> To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org> Subject: Re: [Sysadmins] прозрачный прокси и несколько локальных подсеток Date: Mon, 10 Jul 2006 13:58:20 +0400 Message-ID: <200607101358.20730.ashen@nsrz.ru> (raw) In-Reply-To: <44B21FC6.9020303@altlinux.ru> В сообщении от 10 июля 2006 13:37 Anton Gorlov написал(a): > Шенцев Алексей Владимирович пишет: > > В сообщении от 10 июля 2006 13:13 Anton Gorlov написал(a): > >> # iptables -t NAT -A PREROUTING -d ! адрес_самого_сервера \ > >> -i внутренний_сетевой_интерфейс -p tcp -m tcp --dport 80 \ > >> -j REDIRECT --to-ports 3128 > > > > Не адрес самой подсетки ... :) И несколько правил для каждой подсетки. > > э.. не понял.. Что значит не адресс самой подсетки? Ты пишешь "-d ! адрес_самого_сервера", а надо "-d ! адрес_самой_подсети / маска_самой_подсети" ... :) > > и как должны правила выглядеть получается... > бо если я тут сделаю скажем -d ! 192.168.1.0/24 то для всех остальных > подсеток оно уже завернётся. iptables -t nat -A PREROUTIG -s ip_адрес_смотрящий_в_подсеть1 -i интерфейс_смотрящий_в_саму_подсеть -d ! адрес_самой_подсети / маска_самой_подсети -p m tcp --dport 80 -j REDIRECT --to-ports 3128 -- С уважением Шенцев Алексей Владимирович. E-mail: ashen@nsrz.ru ICQ: 271053845
next prev parent reply other threads:[~2006-07-10 9:58 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-07-10 9:13 Anton Gorlov 2006-07-10 9:24 ` Шенцев Алексей Владимирович 2006-07-10 9:37 ` Anton Gorlov 2006-07-10 9:58 ` Шенцев Алексей Владимирович [this message] 2006-07-10 10:15 ` Anton Gorlov 2006-07-10 10:51 ` Шенцев Алексей Владимирович 2006-07-10 11:01 ` Anton Gorlov 2006-07-10 9:55 ` Dank Bagryantsev
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=200607101358.20730.ashen@nsrz.ru \ --to=ashen@nsrz.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