From: Alexander Volkov <alt@vladregion.ru> To: ALT Linux Community <community@lists.altlinux.org> Subject: Re: [Comm] непонятки с прозрачным прокси (ALS4.0.1) Date: Wed, 15 Aug 2007 13:20:04 +0400 Message-ID: <20070815092002.GD16907@xeon.vladregion.ru> (raw) In-Reply-To: <46C2BCE3.9070004@gmail.com> On 2007-08-15 11:44:19 +0300, Motsyo Gennadi aka Drool wrote: MGaD> Alexander Volkov пишет: MGaD> >On 2007-08-14 20:51:09 +0300, Motsyo Gennadi aka Drool wrote: MGaD> >MGaD> Alexander Yereshenko пишет: MGaD> >MGaD> > В Sysadmins@ ответили: MGaD> >MGaD> > ============= MGaD> >MGaD> > В 4.0.1 Squid линейки 2.6, для него httpd_accel_* не нужны. MGaD> >MGaD> > Необходимо и достаточно MGaD> >MGaD> > MGaD> >MGaD> > http_port 3128 transparent MGaD> >MGaD> > MGaD> >MGaD> > ============= MGaD> >MGaD> > MGaD> >MGaD> > Проверено - заработало... MGaD> > MGaD> >MGaD> Проверено - не заработало. Что-то где-то еще. Можно в личку MGaD> >конфиг сквида? MGaD> >Как это не заработало? Все пашет. Правило в PREROUTING добавлено? MGaD> MGaD> Может что там накосячил? Но ведь остальное (почтовики etc) работают. MGaD> Скрипт в аттаче. GaD> echo -n "Starting NAT: " MGaD> iptables -t nat -A PREROUTING -p tcp -d 0/0 --dport www -i ppp0 -j DNAT --to 192.168.1.14:3128 \ MGaD> && iptables -t nat -A PREROUTING -p tcp -d 0/0 --dport www -i ppp0 -j DNAT --to 192.168.2.1:3128 \ Ну, обычно делается -j REDIRECT в случае локальной системы. У Вас что-то сильно сложнее? squid на localhost не висит? MGaD> && echo 1 > /proc/sys/net/ipv4/ip_forward \ MGaD> && iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth0 -j MASQUERADE \ MGaD> && success -- Regards, Alexander
next prev parent reply other threads:[~2007-08-15 9:20 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-08-14 8:43 Alexander Yereschenko 2007-08-14 15:59 ` Motsyo Gennadi aka Drool 2007-08-14 17:34 ` Grigory Batalov 2007-08-14 18:05 ` Motsyo Gennadi aka Drool 2007-08-14 17:35 ` Alexander Yereshenko 2007-08-14 17:51 ` Motsyo Gennadi aka Drool 2007-08-15 6:07 ` Alexander Volkov 2007-08-15 8:44 ` Motsyo Gennadi aka Drool 2007-08-15 9:20 ` Alexander Volkov [this message] 2007-08-15 9:33 ` Motsyo Gennadi aka Drool 2007-08-15 9:25 ` Alexander Yereschenko 2007-08-15 9:56 ` Motsyo Gennadi aka Drool 2007-08-15 10:14 ` Alexander Yereschenko
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=20070815092002.GD16907@xeon.vladregion.ru \ --to=alt@vladregion.ru \ --cc=community@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 Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git