jianlinwei / sshtunnel

SSH Tunnel for Android System
GNU General Public License v3.0
30 stars 15 forks source link

Only work with outgoing connections to port 80 #127

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect with SSHTunel
2. Open web browser
3. open 176.31.59.72:80 (whatismyip-like script)
4. open 176.31.59.72:5900 (same script)

What is the expected output? What do you see instead?
while 176.31.59.72:80 print the ssh server IP as expected, 176.31.59.72:5900 
print the same IP regardless of whether or not sshtunnel is running.

What version of the product are you using? On what operating system?
Android 4.0.3 (Samsung Galaxy S2)
Android 2.3.5 (Samsung Galaxy S2)

Original issue reported on code.google.com by optimes...@gmail.com on 3 May 2012 at 10:33

GoogleCodeExporter commented 9 years ago
I'm having the same issue, android 4.0.3 galaxy S2

I want to use this with androirc, but since irc servers aren't on port 80 it's 
a no go :(

Original comment by lu...@luckyinvestigations.com on 14 May 2012 at 9:50

GoogleCodeExporter commented 9 years ago
Just tried something similar:
What steps will reproduce the problem?
1. Connect to home router with SSHTunel (Dynamic/ SOCKS)
2. Open web browser
3. open http://192.168.1.100 (port 80)
4. open http://192.168.1.100:8077 (port 8077, same server, only listening on 
different port..)

What is the expected output? What do you see instead?
Both should work, only the one on port 80 works

What version of the product are you using? On what operating system?
SSHTunnel 1.5.4 on Motorola Droid 3 running CM9 O(android 4.0.4)

Original comment by PM.L...@gmail.com on 5 Sep 2012 at 3:38

GoogleCodeExporter commented 9 years ago
I belive this is because SSHTunnel only adds ports 80, 443 & 5228 to the 
IPTable "SSHTUNNEL", so these are the only ports forwarded through the tunnel.

You can add more ports with the following IPTables command via adb shell 
(worked for me):
shell@android:/ # iptables -t nat -A SSHTUNNEL -p tcp --dport 445 -j REDIRECT 
--to-port 8123

Original comment by root.zc....@googlemail.com on 19 Sep 2012 at 11:08