From: Maxim Britov <maxim@office.modum.by>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] прозрачный прокси для себя самого
Date: Mon, 11 Jun 2007 12:03:06 +0300
Message-ID: <20070611120306.5b143cc3@maxim.office.modum.by> (raw)
In-Reply-To: <f4iu4k$ab4$1@sea.gmane.org>
On Mon, 11 Jun 2007 10:40:38 +0300
Artem Zolochevskiy wrote:
> Maxim Britov wrote:
>
> > On Sun, 10 Jun 2007 15:09:58 +0300
> > Artem Zolochevskiy wrote:
> >
> >> Вадим Илларионов wrote:
> >>
> >> > iptables -t nat -A PREROUTING -p tcp -i lo -d ! localhost --dport www \
> >> > -j REDIRECT --to-port squid
> >>
> >> Если не ошибаюсь, PREROUTING НЕ фигурирует при прохождении пакетов от
> >> локальных процессов
> >>
> >> Так, что ... решения похоже нет.
> >>
> >
> > -t nat -A OUTPUT
> >
>
> Смотрите выше изначальное сообщение. В этом случае запросы на squid приходят
> с _внешнего_ ip, который ещё и _динамический_.
>
а что-то вроде такого извращения? :)
-t nat -A OUTPUT -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
-t nat -A POSTROUTING -o lo -p tcp -m tcp --dport 3128 -j SNAT --to-source 127.0.0.1
--
Maxim Britov
Modum.by (http://www.modum.by), system administrator
GnuPG KeyID 0x4580A6D66F3DB1FB xmpp:maxim@modum.by
GnuPG-ru Team (http://lists.gnupg.org/mailman/listinfo/gnupg-ru)
next prev parent reply other threads:[~2007-06-11 9:03 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-03 15:47 Artem Zolochevskiy
2007-06-03 19:29 ` Maxim Tyurin
2007-06-03 21:51 ` Artem Zolochevskiy
2007-06-04 5:09 ` Шенцев Алексей Владимирович
2007-06-04 20:09 ` Olvin
2007-06-06 13:58 ` Вадим Илларионов
2007-06-06 19:42 ` Artem Zolochevskiy
2007-06-10 9:50 ` Вадим Илларионов
2007-06-10 12:09 ` Artem Zolochevskiy
2007-06-11 7:32 ` Maxim Britov
2007-06-11 7:40 ` Artem Zolochevskiy
2007-06-11 9:03 ` Maxim Britov [this message]
2007-06-11 11:36 ` Artem Zolochevskiy
2007-06-11 18:56 ` Vitaly Lipatov
2007-06-13 6:58 ` Maxim Britov
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=20070611120306.5b143cc3@maxim.office.modum.by \
--to=maxim@office.modum.by \
--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