* [Sysadmins] автонастройка proxy у клиентов @ 2008-07-04 4:19 Vyacheslav Brunev 2008-07-04 5:24 ` Dmitry Afanasov ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: Vyacheslav Brunev @ 2008-07-04 4:19 UTC (permalink / raw) To: ALT Linux sysadmin discuss Доброго времени суток! У меня возникла необходимость раздавать настройки прокси ( Squid ) клиентам автоматически, поэтому хочу спросить у Вас уважаемое сообщество кто, как это реализовал, может ли Samba это делать? -- С уважением, Вячеслав. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Sysadmins] автонастройка proxy у клиентов 2008-07-04 4:19 [Sysadmins] автонастройка proxy у клиентов Vyacheslav Brunev @ 2008-07-04 5:24 ` Dmitry Afanasov 2008-07-04 5:44 ` Timur Batyrshin ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: Dmitry Afanasov @ 2008-07-04 5:24 UTC (permalink / raw) To: bv, ALT Linux sysadmin discuss > У меня возникла необходимость раздавать настройки прокси ( Squid ) клиентам > автоматически, поэтому хочу спросить у Вас уважаемое сообщество кто, как это > реализовал, может ли Samba это делать? http://technet.microsoft.com/en-us/library/cc713344.aspx http://en.wikipedia.org/wiki/Proxy_auto-config я использовал через DNS - содал wpad.domain.tld, положил файлик с javascript кодом. IE, firefox работали нормально. причем IE по дефолту. opera, konqueror просили прописать путь к скрипту вручную. DHCP метод у меня так и не получился -- С уважением Афанасов Дмитрий ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Sysadmins] автонастройка proxy у клиентов 2008-07-04 4:19 [Sysadmins] автонастройка proxy у клиентов Vyacheslav Brunev 2008-07-04 5:24 ` Dmitry Afanasov @ 2008-07-04 5:44 ` Timur Batyrshin 2008-07-04 6:33 ` Dmitriy Kruglikov 2008-07-04 9:32 ` Вадим Илларионов 3 siblings, 0 replies; 5+ messages in thread From: Timur Batyrshin @ 2008-07-04 5:44 UTC (permalink / raw) To: sysadmins [-- Attachment #1: Type: text/plain, Size: 1473 bytes --] On Fri, 4 Jul 2008 11:19:00 +0700 Vyacheslav Brunev wrote: > У меня возникла необходимость раздавать настройки прокси ( Squid ) > клиентам автоматически, поэтому хочу спросить у Вас уважаемое > сообщество кто, как это реализовал, может ли Samba это делать? Погугли насчет WPAD (технология такая, не софт). Вкратце -- при включенном "Автоматическом определении прокси" браузер на каждый http-запрос пытается сперва выполнить скрипт по адресу http://wpad/wpad.dat, который и отдает браузеру настройки прокси. Так помимо всего прочего можно сделать, чтобы для разных сайтов отдавались разные прокси/соединение происходило без прокси. Из замеченных глюков -- если почему-либо скрипт wpad не срабатывает или прокси не доступен -- в следующий раз это автоопределение перестает работать -- как в IE, так и в Мозилле до закрытия/открытия браузера по-моему.. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Sysadmins] автонастройка proxy у клиентов 2008-07-04 4:19 [Sysadmins] автонастройка proxy у клиентов Vyacheslav Brunev 2008-07-04 5:24 ` Dmitry Afanasov 2008-07-04 5:44 ` Timur Batyrshin @ 2008-07-04 6:33 ` Dmitriy Kruglikov 2008-07-04 9:32 ` Вадим Илларионов 3 siblings, 0 replies; 5+ messages in thread From: Dmitriy Kruglikov @ 2008-07-04 6:33 UTC (permalink / raw) To: bv, ALT Linux sysadmin discuss 4 июля 2008 г. 7:19 пользователь Vyacheslav Brunev написал: > Доброго времени суток! > > У меня возникла необходимость раздавать настройки прокси ( Squid ) клиентам > автоматически Цитата из некоторого хав-ту: +++ При загрузке MSIE 5.0 ищет хост wpad и если таковой нашёлся, то он пытается загрузить с него файл /wpad.dat, в котором ожидает увидеть всё ту же автоконфигурацию, написанную на JavaScript. Поэтому в DNS достаточно внести строку для wpad: www in a 192.168.1.1 wpad in cname www и MSIE 5.0 будет загружать автоконфигурацию по адресу http://192.168.1.1/wpad.dat Что же написать то в файле wpad.dat ? Да почти ничего, там просто JavaScript, которым можно для каждого сайта генерить свои прокси, что вообчем-то не плохо, когда у конторы несколько прокси. Вот мой файлик: /* Типа коментарии */ function FindProxyForURL(url,host) { return "PROXY proxy:3128"; } +++ И пример более навороченного wpad.dat function FindProxyForURL(url, host) { if (isInNet(host, "192.168.1.0", "255.255.255.0")) { return "DIRECT"; } if (isInNet(myIpAddress(), "192.168.3.0", "255.255.255.0") && ( url.substring(0, 6) == "https:" || url.substring(0, 5) == "http:" || url.substring(0, 4) == "ftp:"|| url.substring(0, 7) == "gopher:" ) ) { return "PROXY 192.168.3.254:3128"; } if ( isInNet(myIpAddress(), "192.168.1.0", "255.255.255.0") && ( url.substring(0, 6) == "https:" || url.substring(0, 5) == "http:" || url.substring(0, 4) == "ftp:"|| url.substring(0, 7) == "gopher:" ) ) { return "PROXY 192.168.1.254:3128"; } return "DIRECT"; } Если нужно больше, чем просто function FindProxyForURL(url,host) { return "PROXY proxy:3128"; } то гуглите ... -- Best regards, Dmitriy L. Kruglikov Dmitriy.Kruglikov_at_gmail_dot_com DKR6-RIPE DKR6-UANIC XMPP: Dmitriy.Kruglikov_at_gmail_dot_com ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Sysadmins] автонастройка proxy у клиентов 2008-07-04 4:19 [Sysadmins] автонастройка proxy у клиентов Vyacheslav Brunev ` (2 preceding siblings ...) 2008-07-04 6:33 ` Dmitriy Kruglikov @ 2008-07-04 9:32 ` Вадим Илларионов 3 siblings, 0 replies; 5+ messages in thread From: Вадим Илларионов @ 2008-07-04 9:32 UTC (permalink / raw) To: sysadmins Vyacheslav Brunev wrote: > У меня возникла необходимость раздавать настройки прокси ( Squid ) > клиентам автоматически, поэтому хочу спросить у Вас уважаемое сообщество > кто, как это реализовал, может ли Samba это делать? http://www.freeproxy.ru/ru/free_proxy/faq/wpad.htm _________________________________ С уважением, Вадим Илларионов системный администратор ООО "Новые Системы Телеком" UIN: 7899517 JID: master at usib dot irkps dot ru Телефоны: - рабочий +7 495 6414045+5885 - мобильный +7 916 3889337 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-07-04 9:32 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-07-04 4:19 [Sysadmins] автонастройка proxy у клиентов Vyacheslav Brunev 2008-07-04 5:24 ` Dmitry Afanasov 2008-07-04 5:44 ` Timur Batyrshin 2008-07-04 6:33 ` Dmitriy Kruglikov 2008-07-04 9:32 ` Вадим Илларионов
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