View Single Post
Posts: 5 | Thanked: 1 time | Joined on Jun 2013 @ Finland
#391
I have problems to get proxy settings work.

GUI offers ability to define proxy server settings but all traffic is still going directly.

I installed connman-test package to trace this a little bit more:

Connection settings:
Code:
[root@jolla test]# ./get-services
[ /net/connman/service/wifi_5056a8012e86_4c4550574c414e32_managed_wep ]
    Strength = 76
    Nameservers = [ 192.168.147.1 ]
    State = ready
    Provider = { }
    Type = wifi
    Security = [ wep ]
    AutoConnect = true
    Immutable = false
    Proxy = { Excludes=[ localhost ] Method=manual Servers=[ http://192.168.147.1:8080 https://192.168.147.1:8080 ] }
    IPv4.Configuration = { Method=dhcp }
    IPv6.Configuration = { Method=auto Privacy=disabled }
    Name = LEPWLAN2
    Favorite = true
    Timeservers = dbus.Array([dbus.String(u'192.168.147.1'), dbus.String(u'ntp.oh5lep.fi'), dbus.String(u'0.pool.ntp.org'), dbus.String(u'1.pool.ntp.org'), dbus.String(u'2.pool.ntp.org'), dbus.String(u'3.pool.ntp.org')], signature=dbus.Signature('s'), variant_level=1)
    Domains = [ oh5lep.fi ]
    Ethernet = { Interface=wlan0 MTU=1500 Method=auto Address=50:56:A8:01:2E:86 }
    Nameservers.Configuration = [ ]
    Proxy.Configuration = { Excludes=[ localhost ] Method=manual Servers=[ http://192.168.147.1:8080 https://192.168.147.1:8080 ] }
    Domains.Configuration = [ ]
    Timeservers.Configuration = dbus.Array([], signature=dbus.Signature('s'), variant_level=1)
    IPv4 = { Netmask=255.255.255.0 Gateway=192.168.147.1 Method=dhcp Address=192.168.147.16 }
    IPv6 = { }
And testing with wget:

Code:
[root@jolla test]# wget www.jolla.com
--2014-01-27 12:39:39--  http://www.jolla.com/
Resolving www.jolla.com (www.jolla.com)... 54.194.33.146
Connecting to www.jolla.com (www.jolla.com)|54.194.33.146|:80... ^C
[root@jolla test]#
First I though it's because of wrong format and tried to set proxy manually without 'http://' prefix. Prefix is permanent on GUI so I used set-proxy command instead:

Code:
[root@jolla test]# ./set-proxy wifi_5056a8012e86_4c4550574c414e32_managed_wep manual servers=192.168.147.1:8080
[root@jolla test]# ./get-services 
[ /net/connman/service/wifi_5056a8012e86_4c4550574c414e32_managed_wep ]
    Strength = 65
    Nameservers = [ 192.168.147.1 ]
    State = ready
    Provider = { }
    Type = wifi
    Security = [ wep ]
    AutoConnect = true
    Immutable = false
    Proxy = { Excludes=[ localhost ] Method=manual Servers=[ 192.168.147.1:8080 ] }
    IPv4.Configuration = { Method=dhcp }
    IPv6.Configuration = { Method=auto Privacy=disabled }
    Name = LEPWLAN2
    Favorite = true
    Timeservers = dbus.Array([dbus.String(u'192.168.147.1'), dbus.String(u'ntp.oh5lep.fi'), dbus.String(u'0.pool.ntp.org'), dbus.String(u'1.pool.ntp.org'), dbus.String(u'2.pool.ntp.org'), dbus.String(u'3.pool.ntp.org')], signature=dbus.Signature('s'), variant_level=1)
    Domains = [ oh5lep.fi ]
    Ethernet = { Interface=wlan0 MTU=1500 Method=auto Address=50:56:A8:01:2E:86 }
    Nameservers.Configuration = [ ]
    Proxy.Configuration = { Excludes=[ localhost ] Method=manual Servers=[ 192.168.147.1:8080 ] }
    Domains.Configuration = [ ]
    Timeservers.Configuration = dbus.Array([], signature=dbus.Signature('s'), variant_level=1)
    IPv4 = { Netmask=255.255.255.0 Gateway=192.168.147.1 Method=dhcp Address=192.168.147.16 }
    IPv6 = { }
But no lucky:

Code:
[root@jolla test]# wget www.jolla.com
--2014-01-27 12:49:14--  http://www.jolla.com/
Resolving www.jolla.com (www.jolla.com)... 54.194.33.146
Connecting to www.jolla.com (www.jolla.com)|54.194.33.146|:80... ^C
[root@jolla test]#
Anyhow if defining http_proxy:

Code:
[root@jolla test]# export http_proxy=192.168.147.1:8080
And testing with wget it works!

Code:
[root@jolla test]# wget www.jolla.com
--2014-01-27 12:50:36--  http://www.jolla.com/
Connecting to 192.168.147.1:8080... connected.
Proxy request sent, awaiting response... 301 Moved Permanently
Location: http://jolla.com/ [following]
--2014-01-27 12:50:37--  http://jolla.com/
Reusing existing connection to 192.168.147.1:8080.
Proxy request sent, awaiting response... 200 OK
Length: 28183 (28K) [text/html]
Saving to: ‘index.html’

Last edited by WilbertS; 2014-01-27 at 10:56. Reason: Quote replaces with code tag