Go Back   maemo.org - Talk > Talk > Brainstorm
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #1  
Old 2009-10-14, 10:47
bigbrovar's Avatar
bigbrovar bigbrovar is offline
 
Join Date: Sep 2008
Location: Abuja, Nigeria
Posts: 143
Thanks!: 130
Thanked 75 Times in 30 Posts
Send a message via MSN to bigbrovar Send a message via Yahoo to bigbrovar Send a message via Skype™ to bigbrovar
Default [Proposal pending] Make Internet Aware Application Support Network Proxy

I currently own the Nokia N810 and found out that beside the Browser, Feed reader, and the Internet Radio app. No other Internet aware applications on diablo supports network proxy. Even the default IM application only works if you are using a direct Internet connection and will not work if you are working behind a network proxy. The OS its self allows for the user to setup a system wide proxy as part of setting up a connection profile. But most Internet aware 3rd party applications dont use it (or have embedded proxy support)

The situation is very different on my Nokia E71 every applications (including 3rd party) work using the system wide proxy settings.

It would be really cool if 3rd party application are developed to use the system wide proxy or embedded their own proxy support

Last edited by qgil; 2009-10-23 at 08:00.
Reply With Quote
  #2  
Old 2009-10-21, 11:19
qgil's Avatar
qgil qgil is offline
 
Join Date: Jul 2007
Location: Mountain View (CA, USA)
Posts: 3,105
Thanks!: 2,316
Thanked 11,088 Times in 1,998 Posts
Default Re: Brainstorm: Make Internet Aware Application Support Network Proxy

Please use http://maemo.org/community/brainstorm/ to formulate your proposals and potential solutions to implement them. Thanks!
Reply With Quote
The Following User Says Thank You to qgil For This Useful Post:
  #3  
Old 2009-10-21, 12:41
sjgadsby sjgadsby is offline
 
Join Date: Mar 2007
Location: Pennsylvania, USA
Posts: 5,335
Thanks!: 8,588
Thanked 8,187 Times in 2,906 Posts
Default Re: Brainstorm: Make Internet Aware Application Support Network Proxy

Thread moved to Brainstorm forum.
Reply With Quote
  #4  
Old 2009-10-21, 16:06
allnameswereout's Avatar
allnameswereout allnameswereout is offline
 
Join Date: Jul 2008
Location: Netherlands
Posts: 3,397
Thanks!: 1,762
Thanked 1,212 Times in 748 Posts
Default Re: Brainstorm: Make Internet Aware Application Support Network Proxy

Example workaround: use IPT with POSTROUTING to redirect traffic to any port 80 to 127.0.0.1 port 8080 where your proxy server runs.
__________________
Goosfraba! All text written by allnameswereout is public domain unless stated otherwise. Thank you for sharing your output!
Reply With Quote
  #5  
Old 2009-10-21, 17:04
Jaffa's Avatar
Jaffa Jaffa is offline
 
Join Date: Mar 2008
Location: UK
Posts: 2,535
Thanks!: 3,635
Thanked 6,681 Times in 1,632 Posts
Send a message via MSN to Jaffa
Default Re: Brainstorm: Make Internet Aware Application Support Network Proxy

Why is this a suitable solution for Brainstorm? Surely it's a bug in any application which doesn't support the proxy - certainly the built in ones, and probably third party ones!

Setting the proxy for a connection should expose http_proxy correctly, this should be used by the standard Linux libraries in the absence of a better system configuration API for proxies.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Reply With Quote
The Following User Says Thank You to Jaffa For This Useful Post:
  #6  
Old 2009-10-22, 08:48
TA-t3 TA-t3 is offline
 
Join Date: Nov 2006
Posts: 3,841
Thanks!: 655
Thanked 1,079 Times in 626 Posts
Default Re: Brainstorm: Make Internet Aware Application Support Network Proxy

Any application using libcurl, and many do, will automatically honour the http_proxy environment variable (which is what is set by that option). And this is common for other libraries and applications too, including the 'wget' command line tool, the Konqueror browser and other browsers (mozilla-derivates). So yes, I'm with Jaffa on this one.

(Of course, there are also internet-aware applications that are not talking a protocol that could be proxy'ed this way. You can't proxy Skype through the kind of proxy that you can specify with http_proxy or ftp_proxy, for example. You may redirect them through a VPN though.)
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
Reply With Quote
The Following User Says Thank You to TA-t3 For This Useful Post:
  #7  
Old 2009-10-22, 14:51
lma lma is offline
 
Join Date: Nov 2007
Posts: 2,802
Thanks!: 2,844
Thanked 4,491 Times in 1,616 Posts
Default Re: Brainstorm: Make Internet Aware Application Support Network Proxy

Quote:
Originally Posted by Jaffa View Post
Setting the proxy for a connection should expose http_proxy correctly, this should be used by the standard Linux libraries in the absence of a better system configuration API for proxies.
GConf is the right way to do it IMHO (although almost nothing seems to get it right, see bug 3783 and its dependencies). Environment variables can't be changed externally during an app's execution lifetime, so the apps can't notice proxy changes when a different network connection is activated for example.
Reply With Quote
The Following User Says Thank You to lma For This Useful Post:
  #8  
Old 2009-10-22, 15:39
TA-t3 TA-t3 is offline
 
Join Date: Nov 2006
Posts: 3,841
Thanks!: 655
Thanked 1,079 Times in 626 Posts
Default Re: Brainstorm: Make Internet Aware Application Support Network Proxy

Good point. It could be handled by using a transparent proxy instead, i.e. that the device runs IPTABLES and (http, ftp..) traffic is redirected to a proxy. iptables could then presumably be manipulated via GConf+helper app.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
Reply With Quote
  #9  
Old 2009-10-22, 15:48
lma lma is offline
 
Join Date: Nov 2007
Posts: 2,802
Thanks!: 2,844
Thanked 4,491 Times in 1,616 Posts
Default Re: Brainstorm: Make Internet Aware Application Support Network Proxy

A transparent proxy would be a very limited solution, as it would only work for HTTP to port 80. People serve web pages, RSS feeds, media streams etc on all sort of ports, and transparently proxying HTTPS is of course out of the question.
Reply With Quote
  #10  
Old 2009-10-22, 16:13
TA-t3 TA-t3 is offline
 
Join Date: Nov 2006
Posts: 3,841
Thanks!: 655
Thanked 1,079 Times in 626 Posts
Default Re: Brainstorm: Make Internet Aware Application Support Network Proxy

No, it's not limited to port 80. It's equally easy to have iptables forwarding any port. But it may not be the optimal solution still. Of course, updating any and every application to handle a change of proxy is possible, but that sounds like a lot of work and there'll always be leftovers. That's why I'm thinking along lines where you fiddle with the network itself instead (for example, starting a VPN is a way of transparently direct traffic elsewhere, although not involving a (filtering/caching) proxy).
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:58.