Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I use Squid on my Ubuntu box at home to give me "proxy like" tunnel access back home wherever my laptop goes. The machine is on the DMZ of the network.

Currently, I have to do this:

sudo ssh -L 3128:127.0.0.1:3128 user@homeip

then my browser is using the proxy localhost:3128

It works, but I have to authenticate twice (sudo then ssh) on the local machine before I get access. Also, If I sleep with an active connection, it will fail to reconnect on wake and I have to kill the process.

All to much of a hassle.

Bottom line here. What I want to do is setup Squid so that I can put externalIP:3128 in my browsers proxy settings and go. Just go.

How do I configure Squid to do this?

share|improve this question
    
Or, at the very least, is there a way to make the SSH connection successfully reconnect on wake without me having to worry about it? I would be fine with that. –  Tyler Molamphy Mar 15 '11 at 20:04
    
You shouldn't need to use sudo to use SSH. You could run gSTM, or autossh on your linux box to initiate your connections. gSTM is a GUI, and could be automatically started on login. Autossh is a daemon. Anyway, this is not a question about professional system administration, so it is off-topic for serverfault. –  Zoredache Mar 15 '11 at 20:59

1 Answer 1

You can configure squid as transparent proxy:

http_port 8080 transparent name=self_proxy

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.