Re: Subject: Question about Option 252 for Web Proxy Auto-Discovery
"Parkin, Richard (R.)" <[email protected]>
| Newsgroups | gmane.network.dhcp.isc.dhcp-server |
|---|---|
| Message-ID | <CH0PR16MB442000AE5A4B146FE337396CBAD69@CH0PR16MB4420.namprd16.prod.outlook.com> |
Thanks for the responses; greatly appreciated! -- Rich Parkin Ford Motor Company DDI Planner (DNS, DHCP, IPAM) [Logo, company name Description automatically generated] Message: 2 Date: Fri, 10 Sep 2021 02:57:59 -0400 From: Bill Shirley <[email protected]> To: [email protected] Subject: Re: Question about Option 252 for Web Proxy Auto-Discovery Message-ID: <[email protected]> Content-Type: text/plain; charset="utf-8"; Format="flowed" # local proxy autodiscovery option local-pac-server??????????? code 252 = text; subnet 192.168.1.0 netmask 255.255.255.0 { ? option local-pac-server "https://clicktime.symantec.com/3BjUDn6pGfTTKCY2EBDGYuo7Vc?u=http%3A%2F%2Fwww.example.com%2Fwpad.dat"; . } Bill On 9/8/2021 12:30 PM, perl-list wrote: > I have no specific knowledge of option 252, but, generally speaking in the dhcp config file when defining a string value, it is usually in quotes. I would guess that to be the case with this as well. > > ----- Original Message ----- >> From: "Parkin, Richard (R.)" <[email protected]> >> To: "Users of ISC DHCP" <[email protected]> >> Sent: Wednesday, September 8, 2021 10:09:04 AM >> Subject: Question about Option 252 for Web Proxy Auto-Discovery >> Greetings! >> I have a question about configuring Option 252 for Web Proxy Auto-Discovery. >> Our IPAM allowed me to generate a configuration statement that resembles this: >> option 252 https://clicktime.symantec.com/35QjqzExopR4wQxNEviwD8k7Vc?u=http%3A%2F%2Fexample.com%2Fwpad.dat; >> What I am wondering is if the URL string needs to be quoted for this to work, >> like so: >> option 252 ?https://clicktime.symantec.com/3Qyf6x864yVqLFvbj9aYLDG7Vc?u=http%3A%2F%2Fexample.com%2Fwpad.dat%3F; >> I haven?t been able to find a definitive answer. Is it safer to assume the >> quotes are needed? >> Thanks! >> -- >> Rich Parkin >> Ford Motor Company >> DDI Planner (DNS, DHCP, IPAM) >> _______________________________________________ Message: 3 Date: Fri, 10 Sep 2021 19:20:41 +1000 From: Glenn Satchell <[email protected]> To: Users of ISC DHCP <[email protected]> Subject: Re: Question about Option 252 for Web Proxy Auto-Discovery Message-ID: <[email protected]> Content-Type: text/plain; charset=US-ASCII; format=flowed Hi Richard, The definitive answer is in the dhcp-options man page: REFERENCE: OPTION STATEMENTS The text data type specifies an NVT ASCII string, which must be enclosed in double quotes - for example, to specify a root-path option, the syntax would be option root-path "10.0.1.4:/var/tmp/rootfs"; and further down that same document TEXT option new-name code new-code = text ; An option whose type is text will encode an ASCII text string. For example: option sql-default-connection-name code 194 = text; option sql-default-connection-name "PRODZA"; regards, Glenn On 2021-09-10 16:57, Bill Shirley wrote: > # local proxy autodiscovery > option local-pac-server code 252 = text; > > subnet 192.168.1.0 netmask 255.255.255.0 { > option local-pac-server "https://clicktime.symantec.com/3BjUDn6pGfTTKCY2EBDGYuo7Vc?u=http%3A%2F%2Fwww.example.com%2Fwpad.dat"; > . > } > > Bill > > On 9/8/2021 12:30 PM, perl-list wrote: > > I have no specific knowledge of option 252, but, generally speaking in > the dhcp config file when defining a string value, it is usually in > quotes. I would guess that to be the case with this as well. > > ----- Original Message ----- > > From: "Parkin, Richard (R.)" <[email protected]> > To: "Users of ISC DHCP" <[email protected]> > Sent: Wednesday, September 8, 2021 10:09:04 AM > Subject: Question about Option 252 for Web Proxy Auto-Discovery > > Greetings! > > I have a question about configuring Option 252 for Web Proxy > Auto-Discovery. > > Our IPAM allowed me to generate a configuration statement that > resembles this: > > option 252 https://clicktime.symantec.com/35QjqzExopR4wQxNEviwD8k7Vc?u=http%3A%2F%2Fexample.com%2Fwpad.dat; > > What I am wondering is if the URL string needs to be quoted for this to > work, > like so: > > option 252 "https://clicktime.symantec.com/35QjqzExopR4wQxNEviwD8k7Vc?u=http%3A%2F%2Fexample.com%2Fwpad.dat"; > > I haven't been able to find a definitive answer. Is it safer to assume > the > quotes are needed? > > Thanks! > > -- > > Rich Parkin > > Ford Motor Company > > DDI Planner (DNS, DHCP, IPAM) > > _______________________________________________ _______________________________________________ ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. dhcp-users mailing list [email protected] https://lists.isc.org/mailman/listinfo/dhcp-users
image001.png
(image/png, 21.1 KB) - not displayed