Skip to content
This repository was archived by the owner on Aug 14, 2020. It is now read-only.
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

Closed

Description

@patcon

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

  1. F-Droid installed as system app (to avoid need to auth unknown apk's)
  2. All apps installed from F-Droid.
  3. Configure "Firefox" for browser bypass, along with init script and other setup.
  4. Restart.
  5. Enable orwall for Firefox, default browser (system app), and Tint browser (random third party for testing; non-system app)
  6. Restart.
  7. All browsers work, showing Tor activity, except Firefox: standard "Server not found" error
  8. Firefox works when authorized as the bypass browser via orwall button, as expected, BUT Tor activity is seen during this time.

iptables Output

Activity

  1. cjeanneret commented on Aug 24, 2014

    @cjeanneret
    Contributor

    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.

  2. hxe commented on Aug 24, 2014

    @hxe

    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.

  3. patcon commented on Aug 24, 2014

    @patcon
    Author

    @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!

  4. cjeanneret commented on Aug 24, 2014

    @cjeanneret
    Contributor

    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.

  5. cjeanneret commented on Aug 24, 2014

    @cjeanneret
    Contributor

    @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.

  6. patcon commented on Aug 25, 2014

    @patcon
    Author

    So it's working fine for you @cjeanneret? Both nexus 4 and 7?

  7. cjeanneret commented on Aug 25, 2014

    @cjeanneret
    Contributor

    not tested with firefox yet (using Lucid Browser, faster/smaller browser). I'll give it a try this week.
    Changes to be done:

    • re-enable per-UID DNS rules
    • find a way to get the per-UID DNS query back on Android (see xda thread)

    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.

  8. cjeanneret commented on Aug 31, 2014

    @cjeanneret
    Contributor

    0.19-beta is out, it should fix this. Can you test, @patcon ?

  9. added a commit that references this issue on Sep 1, 2014
  10. patcon commented on Sep 7, 2014

    @patcon
    Author

    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

  11. cjeanneret commented on Sep 11, 2014

    @cjeanneret
    Contributor

    hmm… weird. Will give it another try, but I first want to solve #32 -.-'. Seems other things are trivial compared to tethering ;).

  12. patcon commented on Sep 11, 2014

    @patcon
    Author

    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?

  13. cjeanneret commented on Sep 12, 2014

    @cjeanneret
    Contributor

    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.

  14. patcon commented on Sep 12, 2014

    @patcon
    Author

    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 :)

  15. cjeanneret commented on Sep 12, 2014

    @cjeanneret
    Contributor

    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 ;) )

  16. patcon commented on Sep 12, 2014

    @patcon
    Author

    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 :)

  17. cjeanneret commented on Sep 13, 2014

    @cjeanneret
    Contributor

    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.

  18. hxe commented on Sep 13, 2014

    @hxe

    i dont know if we had the same issue, but firefox is now working for me in 0.20

  19. patcon commented on Sep 14, 2014

    @patcon
    Author

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions