ashishpnd7 / sandrop

Automatically exported from code.google.com/p/sandrop
0 stars 0 forks source link

WhatsApp is not working with SandroProxy. #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Investigate if it is possible to make it work at least on rooted devices.

Original issue reported on code.google.com by supp.san...@gmail.com on 30 Jul 2013 at 1:49

GoogleCodeExporter commented 9 years ago
Because app do not respect proxy settings all traffic should be redirected with 
iptables. 
This is done on APP tab. Check HTTP and HTTPS checkbox for WhatsApp. 
Then also enable Settings->Transparent Proxy.
Stop/Start SandroProxy to enable new settings.

Additional rule must be also forced from shell after SandroProxy is running:
iptables -A sandroproxy -t nat -p tcp --dport 5222 -j REDIRECT --to-port 8010

Original comment by supp.san...@gmail.com on 30 Jul 2013 at 4:19

GoogleCodeExporter commented 9 years ago
It looks like it works even without additional rule for 5222
iptables -t nat -A sandroproxy -p tcp --dport 5222 -j REDIRECT --to-port 8010

Original comment by supp.san...@gmail.com on 21 Aug 2013 at 10:13

GoogleCodeExporter commented 9 years ago

Original comment by supp.san...@gmail.com on 26 Sep 2013 at 6:04

GoogleCodeExporter commented 9 years ago
where do we have to put  the iptables redirection command ... can't understand 
which shell are we talking about!

Original comment by lakhbirs...@gmail.com on 18 Jan 2014 at 4:05

GoogleCodeExporter commented 9 years ago
No need that you do any iptables in current version by hand.
They are done when you select extra rules as is on this picture.
http://code.google.com/p/sandrop/issues/detail?id=99#c3
You can see what is done in log tab. 
Or you can click Info action on menu. It will show you 
iptables -L
iptables -t nat -L

Original comment by supp.san...@gmail.com on 18 Jan 2014 at 5:35

GoogleCodeExporter commented 9 years ago
thanks for replying ... i updated to version 1.5.95 . whatsapp was working 
without downloads of pictures and videos otherwise fine and playstore didnt 
worked at all. Anyway prior to this on ver 1.5.90 i was able to open play store 
using 5228 with ssl under extra rule in app tab, but there was no downloading( 
network error code: 500) and whatsapp  didnt worked at all.

Original comment by lakhbirs...@gmail.com on 18 Jan 2014 at 7:41

GoogleCodeExporter commented 9 years ago
5228, 5222 are now remapped to 443 by default. 
I checked and servers provide the same services as they on 5228, 5222. 
This is convenient so no additional rules must be made on squid for example to 
pass through.
http://code.google.com/p/sandrop/issues/detail?id=86

There was nasty bug when android os proxy settings are used 
so there will be soon 1.96 on GooglePlay.

Let me know if any other problems occurs.

Original comment by supp.san...@gmail.com on 18 Jan 2014 at 7:59

GoogleCodeExporter commented 9 years ago
updated to version 1.5.96 and now everything works like charm. All apps working 
with downloads. Thanks :)

Original comment by lakhbirs...@gmail.com on 19 Jan 2014 at 7:21