LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Squid Proxy Server on Ubuntu and WPAD - Proxy Auto Detection (https://www.linuxquestions.org/questions/linux-networking-3/squid-proxy-server-on-ubuntu-and-wpad-proxy-auto-detection-849394/)

cheesewizz 12-09-2010 08:23 PM

Squid Proxy Server on Ubuntu and WPAD - Proxy Auto Detection
 
Hi

Currently my DHCP Server is working
now
what i want to have is auto detection of squid proxy in any browser

but I still got an error in my dhcp server when I restart it.

My Config:
# DHCP configuration generated by Firestarter
ddns-update-style interim;
ignore client-updates;

subnet 192.168.50.0 netmask 255.255.255.0 {
option routers 192.168.50.1;
option subnet-mask 255.255.255.0;
# option domain-name-servers 192.168.50.88, 210.14.32.21, 210.14.32.22;
option domain-name "local.dns.com";
# option wpad-url code 252 = text;
# option wpad-url "http://192.168.50.101/wpad.dat";
# option custom-proxy-server code 1 = proxy;
# option local-pac-server code 252 = text;
# option local-pac-server "http://192.168.50.101/wpad.dat";
option custom-proxy-server "http://192.168.50.101/wpad.dat";
option ip-forwarding off;
default-lease-time 21600;
max-lease-time 43200;
}


Errors:
root@firewall-desktop:~# /etc/init.d/dhcp3-server restart
dhcpd self-test failed. Please fix the config file.
The error was:
Internet Systems Consortium DHCP Server V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/etc/dhcp3/dhcpd.conf line 15: unknown option dhcp.custom-proxy-server
option custom-proxy-server "http://192.168.50.101/wpad.dat"
^
Configuration file errors encountered -- exiting
root@firewall-desktop:~#



please help


thanks

acid_kewpie 12-10-2010 02:49 AM

unrelated to networking. Moved to Linux - Newbie.

You've not defined what that option means, unlike the "wpad-url" option, which is 252, text. I'm sure you don't need that option, as you're already using option 252 elsewhere. it doesn't matter what the options are called, just what number they have, so only define it once.


All times are GMT -5. The time now is 08:40 PM.