First, I want to thank you for creating iSSH. It allows me to take my
Ipad on business trips and keep the laptops at home. The experience
at TSA lines in USA airports is more pleasant now.
I do have a question on using a ssh tunnel to create a SOCKS proxy for
Mobile Safari. I realize there are more straightforward ways to
secure personal web / internet traffic when browsing in coffee shops
with the Ipad (i.e. using hotspotshield VPN service). Nonetheless,
this illustrates the tunneling capabilities of iSSH and I'm caught up
at the moment with this science project ...
So I have a linux server sitting behind by home router / firewall will
all the necessary port forwarding and firewall work in place. I can
successfully launch ssh shells and pull up html from this linux server
while on the internet. I start by creating a tunnel with iSSH. This
effectively implements this ssh command line:
ssh -D 1080 -p 2200 -v
us...@my-host.com "sleep 1000000"
I think the appropriate iSSH tunneling settings are:
Local Port: 1080
Remote host: localhost
Remote Port: 2200
The '2200' port is the TCP port on my internet firewall "
my-host.com"
whose traffic gets forwarded to the sshd port on my internal linux
server.
To get Safari to use a SOCKS proxy, I found this clever workaround:
http://snipplr.com/view.php?codeview&id=16563
Essentially my web server serves up a .pac file to direct Safari to
use the SSH tunnel established by iSSH/sshd. The contents of
the .pac file are
function FindProxyForURL(url, host) {
return "SOCKS localhost:1080";
}
So when I test this setup I see SSH traffic between the ipad and the
linux server, but no http (odd!) I would expect some HTML traffic
from my linux server and the internet. But I do not see it on
wireshark. I think iSSH/sshd have a functioning tunnel and Safari
is making use of the Socks proxy by the nature of me seeing the SSH
traffic. Still I'm mystified on why I can not see HTML. Yes I
tried clearing the cache / cookies and history so I get fresh page
loads.
I remain suspicious of the security until I do see HTML traffic on the
linux server. I'm wondering if I would see HTML if I change the
remote port to 80 in the iSSH tunnel config?