← Back to team overview

ubuntu-phone team mailing list archive

Re: Proxy settings, system wide or for browser?

 

Hello,

On 06/05/15 16:30, Roberto Resoli wrote:
> Il 06/05/2015 15:55, Olivier Tilloy ha scritto:
>>>> Does anybody have an idea how to configure the browser to use the system
>>>> proxy settings?
>> There’s currently no way to do that. Feel free to file a bug at
>> https://bugs.launchpad.net/webbrowser-app/+filebug to request addition
>> of such a feature.
> Definitly, proxy configuratione is a must have ...
>
> rob
>
I think I made the bowser app work with the proxy. I was actually trying
to enable command line apps like wget to work via proxy and added to
/etc/environment

http_proxy=http://192.168.112.1:800/
https_proxy=http://192.168.112.1:800/
ftp_proxy=http://192.168.112.1:800/
no_proxy="localhost,127.0.0.1,192.168.0.0/16"
HTTP_PROXY=http://192.168.112.1:800/
HTTPS_PROXY=http://192.168.112.1:800/
FTP_PROXY=http://192.168.112.1:800/
NO_PROXY="localhost,127.0.0.1,192.168.0.0/16"

After that, I was able to run wget for the first time successfully:

phablet@ubuntu-phablet:~$ wget www.spiegel.de
--2015-05-07 10:09:33--  http://www.spiegel.de/
Connecting to 192.168.112.1:800... connected.
Proxy request sent, awaiting response... 200 OK
Length: 233514 (228K) [text/html]
Saving to: ‘index.html’

100%[======================================>] 233,514      400KB/s   in
0.6s  

2015-05-07 10:09:34 (400 KB/s) - ‘index.html’ saved [233514/233514]

By coincidence, I found out that the browser app also seems to pick this
configuration up successfully and the browser started to work with the
proxy.

I have now three different types of proxy configurations on my phone:

1) via gsettings, see my earlier e-mails - not sure if this has
currently an effect on any application
2) via /etc/environment for certain command line applications and
seemingly the browser
3) via 95proxies in /etc/apt/apt.conf.d/ for apt

I am now testing if other apps actually up one of those configuration
types. "Shorts" (the RSS app) for example seems not to work still.

Regards,

M.


Follow ups

References