Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > web proxy server question - 10.2

web proxy server question - 10.2
Thread Tools
Forum Regular
Join Date: Mar 2001
Status: Offline
Reply With Quote
May 6, 2003, 08:19 AM
 
Hello all -

Has anyone set up Jaguar 10.2 server to serve as a web proxy that uses ssh or ssl?

Eg, at some conferences, we fire up sniffers to see who's doing what -- and then find the person and joke with them.

I want to be able to browse the web from the conference room but have my session encrypted so I can "browse privately" so to speak.

I'm figuring to use 10.2 server's web proxy feature to be my proxy server for my browser, and then simply have port forwarding/listening for http traffic on 22 (ssh).

Does that sound logical, or am I making this harder for myself (again?)

thx
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
May 7, 2003, 10:55 AM
 
Any solution will require you to have a server somewhere that you can run the proxy on. Assuming you have that, you can run this proxy as a CGI:

http://www.jmarshall.com/tools/cgiproxy/

It works great, and is easy to use.

Once you have that set up in your cgi-bin, just create an SSH tunnel the the remote machine's port 80. For example, if you wanted to proxy to a machine 10.0.0.1, you'd do this:

Code:
ssh -f -g -L 8080:127.0.0.1:80 10.0.0.1 " while true ; do sleep 100; done"
This will proxy port 80 on 10.0.0.1 to your local machine (127.0.0.1), port 8080. You'll be asked for your remote machine password.

Once it has completed successfully, just go to:

http://127.0.0.1:8080/cgi-bin/nph-proxy.cgi

And you'll be proxying through an SSH tunnel via the remote machine. Neat, eh?

(BTW, the format of this command assumes bash as your shell on the remote host -- if not, adjust accordingly)
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:16 AM.
All contents of these forums © 1995-2013 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2013, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2