From: "Vyacheslav A. Brunev" <bv@gres.tomske.elektra.ru> To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org> Subject: [Sysadmins] Вопрос по Squid + PPTP туннель. Date: Wed, 5 Mar 2008 15:59:26 +0600 Message-ID: <200803051559.26247.bv@gres.tomske.elektra.ru> (raw) Доброго времени суток уважаемые! Подскажите как Squid-у вежливо объяснить, что работать нужно на одном IP, а выпускать авторизовавшихся клиентов через другой IP (ppp0). Есть сервер с двумя интерфейсами и PPTP туннелем: eth0 - 82.110.110.110/24 (к ISP т.е. реальная адресация, но "внешка" закрыта) gw eth0=82.110.110.1 eth1 - 172.27.1.0/24 (LAN т.е. "фэйковая" сеть); ppp0 - 10.10.10.210/32 (туннель к другому провайдеру уже с внешкой НО! в 6 раз медленней). На этом сервере есть DHCP, Squid, iptables... Внутри LAN пользователи получают настройки сети автоматически (DHCP). Нужно чтобы Сквид работал на eth0, а после авторизации выпускал уже через ppp0. Соответственно те кто не авторизировался (или вообще не знает о такой возможности) из LAN продолжали работать через шлюз eth0. Сразу оговорюсь, что вариант пускать всех через PPP0 и разруливать всех с помощью самого Squid не подходит т.к. в туннеле PPTP скорость в 4-6 раз медленней чем через eth0 и работать тем кому по долгу службы не нужна "внешка" становиться совсем невозможно. Внешка нужна для "серфинга", почты, бухгалтерии (банк-клиенты) и конечно же ICQ :) Вывод ifconfig: eth0 Link encap:Ethernet HWaddr 00:0D:45:47:3F:66 inet addr:82.110.110.110 Bcast:82.110.110.255 Mask:255.255.255.0 inet6 addr: fe80::20d:88ff:fe4e:3f45/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:41434691 errors:0 dropped:0 overruns:0 frame:0 TX packets:19995481 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:819168296 (781.2 Mb) TX bytes:2675702125 (2551.7 Mb) Interrupt:11 Base address:0xa000 eth1 Link encap:Ethernet HWaddr 00:03:21:9B:3C:76 inet addr:172.27.1.1 Bcast:172.27.1.255 Mask:255.255.255.0 inet6 addr: fe80::203:47ff:fe9b:6c76/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:18418576 errors:0 dropped:0 overruns:170 frame:170 TX packets:28431934 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2647241331 (2524.6 Mb) TX bytes:2823498391 (2692.6 Mb) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:24 errors:0 dropped:0 overruns:0 frame:0 TX packets:24 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1688 (1.6 Kb) TX bytes:1688 (1.6 Kb) ppp0 Link encap:Point-to-Point Protocol inet addr:10.10.10.210 P-t-P:10.0.0.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1440 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:42 (42.0 b) TX bytes:48 (48.0 b) Вывод route -n: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref UseIface 10.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 202.29.88.250 82.110.110.1 255.255.255.255 UGH 0 0 0 eth0 172.27.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 82.110.110.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 82.110.110.1 0.0.0.0 UG 0 0 0 eth0 P.S. Пробовал в конфиге Squid-а указывать: #/etc/squid/squid.conf http_port 82.110.110.110:3128 .... .... acl proxy_users proxy_auth REQUIRED tcp_outgoing_address 10.10.10.210 proxy_users http_access allow proxy_users http_access deny all .... Авторизация проходит нормально, но интернета нет никакого даже при полностью выключенном iptables :( -- С уважением, Вячеслав.
next reply other threads:[~2008-03-05 9:59 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-03-05 9:59 Vyacheslav A. Brunev [this message] 2008-03-05 18:01 ` Gosha 2008-03-06 2:28 ` Vyacheslav A. Brunev 2008-03-06 8:20 ` Vyacheslav A. Brunev 2008-03-06 10:36 ` Dmitriy Shadrinov 2008-03-06 10:55 ` Dmitriy Shadrinov 2008-03-07 3:25 ` Vyacheslav A. Brunev 2008-03-07 6:53 ` Dmitriy Shadrinov 2008-03-07 7:04 ` Serg Rychka
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=200803051559.26247.bv@gres.tomske.elektra.ru \ --to=bv@gres.tomske.elektra.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