You are not logged in.

#1 2009-07-30 20:55:46

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

using ssh as an http proxy on Arch [SOLVED]

I read this article and would like to use a friend's debian box as a www proxy.  I ssh'ed into it using the following command from my Arch box:

$ ssh user@ip -D 8000

As I understand it, his box is now acting as a SOCKS-type (pseudo)server.  I configured firefox to use 'localhost' and port '8000' as a proxy but can't connect to any websites.  I tried switching between SOCKS4 and SOCKS5 but with no effect.  Is there a setting somewhere on my Arch box that would disallow this behavior (something in /etc/hosts.deny or the like)?

I know this works, because I did it before I started using Arch back when I had Ubuntu installed.

Thanks in advance!

Last edited by graysky (2009-07-30 21:06:04)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2009-07-30 21:02:17

ckristi
Member
From: Bucharest, Romania
Registered: 2006-11-21
Posts: 225

Re: using ssh as an http proxy on Arch [SOLVED]

Well, you probably should also specify the ip address for the -D option.

ssh user@ip -D 127.0.0.1:8000

I hope this helps.


In love I believe and in Linux I trust

Offline

#3 2009-07-30 21:05:50

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: using ssh as an http proxy on Arch [SOLVED]

Thanks for the quick reply.  I got it working:

$ ssh -D 8000 user@host

Now, in firefox, only add 127.0.0.1 to your SOCKS proxy line (and the correct port number).  Now check the SOCKS4 radio box and clear the IP addy from the other proxy boxes.  This works for me now, although I get the following error in the ssh window (but it still functions):

channel 4: open failed: administratively prohibited: open failed

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB