Go Back   The macosxhints Forums > OS X Help Requests > Networking



 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 01-16-2007, 06:12 PM   #1
tonyboy
Prospect
 
Join Date: Jan 2004
Location: Montreal, QC
Posts: 16
Selective SSH Tunnel to SOCK Proxy

Hi everyone,

I'm trying to set-up an SSH tunnel that will allow me to view websites and access my mailboxes at work -- services that aren't available outside the network.


It's very simple, really. I set up an SSH tunnel that dynamically forwards all connections via the built-in SOCKS proxy:
ssh -NCD 1080 username@server

I follow that up by configuring setting-up my internet connection to access the SOCKS proxy at localhost:1080.



Now, all of the connections I make to the internal work servers work fine, but access to sites such as google.com don't -- it seems the administrator of the SSH/SOCKS proxy on the remote end has disabled this kind of forwarding.

So I'd like to request that only work-related connections go through the SSH tunnel and everything else is accessed directly. The Proxy Auto-Configuration (PAC) file format is ideal for this!

I've coded-up the rules that determine which connections go through the tunnel and which others are direct, but it seems that these rules are only applied with regards to HTTP! All of the other services I use for work (IMAP/POP, SMTP, etc...) are broken because their connections aren't made through the tunnel!



So in sum, what I'd like to do is keep the SSH tunnel up and running, but only route those connections that are work-related through the tunnel (regardless of what ports they are trying to access) and keep everything else connecting directly, without regards to the tunnel.


Cheers and thanks!
- Anthony
tonyboy is offline   Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting 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

Forum Jump


All times are GMT -5. The time now is 03:03 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Site design © Mac Publishing LLC; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of Mac Publishing LLC.