ukanth / afwall

AFWall+ (Android Firewall +) - iptables based firewall for Android
GNU General Public License v3.0
2.71k stars 446 forks source link

Tethering + Orbot #940

Open vpr2k1 opened 5 years ago

vpr2k1 commented 5 years ago

Hello Ukanth

I try to use wifi Tethering and afw + Orbot at the same time, notebook connects to android via wifi, afw white list checkboxes settled a right way.

Override DNS ( for DNS change, actually i can use tethering with afw only when i have reconfigured DNS to Google or Open DNS and write them on Network Adapter DNS settings) At android all works great, all trafic pass trought Orbot, when Orbot is down - packets is rejected/droped, all works great

But when i try to use tethering with Orbot, it doesnt work, best of i already achieved - it's a possibilty use internet on PC via wifi tethering with working AFW WITHOUT passing traffic trought orbot. I don't know why it's happen. When i try to set Orbot checkbox on tethering - now, on 3.1.0 version, it set correct, without "Error applying iptables rules" like before. But still no result

Orbot option - "Open proxy on all interfaces" is ON

I suppose it's a great, useful feature to use proxyfication via Orbot and tethering, and many people will appreciate it

screenshot_2019-01-28-13-16-25-692_org torproject android screenshot_2019-01-28-12-26-38-438_dev ukanth ufirewall screenshot_2019-01-28-12-22-41-812_dev ukanth ufirewall screenshot_2019-01-28-12-22-28-012_dev ukanth ufirewall

Jookia commented 5 years ago

Does Orbot use iptables for the tethering? If so it would conflict with AFWall.

shiftyshady commented 5 years ago

AFAIK, no, not any more. Orbot can work as a traditional Android vpn, or it can also be a socks proxy that other apps can be set up to connect to (e.g.: Orfox)

I wonder... what the heck does the Tor checkbox do? Is it documented somewhere?

OP, I think the way to torify local phone apps through Tor while having a hotspot is to leave Tor in NON-VPN move and use a AFWall script to redirect traffic of the apps you want torified to tor. I am stil trying to find a script that works

Jookia commented 5 years ago

The Tor checkbox sends all of the application's allowed traffic through Tor

vpr2k1 commented 5 years ago

OP, I think the way to torify local phone apps through Tor while having a hotspot is to leave Tor in NON-VPN move and use a AFWall script to redirect traffic of the apps you want torified to tor. I am stil trying to find a script that works

I was trying to find some, but no result, and i have no sufficient skills for do it myself, but like i say in first post I suppose it's a great, useful feature to use proxyfication via Orbot and tethering together, something like relocatable proxy hot-spot) i think it will be nice

shiftyshady commented 5 years ago

The Tor checkbox sends all of the application's allowed traffic through Tor

Yes!, I tested the tor checkbox on another phone and I can see that it works, even when hotspot is enabled.

Edit: On my main phone the Tor checkbox only works if I allow "(Any app) - Same as selecting all apps", does this mean it is a DNS problem?.

@vpr2k1 does the Tor checkbox works for you if you allow "(Any app) - Same as selecting all apps"?

vpr2k1 commented 5 years ago

@shiftyshady Yes, tor works fine with Any app checkbox, and actually i don't have any problem with magisk, startup scripts and other feature.. I can't get how it's regard to issue?

Malsasa commented 4 years ago

I also find same issue as I cannot get connected to Tor Network on laptop (check.torproject.org says "Sorry") while connected both via Wifi Hotspot and USB Tethering to my phone. I have checked "Open proxies on all interfaces" so I expect my tethered laptop to automatically (transparently) connected to internet over Tor. On my Android phone, I use Orbot 16.1.2 from F-Droid. Is there anything lacking in my report? I wish soon I can run "Tor Tethering" for my laptop. Thanks.