Closed Bug 829766 Opened 9 years ago Closed 4 years ago

socks proxy support for boot2gecko

Categories

(Firefox OS Graveyard :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: freddy, Unassigned)

References

Details

There is currently no way to proxy all outgoing internet traffic (be it Wifi or Data).
This is not only useful for debugging but could possibly help people using Tor on Firefox OS. Bear in mind that there are already ways to use tor on other mobile platforms.
For the record, you can simply enable proxy use by modifying the prefs file if you have access.
I am going to do a write-up on that and post the URL once it's finished.
Frederik: could you please elaborate on your solution?
I did a write up of security testing mechanisms for Firefox OS, the second part (link below) covers setting up proxying (you don't have to do the HTTPS interception thing of course)

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Security/Intercepting_traffic_using_a_proxy

Doing these kind of changes requires activating remote debugging in the developer options (quite hidden). You should disable this after your changes on a real phone since this leaves your phone and its data less secured
Thank you. I actually found that after I commented. Unfortunately it does not seem to have any effect on my phone (keon). Neither manually changing prefs.js and 'adb push'-ing it nor putting the settings in gaia/build/preferences.js before building gaia appears to work.
I'm also trying to get this working (I want to send all HTTP traffic from the browser through a proxy on another computer on the WiFi network, for debugging). 

I've set the prefs
user_pref("network.proxy.http", "192.168.1.8");
user_pref("network.proxy.http_port", 8888);
user_pref("network.proxy.type", 1);

Both in the file /system/b2g/defaults/pref/user.js and in /data/b2g/mozilla/[profile-folder]/prefs.js, pushed both to device through adb, re-booted, even verified that they were pushed correctly by pulling down fresh copies - (in prefs.js the settings were even re-ordered, so the browser has read, sorted and written them) - no success. Traffic goes directly to the network, nothing is logged by the proxy, although the exact same settings in about:config on desktop works.
(In reply to Frederik Braun [:freddyb] from comment #3)
> I did a write up of security testing mechanisms for Firefox OS, the second
> part (link below) covers setting up proxying (you don't have to do the HTTPS
> interception thing of course)
> 
> https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Security/
> Intercepting_traffic_using_a_proxy

I wonder if we shouldn't put a note in that document or at least link back to this bug... I just spent about an hour confused why these directions had no effect.
Blocks: 984425
Blocks: 983265
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.