Feature #17
Add wpad support
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-squid | |||
Target version: | v6.4-beta2 | |||
Resolution: | NEEDINFO: | No |
Description
The wpad support is in e-smith-proxy package.
Use this option:
dhcp-option=252,http://192.168.1.1/local/wpad.dat
Related issues
Associated revisions
Add pad support. Refs #17
wpad templates refactor. Refs #17
wpad.conf: serve wpad.dat with special mime type. Refs #17
/etc/hosts template: change wpad fragmnet order. Refs #17
comps-ns64.xml.in: added nethserver-dnsmasq and nethserver-httpd to nethserver-web-proxy group. Refs #17
History
#1 Updated by Giacomo Sanchietti almost 10 years ago
- Priority changed from Normal to Low
#2 Updated by Davide Principi over 9 years ago
- Target version set to DEV2
#3 Updated by Davide Principi over 9 years ago
- Target version changed from DEV2 to DEV3
#4 Updated by Davide Principi over 9 years ago
- Target version changed from DEV3 to DEV4
#5 Updated by Davide Principi over 9 years ago
- Target version changed from DEV4 to DEV103
#6 Updated by Davide Principi over 9 years ago
- Start date changed from 03/28/2011 to 04/18/2012
Start date set to DEV4 release date
#7 Updated by Davide Principi over 9 years ago
- Target version changed from DEV103 to DEV104
#8 Updated by Davide Principi over 9 years ago
- Start date deleted (
04/18/2012)
#9 Updated by Davide Principi about 9 years ago
- Project changed from 9 to 52
This requires the wpad.dat file is available through HTTP
. Issue moved into project:nethserver-httpd.
See also http://users.telenet.be/mydotcom/library/network/pac.htm
#10 Updated by Davide Principi almost 9 years ago
- Target version changed from DEV104 to DEV133
#11 Updated by Davide Principi almost 9 years ago
- Target version changed from DEV133 to ~FUTURE
#12 Updated by Davide Principi over 8 years ago
- Project changed from 52 to NethServer 6
#14 Updated by Giacomo Sanchietti about 8 years ago
- Status changed from NEW to ON_QA
- Target version changed from ~FUTURE to v6.4-beta2
- % Done changed from 0 to 80
#16 Updated by Giacomo Sanchietti about 8 years ago
- Status changed from ON_QA to ON_DEV
- % Done changed from 80 to 30
Needs documentation.
#17 Updated by Giacomo Sanchietti about 8 years ago
- Assignee set to Giacomo Sanchietti
#18 Updated by Giacomo Sanchietti about 8 years ago
- Status changed from ON_DEV to MODIFIED
- % Done changed from 30 to 70
Implemented in nethserver-squid package.
#19 Updated by Giacomo Sanchietti about 8 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 70 to 80
- Install squid: yum --enablerepo=nethserver-testing install nethserver-squid
- Enable manual or authenticated proxy
- Use dhcp to configure a windows client and check it's using the proxy
#20 Updated by Davide Principi about 8 years ago
- Assignee deleted (
Giacomo Sanchietti)
ON_QA: Assignee reset
#21 Updated by Davide Principi about 8 years ago
- Assignee set to Davide Principi
#22 Updated by Davide Principi about 8 years ago
- Status changed from ON_QA to ON_DEV
- Assignee deleted (
Davide Principi) - Priority changed from Low to Normal
- % Done changed from 70 to 30
Verification FAILED
In /var/www/html/wpad.dat
function FindProxyForURL(url, host) { if (isPlainHostName(host)) return "DIRECT"; if (isInNet(host, "192.168.8.2", "255.255.255.0")) return "DIRECT"; if (isInNet(host, "127.0.0.1", "255.255.255.255")) return "DIRECT"; return "PROXY proxy.vboxnet0.tld:3128"; }
But proxy.vboxnet0.tld is not in /etc/hosts
.
The 25wpad
fragment must be evaluated before 20hostnames
. To fix it:
# mv /etc/e-smith/templates/etc/hosts/{25,02}wpad
RPMs:
nethserver-smartd-1.0.0-1.ns6.noarch nethserver-lightsquid-1.0.2-1.ns6.noarch nethserver-nethgui-1.2.2-1.ns6.noarch nethserver-backup-config-1.0.3-1.ns6.noarch nethserver-samba-1.3.6-1.ns6.noarch nethserver-httpd-admin-1.0.4-1.ns6.noarch nethserver-openssh-1.0.2-1.ns6.noarch nethserver-shorewall-1.0.0-1.ns6.noarch nethserver-lib-1.3.0-1.ns6.noarch nethserver-directory-1.2.2-1.ns6.noarch nethserver-antivirus-1.0.3-1.ns6.noarch nethserver-mail-common-1.2.1-1.ns6.noarch nethserver-php-1.1.0-1.ns6.noarch nethserver-ntp-1.0.4-1.ns6.noarch nethserver-httpd-2.2.1-1.ns6.noarch nethserver-firewall-base-1.0.3-1.ns6.noarch nethserver-yum-1.1.1-1.ns6.noarch nethserver-mail-server-1.4.4-1.ns6.noarch nethserver-hosts-1.0.4-1.ns6.noarch nethserver-grub-1.0.1-1.ns6.noarch nethserver-release-6.4-beta1.noarch nethserver-squid-1.0.2-1.ns6.noarch nethserver-base-1.4.0-1.ns6.noarch nethserver-mail-filter-1.1.1-1.ns6.noarch nethserver-dnsmasq-1.0.4-1.ns6.noarch
#23 Updated by Giacomo Sanchietti about 8 years ago
- Status changed from ON_DEV to MODIFIED
- % Done changed from 30 to 60
#24 Updated by Giacomo Sanchietti about 8 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
- nethserver-squid-1.0.3
- fix wpad fragment for /etc/hosts template
- change /etc/squid.conf ownership and permissions
#25 Updated by Davide Principi about 8 years ago
- Assignee set to Davide Principi
#26 Updated by Davide Principi about 8 years ago
- Status changed from ON_QA to ON_DEV
- Assignee deleted (
Davide Principi) - % Done changed from 70 to 30
Verification FAILED
nethserver-httpd
is missing - httpd is not running and wpad.dat cannot be retrieved# curl -L -v http://proxy.vboxnet0.tld/wpad.dat * About to connect() to proxy.vboxnet0.tld port 80 (#0) * Trying 192.168.8.2... Connection refused * couldn't connect to host * Closing connection #0 curl: (7) couldn't connect to host
- If
nethserver-dnsmasq
is installed afternethserver-squid
the /etc/hosts template is not expanded as expected: wpad and proxy hostnames are missing.
Note thatnethserver-dnsmasq-update
event sets the dns|role prop after /etc/hosts has been expanded bynethserver-hosts-update
event. So02wpad
fragment does not add wpad and proxy host aliases.
I think this issue should be fixed bynethserver-dnsmasq
that actually changes the dns|role prop...
#27 Updated by Giacomo Sanchietti about 8 years ago
- Status changed from ON_DEV to MODIFIED
- % Done changed from 30 to 60
nethserver-httpd
is missing - httpd is not running and wpad.dat cannot be retrieved [...]
It's the expected behavior: you do not need an httpd server (or dhcp server) to run squid.
We'll add nethserver-httpd and nethserver-dnsmasq as mandatory packages to nethserver-web-proxy group.
- If
nethserver-dnsmasq
is installed afternethserver-squid
the /etc/hosts template is not expanded as expected [...]
This should be a problem until the administrator make some changes to /etc/hosts using the web ui.
#28 Updated by Giacomo Sanchietti about 8 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
RPM not modified.
#29 Updated by Davide Principi about 8 years ago
- Status changed from ON_QA to VERIFIED
- % Done changed from 70 to 90
#30 Updated by Davide Principi about 8 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100
Moved to nethserver-updates repository