maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   N900 SSH dynamic port forwarding with SOCKS (https://talk.maemo.org/showthread.php?t=37454)

bbrindle 2009-12-16 20:38

N900 SSH dynamic port forwarding with SOCKS
 
I've been playing around with SSH trying to tunnel all my web traffic through SSH. SSH session works and listens on the specified port but I can't seem to get the browser setup correctly.

Using the following:
ssh -D 8080 -f -C -q -N [username]@[host]

Tried to edit the proxy configuration on the browser with about:config. I can specify the socks proxy IP (127.0.0.1) but when I try to specify the port it won't let me change the value from 0.

Anyone else have any better luck?

Thanks

bbrindle 2009-12-17 01:39

Re: N900 SSH dynamic port forwarding with SOCKS
 
Strange, got it working by using the onscreen keyboard to edit the proxy field. Working like a charm right now.

fatalsaint 2009-12-17 02:34

Re: N900 SSH dynamic port forwarding with SOCKS
 
Does the N900 SSH have the full VPN tunnel support?

https://help.ubuntu.com/community/SSH_VPN

It's the -w option, you need root login enabled for your server though (the one downside).. but if you get that working you don't need to mess with proxies at all.... and all traffic would go through it, not just the browser.

Seems like it would be kind of fun :).

DaveQB 2009-12-17 02:45

Re: N900 SSH dynamic port forwarding with SOCKS
 
Quote:

Originally Posted by bbrindle (Post 430967)
I've been playing around with SSH trying to tunnel all my web traffic through SSH. SSH session works and listens on the specified port but I can't seem to get the browser setup correctly.

Using the following:
ssh -D 8080 -f -C -q -N [username]@[host]

Tried to edit the proxy configuration on the browser with about:config. I can specify the socks proxy IP (127.0.0.1) but when I try to specify the port it won't let me change the value from 0.

Anyone else have any better luck?

Thanks

Tried editing the proxy settings under "Internet Connections" in Settings?

lma 2009-12-17 03:21

Re: N900 SSH dynamic port forwarding with SOCKS
 
Quote:

Originally Posted by DaveQB (Post 431315)
Tried editing the proxy settings under "Internet Connections" in Settings?

There is no SOCKS proxy support at the moment (bug 6739).

jiiv 2009-12-19 08:24

Re: N900 SSH dynamic port forwarding with SOCKS
 
Quote:

Originally Posted by fatalsaint (Post 431306)
Does the N900 SSH have the full VPN tunnel support?

https://help.ubuntu.com/community/SSH_VPN

Doesn't look like it...
Connects just fine, but we don't have arp. I was hoping this might be a workaround for the lack of iptables, but apparently I'm out of luck. :/
Guess it's time to download the sdk and start compilin'.

qole 2009-12-19 08:53

Re: N900 SSH dynamic port forwarding with SOCKS
 
I have put the Chinook version of tsocks in my Fremantle repo (see my webpage for repo details). It works great for tunneling VNC through SSH.

Thanks for the tip about editing about:config with the on-screen keyboard. Very strange behaviour.

fnordianslip 2009-12-19 09:16

Re: N900 SSH dynamic port forwarding with SOCKS
 
Veering only slightly off-topic, I wonder if anyone has tried the new-ish method for creating a tun interface via an SSH tunnel with the -w option.

I've not tried it at all yet, but I notice that the ssh client on the N900 supports it.

Edit: I wonder if tun/tap is built into the kernel?

qole 2009-12-19 09:35

Re: N900 SSH dynamic port forwarding with SOCKS
 
fnordianslip: you aren't veering off topic, since fatalsaint asked the same thing a few posts before.

fnordianslip 2009-12-19 09:39

Re: N900 SSH dynamic port forwarding with SOCKS
 
Quote:

Originally Posted by qole (Post 434245)
fnordianslip: you aren't veering off topic, since fatalsaint asked the same thing a few posts before.

Hmm. Too early. Brain not functioning yet.


All times are GMT. The time now is 00:50.

vBulletin® Version 3.8.8