You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 14, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 14, 2020. It is now read-only.
Firefox won't go through orbot unless authorized as bypass browser #24
Ok, so I think this might be a new issue, although it seems reminiscent to my other.
Context
Device: Galaxy Tab 2 Wifi (GT-P3113)
Android v4.4.4 (CM-11 nightly p3110 build, most recent as of today)
orWall v0.17-beta
Firefox v31.0
orBot v14.0.7.1
Summary
Test browsers work as expected via orwall, routing through Tor when enabled, but Firefox doesn't. Surprisingly, Firefox seems to be routing through Tor when set as the bypass browser and authorized for the 5-min window.
To Reproduce
F-Droid installed as system app (to avoid need to auth unknown apk's)
All apps installed from F-Droid.
Configure "Firefox" for browser bypass, along with init script and other setup.
Restart.
Enable orwall for Firefox, default browser (system app), and Tint browser (random third party for testing; non-system app)
Restart.
All browsers work, showing Tor activity, except Firefox: standard "Server not found" error
Firefox works when authorized as the bypass browser via orwall button, as expected, BUT Tor activity is seen during this time.
I think I just found out one of the cause, the "bypass" rules in nat table isn't inserted, but appended… Meaning firefox indeed goes through Tor when you enabled it to bypass it.
I'll push a new patch today hopefully, and maybe a release in order to let you test it again. I'll check once more the iptables order, maybe there's something else.
That said: there's a filter on the TCP flags. Seeing this gists let me thing there's a problem how firefox sents stuff. There's shouldn't be any hit in the latest chain, as firefox should match only the line just above (table nat, chain output).
Hence, there's a weird thing. I'll have to dig it a bit more.
i may have had the same problem, but didnt do as much investigating as patcon. i was originally on either 0.14 or 0.15. i updated to 0.17 and would keep getting the new notice about applying the boot rules, even after rebooting many times, and trying things such as flushing iptables. however i think in my case, no app would work. i only tested firefox by bypassing it, and then it worked through tor, like it did with patcon. i downgraded to 0.16 and had the same problems. and on one of the versions, it wouldn't even save the changes i made to the app list in orwall. i'm now using 0.15 again and it's working fine mostly.
just so that you know: probably 0.18 will let firefox go out if selected as captive browser and allowed for the 5-minutes gracetime.
I'll check how it behaves normally, just have to install it.
@hxe the notice regarding reboot is managed as follow:
the init script puts a special chain named "witness", with a simple rule in it.
the check only controls the rule exists
Can you open a new issue with the information regarding orwall version, android version and iptables output (as listed on orwall.org, in the "get support" section) ? Would be great to keep some order in here, this would prevent oversights.
Sorry, for the delay! Just getting back from time away from computers :)
Upgraded to the following:
Firefox 36.0
Orbot 14.0.7.2
orWall 0.19-beta
Restarted device and then cleared FF cache and data via Android "Apps" config page. Disabled and enabled Firefox in orWall, just in case. Attempted to access Google with Firefox and got "Server not found" error immediately.
Fwiw, the new Orfox build is giving me the same issue, and I'm sure it works on my other device with just orbot and no orwall.
No worries -- this gives me time and an excuse to help myself figure it out anyhow. Just to confirm, you are using firefox and it's worked fine the whole time?
Yup, installed it on my nexus4, running CM11-20140804-SNAPSHOT-M9-mako (Android 4.4.4), with latest orwall version (though it's the test-built, I'm testing a new feature which doesn't seem to work exactly as expected… woops. But nat rules didn't change.).
And I get Firefox online. Through Tor. Without any bypass. I installed latest f-droid Firefox version.
Hm. Updated, but still not working. Realized I can still set the new Orfox beta to be the special browser app. It won't work normally, but will work when I use the authorize browser timer. So I guess that will suffice for now and I can start using orWall on this device again :)
Hmm. Apparently I did change something. Need to cleanup the code and push a new release. And maybe either renew my brain or reboot it.
0.20 should be out this weekend hopefully.
Works now in v0.20! There's still issue with Orfox needing browser authorization, but perhaps that's expected. I'll create a new issue though. Thanks @cjeanneret!
Activity
cjeanneret commentedon Aug 24, 2014
hello!
hey, that's a bug report :)
I think I just found out one of the cause, the "bypass" rules in nat table isn't inserted, but appended… Meaning firefox indeed goes through Tor when you enabled it to bypass it.
I'll push a new patch today hopefully, and maybe a release in order to let you test it again. I'll check once more the iptables order, maybe there's something else.
That said: there's a filter on the TCP flags. Seeing this gists let me thing there's a problem how firefox sents stuff. There's shouldn't be any hit in the latest chain, as firefox should match only the line just above (table nat, chain output).
Hence, there's a weird thing. I'll have to dig it a bit more.
Insert instead of append for Captive Portal rules
hxe commentedon Aug 24, 2014
i may have had the same problem, but didnt do as much investigating as patcon. i was originally on either 0.14 or 0.15. i updated to 0.17 and would keep getting the new notice about applying the boot rules, even after rebooting many times, and trying things such as flushing iptables. however i think in my case, no app would work. i only tested firefox by bypassing it, and then it worked through tor, like it did with patcon. i downgraded to 0.16 and had the same problems. and on one of the versions, it wouldn't even save the changes i made to the app list in orwall. i'm now using 0.15 again and it's working fine mostly.
patcon commentedon Aug 24, 2014
@cjeanneret oh, and just so you're not chasing any false leads. I did briefly have the guardian project's proxymob add-on installed, (via http://tinyurl.com/getproxymob).
https://github.com/guardianproject/ProxyMob/blob/master/defaults/preferences/prefs.js
I might try to become more knowledgeable about iptables, and I honestly don't have a clue how to read the output that I pasted :)
And @hxe, while it sounds like there might be other things at play, I might give 0.15 a shot, just a sanity check. thanks!
cjeanneret commentedon Aug 24, 2014
just so that you know: probably 0.18 will let firefox go out if selected as captive browser and allowed for the 5-minutes gracetime.
I'll check how it behaves normally, just have to install it.
cjeanneret commentedon Aug 24, 2014
@hxe the notice regarding reboot is managed as follow:
Can you open a new issue with the information regarding orwall version, android version and iptables output (as listed on orwall.org, in the "get support" section) ? Would be great to keep some order in here, this would prevent oversights.
cjeanneret commentedon Aug 25, 2014
maybe due to:
http://forum.xda-developers.com/showpost.php?s=bfb428de97ef545d2c9b2736550a6271&p=44722857&postcount=4
I removed per-UID dns thing as I thought it was using root UID (0) by default…
patcon commentedon Aug 25, 2014
So it's working fine for you @cjeanneret? Both nexus 4 and 7?
cjeanneret commentedon Aug 25, 2014
not tested with firefox yet (using Lucid Browser, faster/smaller browser). I'll give it a try this week.
Changes to be done:
First step is obviously the easiest, and shouldn't create other problems. The second one maybe a bit longer in order to test that on different ROM.
Added back per-app DNS redirection and authorization
cjeanneret commentedon Aug 31, 2014
0.19-beta is out, it should fix this. Can you test, @patcon ?
DNS uses UDP, not TCP…
patcon commentedon Sep 7, 2014
Sorry, for the delay! Just getting back from time away from computers :)
Upgraded to the following:
Firefox 36.0
Orbot 14.0.7.2
orWall 0.19-beta
Restarted device and then cleared FF cache and data via Android "Apps" config page. Disabled and enabled Firefox in orWall, just in case. Attempted to access Google with Firefox and got "Server not found" error immediately.
Fwiw, the new Orfox build is giving me the same issue, and I'm sure it works on my other device with just orbot and no orwall.
Here are the iptables outputs:
https://gist.github.com/patcon/6f3a6819ebd89b14eee0
cjeanneret commentedon Sep 11, 2014
hmm… weird. Will give it another try, but I first want to solve #32 -.-'. Seems other things are trivial compared to tethering ;).
patcon commentedon Sep 11, 2014
No worries -- this gives me time and an excuse to help myself figure it out anyhow. Just to confirm, you are using firefox and it's worked fine the whole time?
cjeanneret commentedon Sep 12, 2014
Yup, installed it on my nexus4, running CM11-20140804-SNAPSHOT-M9-mako (Android 4.4.4), with latest orwall version (though it's the test-built, I'm testing a new feature which doesn't seem to work exactly as expected… woops. But nat rules didn't change.).
And I get Firefox online. Through Tor. Without any bypass. I installed latest f-droid Firefox version.
patcon commentedon Sep 12, 2014
Ah, I'm on M6-mako now, as I wanted to follow the Mission Impossible tutorial from the Tor blog. But I'll update now and see if it solves itself :)
cjeanneret commentedon Sep 12, 2014
Well, not sure if having an outdated OS realy complies with security at all ;) . pretty sure Mike would agree with this statement.
Lemme know if it works otb with an up-to-date version (well, ok, snapshots are maybe not the best for secirity either ;) )
patcon commentedon Sep 12, 2014
Hm. Updated, but still not working. Realized I can still set the new Orfox beta to be the special browser app. It won't work normally, but will work when I use the authorize browser timer. So I guess that will suffice for now and I can start using orWall on this device again :)
cjeanneret commentedon Sep 13, 2014
Hmm. Apparently I did change something. Need to cleanup the code and push a new release. And maybe either renew my brain or reboot it.
0.20 should be out this weekend hopefully.
hxe commentedon Sep 13, 2014
i dont know if we had the same issue, but firefox is now working for me in 0.20
patcon commentedon Sep 14, 2014
Works now in v0.20! There's still issue with Orfox needing browser authorization, but perhaps that's expected. I'll create a new issue though. Thanks @cjeanneret!