You are not logged in.

#1 2010-09-05 17:06:47

slak
Member
Registered: 2010-09-05
Posts: 4

[SOLVED] SSH SOCKS issues

Hi all!

I've just got myself a PVS on which I have Arch Linux running. I'm trying to set up a SSH SOCKS proxy to serve as a proxy for my laptop for annonymous surfing.
SSH login works perfect and I set the proxy with "ssh -D" and configure Firefox. The tunnel seems to work, as I dont get the message from Firefox that the proxy blocks connections as I do with any other port, but instead got nothing at all. Do I need to have something like privoxy running in the server? Any help very appreciated!

Cheers.

Last edited by slak (2010-09-06 22:47:03)

Offline

#2 2010-09-05 17:22:59

hexanol
Member
From: Canaduh
Registered: 2009-08-04
Posts: 95

Re: [SOLVED] SSH SOCKS issues

Normally, if your server is, for example, 192.168.0.1 and your laptop is 192.168.0.2, and sshd is running and is configured correctly on your server, then, you only need to do, from the laptop:

  • ssh -D 8888 192.168.0.1

  • In Firefox, Edit -> Preferences -> Advanced -> Network -> Settings... -> pick Manual proxy configuration and use '127.0.0.1' and '8888' for the SOCKS Host and Port.

It works for me at least.

Offline

#3 2010-09-05 18:04:39

slak
Member
Registered: 2010-09-05
Posts: 4

Re: [SOLVED] SSH SOCKS issues

Thanks for the reply!

That's what I've been doing without results. The thing is that the tunnel works, as I can set the SOCKS proxy in qbittorrent for example and it works, and can see the activity in the console. But when it comes to Firefox, it seems that it is not able to resolve DNS when connecting trough the tunnel, or that's my guess at least..

Offline

#4 2010-09-06 14:15:04

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] SSH SOCKS issues

In firefox leaving everything blank except the SOCKS Host and port and selecting socks v5 works for me. If I try to use socks v4 it doesn't work, maybe that is the detail you are missing.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2010-09-06 16:34:27

slak
Member
Registered: 2010-09-05
Posts: 4

Re: [SOLVED] SSH SOCKS issues

Thanks Rookie, but I had tried that already. This is truly driving me crazy... the tunnel works just fine, I've tested a few other programs that support SOCKS with no problems at all.. and it also seems to work on Firefox; if I set any other port I get the message that the proxy is refusing connections, and with the right port I just get blank screen, no erros, nothing.. I've changed the OS in the Virtual Server from Arch to CentOS and Arch again, with the same results. When a tunnel is used, where does the local machine lookup for DNS resolv? Do you guys think it may have something to do with this? Any other ideas? Thanks a lot.

Last edited by slak (2010-09-06 16:35:45)

Offline

#6 2010-09-06 17:58:02

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] SSH SOCKS issues

You could always try to open a page by IP and check if the problem is dns resolution or a connectivity problem, also try running ssh with -v or -vv and see if it outputs something that can give any hints about the problem.

Edit:
DNS resolution seems to be made on your machine so beware of any filtering that you may have setup or filtering in your network. It seems this behavior can be changed though http://www.outflux.net/blog/archives/20 … ith-squid/

Last edited by R00KIE (2010-09-06 18:04:41)


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#7 2010-09-06 22:46:28

slak
Member
Registered: 2010-09-05
Posts: 4

Re: [SOLVED] SSH SOCKS issues

It works!!

Thanks a lot man, that link took me to about:config, where I changed things manually and got it working! Both with DNS in local and remote!
Thanks again!

Offline

Board footer

Powered by FluxBB