jetmc / sshtunnel

Automatically exported from code.google.com/p/sshtunnel
GNU General Public License v3.0
0 stars 0 forks source link

Global proxy not working in Android Lollipop 5.0 #193

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Attempt to connect using SSHTunnel in Android Lollipop using a Nexus 5. Stock 
ROM, rooted with SuperSU

What is the expected output? What do you see instead?
After successfully connecting with SSHTunnel, I opened the web browser and went 
to ifconfig.me to view my IP address. Expected IP address did not match SSH 
host, but was my current (routable) wifi address

What version of the product are you using? On what operating system?
1.5.6 on Android Lollipop 5.0 stock OTA ROM, rooted with SuperSU on a Nexus 5

Please provide any additional information below.
I/ActivityManager(  778): Start proc org.sshtunnel for activity 
org.sshtunnel/.SSHTunnel: pid=19960 uid=10090 gids={50090, 9997, 3003, 1028} 
abi=armeabi-v7a
I/ActivityManager(  778): START u0 {act=android.intent.action.MAIN 
cat=[android.intent.category.LAUNCHER] flg=0x10200000 
cmp=org.sshtunnel/.SSHTunnel (has extras)} from uid 10019 on display 0
D/SSHTunnel(19960): Service Start
D/SSHTunnel(19960): id=7, name=AlphaTunnel, host=xxx.yyy.org, port=22, 
local_port=1984, remote_address=127.0.0.1, remote_port=3128, isSocks=true
D/SSHTunnel(19960): Connecting start
D/SSHTunnel(19960): error: only position independent executables (PIE) are 
supported.
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -D OUTPUT -p udp 
--dport 54 -j REDIRECT --to 8154
D/SSHTunnel(19960): Host does not support 'Public key' authentication.
D/SSHTunnel(19960): Authenticate with password
E/SSHTunnel(19960): Forward Successful
D/SSHTunnel(19960): /data/data/org.sshtunnel/proxy_socks.sh start 1984
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -N SSHTUNNEL
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -F SSHTUNNEL
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -N SSHTUNNELDNS
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -F SSHTUNNELDNS
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -A SSHTUNNELDNS -p 
udp --dport 53 -j REDIRECT --to 39235
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -A OUTPUT -p udp 
-j SSHTUNNELDNS
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -A SSHTUNNEL -p 
tcp ! -d zzz.zzz.zzz.zzz --dport 80 -j REDIRECT --to 8123
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -A SSHTUNNEL -p 
tcp ! -d zzz.zzz.zzz.zzz --dport 443 -j REDIRECT --to 8123
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -A SSHTUNNEL -p 
tcp --dport 5228 -j REDIRECT --to 8123
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -A OUTPUT -p tcp 
-j SSHTUNNEL
D/SSHTunnel(19960): Connecting finish
E/SSHTunnel(19960): IO Exception
E/SSHTunnel(19960): java.net.SocketException: Socket closed
E/SSHTunnel(19960):     at libcore.io.Posix.recvfromBytes(Native Method)
E/SSHTunnel(19960):     at libcore.io.Posix.recvfrom(Posix.java:161)
E/SSHTunnel(19960):     at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:250)
E/SSHTunnel(19960):     at libcore.io.IoBridge.recvfrom(IoBridge.java:553)
E/SSHTunnel(19960):     at 
java.net.PlainDatagramSocketImpl.doRecv(PlainDatagramSocketImpl.java:163)
E/SSHTunnel(19960):     at 
java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:171)
E/SSHTunnel(19960):     at java.net.DatagramSocket.receive(DatagramSocket.java:274)
E/SSHTunnel(19960):     at org.sshtunnel.DNSServer.run(DNSServer.java:533)
E/SSHTunnel(19960):     at java.lang.Thread.run(Thread.java:818)
D/SSHTunnel(19960): DNS try to stop service
I/SSHTunnel(19960): DNS Stopped
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -F SSHTUNNEL
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -X SSHTUNNEL
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -F SSHTUNNELDNS
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -X SSHTUNNELDNS
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -D OUTPUT -p udp 
-j SSHTUNNELDNS
D/SSHTunnel(19960): /data/data/org.sshtunnel/iptables -t nat -D OUTPUT -p tcp 
-j SSHTUNNEL
D/SSHTunnel(19960): Connection Lost
D/SSHTunnel(19960): /data/data/org.sshtunnel/proxy_socks.sh stop

Original issue reported on code.google.com by peng...@gmail.com on 20 Nov 2014 at 4:23

GoogleCodeExporter commented 9 years ago
I'm also having this issue. Noticed that some other apps using iptables don't 
work properly too.

Original comment by va...@aleksensky.com on 15 Dec 2014 at 10:10

GoogleCodeExporter commented 9 years ago
Is it me? or it's not just Global Proxy.  But everything else simply failed to 
work, regardless if it's individual proxy, global proxy, or "GFW" (Great 
Firewall of China) proxy (which never worked for me at first place.

I am also running stock Android on Nexus 5 root with SuperSU, nothing more, not 
even customized recovery.

Any pointer on how to provide more information is much appreciated.  thanks in 
advance

Original comment by kngh...@gmail.com on 5 Jan 2015 at 7:30

GoogleCodeExporter commented 9 years ago
Observing the same issue. Also running stock Android on Nexus 5 root with 
SuperSU.

Original comment by ian.dah...@gmail.com on 9 Feb 2015 at 3:46

Attachments:

GoogleCodeExporter commented 9 years ago
Same issue for me on Moto G (falcon) running Android 5.0.2 cm12 nightly.

Original comment by till.fis...@gmail.com on 10 Feb 2015 at 5:55

GoogleCodeExporter commented 9 years ago
Confirmed here as well, its not just this app too I have been unable to get any 
ssh app to redirect traffic through tunnel since the 5.0 update. Doesn't appear 
the sev is really interested in supporting this since there hasn't been an 
update in months.

Original comment by vdomingu...@gmail.com on 20 Feb 2015 at 11:46

GoogleCodeExporter commented 9 years ago
Same problem with LG G3 and SSHTunnel. But no problems with ConnectBot + 
ProxyDroid.

Original comment by gibuspe...@googlemail.com on 17 Mar 2015 at 7:23

GoogleCodeExporter commented 9 years ago
Same as #6, LG G3 F460K, I'm using ConnectBot + ProxyDroid for now, thanks for 
the info.

Original comment by tommy.w...@gmail.com on 30 Mar 2015 at 2:42