View Single Post
Posts: 481 | Thanked: 190 times | Joined on Feb 2006 @ Salem, OR
#158
Originally Posted by Croman777 View Post
So if I have this correct. I can get a prepaid sidekick plan for my N900. Then use proxy servers to get around all the stuff the plan will not allow me to do?
Here is my setup:
I have on the office computer (windows computer which stays always on) openssh and privoxy. Open ssh listens to port 1194 (probably any other ports will work). On my phone, I created 2 scripts, first one is in
/etc/network/if-up.d
Code:
#!/bin/sh
#
# Start ssh tunnel for GPRS.

set -e

if [ "$IFACE" = lo ]; then
	exit 0
fi

if [ "$MODE" != start ]; then
	exit 0
fi

if [ "$ICD_CONNECTION_TYPE" != GPRS ]; then
	exit 0
fi

ssh -p1194 -NL 8118:localhost:8118 user@111.111.111.111 &

exit 0
(replace 1194 with whatever port you want to use, 'user' with the user on your computer and 111.111... with your computer's IP)

and the other one in
/etc/network/if-down.d
Code:
#!/bin/sh
#
# Stop ssh tunnel for GPRS.

pkill -x ssh
When I connect to the internet using GPRS, the ssh tunnel starts automatically (and ends when I disconnect).

Here are some links that will show you how to install sshd on your desktop:
http://pigtail.net/LRP/printsrv/cygwin-sshd.html
http://www.plenz.com/tunnel-everything
http://magicmonster.com/kb/net/ssh/auto_login.html
 

The Following 3 Users Say Thank You to ioan For This Useful Post: