Re: Proxy auto-configuration

2009-11-28 Thread Sascha Silbe

On Sat, Nov 28, 2009 at 02:35:17PM +0100, Martin Langhoff wrote:


IIRC, Pia had found that if she got dhcpd to serve the PAC file URL
(in WPAD-style), then the browser on the XO would DTRT. Now, I cannot
recall if she was using Browse.xo or one of the Firefox-on-Sugar
incarnations.
Interesting, so I'm at least on the right track. Did she do any kind of 
configuration on the XO? Because I can't see Iceweasel sending out any 
packet (other than directly to the target host), so it cannot possibly 
auto-discover anything... :-/


CU Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/

signature.asc
Description: Digital signature
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Proxy auto-configuration

2009-11-28 Thread Sascha Silbe

On Sat, Nov 28, 2009 at 03:41:22PM +0100, Martin Langhoff wrote:


- The DHCP payload must contain a url to the PAC file - this is the
WPAD protocol, and what Pia was playing with.
Sure, but for that the browser must send a DHCP request, which it 
doesn't seem to do. Or does Fedora contain any support for that in the 
DHCP client (for Debian, I don't see it)?



I did find an old email that indicated that she was using Firefox, not
Browse.xo.
OK, so it should work with Iceweasel. Either it got disabled (upstream? 
Debian?) or there was some kind of configuration (dhclient? Firefox?) to 
enable it...


CU Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/

signature.asc
Description: Digital signature
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Proxy auto-configuration

2009-11-28 Thread Tomeu Vizoso
On Sat, Nov 28, 2009 at 14:54, Sascha Silbe
sascha-ml-ui-sugar-olpc-de...@silbe.org wrote:
 On Sat, Nov 28, 2009 at 03:41:22PM +0100, Martin Langhoff wrote:

 - The DHCP payload must contain a url to the PAC file - this is the
 WPAD protocol, and what Pia was playing with.

 Sure, but for that the browser must send a DHCP request, which it doesn't
 seem to do. Or does Fedora contain any support for that in the DHCP client
 (for Debian, I don't see it)?

 I did find an old email that indicated that she was using Firefox, not
 Browse.xo.

 OK, so it should work with Iceweasel. Either it got disabled (upstream?
 Debian?) or there was some kind of configuration (dhclient? Firefox?) to
 enable it...

From these links, looks like Mozilla uses WPAD through DNS (and not DHCP):

http://mxr.mozilla.org/mozilla-central/search?string=wpadfind=findi=filter=^[^\0]*%24hitlimit=tree=mozilla-central

http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol

Regards,

Tomeu

-- 
«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David
Farning
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Proxy auto-configuration

2009-11-28 Thread Sascha Silbe

On Sat, Nov 28, 2009 at 03:47:17PM +, Tomeu Vizoso wrote:

OK, so it should work with Iceweasel. Either it got disabled 
(upstream?
Debian?) or there was some kind of configuration (dhclient? Firefox?) 
to

enable it...
 From these links, looks like Mozilla uses WPAD through DNS (and not 
DHCP):


http://mxr.mozilla.org/mozilla-central/search?string=wpadfind=findi=filter=^[^\0]*%24hitlimit=tree=mozilla-central
Thanks, that got me going. Iceweasel needs to be explicitly configured 
to Auto-detect proxy settings for this network. Default is Use system 
proxy settings, whatever that means on Linux - the help document only 
talks about proxy settings configured for you [sic] operating system 
which might be about everything (environment variables, some Mozilla 
config in /etc, Gnome settings, KDE settings, ...).
I guess there's some Javascript magic I could throw somewhere in /etc to 
tell Iceweasel to do that by default...


CU Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/

signature.asc
Description: Digital signature
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel