Overclock.net › Forums › Software, Programming and Coding › Networking & Security › SOCKS Proxy Problem/Question
New Posts  All Forums:Forum Nav:

SOCKS Proxy Problem/Question

post #1 of 3
Thread Starter 
I'm not very experienced with networking and I'm attempting to set up a proxy. I've tried all sorts of things at this point without success, so hopefully someone here knows:

I have a setup with four machines:
LM: Local User Machine (Windows)
S1: Server that is accessible from the local machine and all other servers (HP-UX)
S2: Server that is accessible from S1 and S3 (RHEL5)
S3: Server that is accessible from S1 and S2 (RHEL5)

I'm trying to set up a process that runs indefinitely on S1 and basically acts like a router so I can connect to S2/S3 from LM by configuring applications to use S1 as a SOCKS5 proxy. I know that I can use PuTTY on the local machine to create a connection to S1 and use that as a proxy, but I don't want to have to start that process on the local machine every time I turn it on. I'd prefer to just be able to point various applications (Filezilla, Java profiler, etc) directly at the proxy on S1 and get to their final destinations from there.

I've tried using ssh -D on S1 as well as direct port forwarding (-L), but it never seems to work. The SSH command itself is fine, but nothing happens when I attempt to use the proxy. The best result I've had is "connection refused", but I couldn't even figure out what was going on with that since OpenSSH doesn't seem to print any information about the way it's being utilized after starting up even with the -vvv flag.

Am I missing something simple/obvious? Is this possible?

*edit* Update:

So just to make sure I wasn't crazy, I tried doing it on a different set of servers to see if it would work there. Turns out I was doing it right, but there's something else that's preventing me from connecting.

I run the following on S1: ssh -D *: localhost
...and then configure that host:port as my SOCKS proxy in various applications on the Windows box.

However, this does not work in the servers that I originally mentioned. The port appears to be open when I check netstat (and openSSH indicates it's listening), but my local PC can't connect (it just times out). At this point I'm assuming that the VPN has some sort of limitation on which ports you can connect to from external sources. The actual setup is:
Code:
Windows box  ----- VPN ----- S1  ---- S2
                              \      /
                               \    /
                                 S3

Unfortunately I'm not really sure how to test if that's the problem or how to find out which ports are allowed... Any ideas would be greatly appreciated.

*Update #2* Looks like all ports aside from 22 are filtered and I obviously can't listen on that, so I guess the only option is a local SSH tunnel.
Edited by Desidero - 12/4/13 at 9:13pm
The New Guy
(16 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0@3.0GHz GA-P35-DS3L EVGA 8800GT Superclocked 4GB Corsair XMS2 DDR2 800 
Hard DriveHard DriveOptical DriveOS
Seagate 320GB 7200RPM Western Digital Caviar Black Lite-on DVD burner Windows 7 Professional x64 
MonitorKeyboardPowerCase
Samsung 225BW Filco Majestouch Ninja (full keyboard w/browns) Cooler Master Xtreme 650 Antec 900 
MouseAudioAudio
Logitech MX518 Denon AHD-2000 Sennheiser HD595 
  hide details  
Reply
The New Guy
(16 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0@3.0GHz GA-P35-DS3L EVGA 8800GT Superclocked 4GB Corsair XMS2 DDR2 800 
Hard DriveHard DriveOptical DriveOS
Seagate 320GB 7200RPM Western Digital Caviar Black Lite-on DVD burner Windows 7 Professional x64 
MonitorKeyboardPowerCase
Samsung 225BW Filco Majestouch Ninja (full keyboard w/browns) Cooler Master Xtreme 650 Antec 900 
MouseAudioAudio
Logitech MX518 Denon AHD-2000 Sennheiser HD595 
  hide details  
Reply
post #2 of 3
Sounds like a router configuration problem, software port limitation or just default deny permissions set someplace. I know with some software that does this type of stuff doesn’t meet GSA specifications and can’t be used, etc. Not everything is engineered matter of factly or correctly by designers.
Acer Aspire One
(7 items)
 
Sprint Force
(6 items)
 
 
CPUMotherboardGraphicsRAM
AMD C-70 Acer AMD Radeon HD 7290 Graphics Kingston ACR512X64D3S16C11G 
Hard DriveOSCase
WDC WD3200BPVT-22JJ5T0 Win 8 Pro 64 Tucano 
CPUGraphicsRAMHard Drive
Qualcomm Snapdragon S4 Plus MSM8960, Dual core,... Adreno 225 1024 MB RAM microSD, microSDHC, microSDXC up to 64 GB 
OSMonitor
Android (4.0) 4.0 inches, 480 x 800 pixels, 233 ppi, IPS LCD 
  hide details  
Reply
Acer Aspire One
(7 items)
 
Sprint Force
(6 items)
 
 
CPUMotherboardGraphicsRAM
AMD C-70 Acer AMD Radeon HD 7290 Graphics Kingston ACR512X64D3S16C11G 
Hard DriveOSCase
WDC WD3200BPVT-22JJ5T0 Win 8 Pro 64 Tucano 
CPUGraphicsRAMHard Drive
Qualcomm Snapdragon S4 Plus MSM8960, Dual core,... Adreno 225 1024 MB RAM microSD, microSDHC, microSDXC up to 64 GB 
OSMonitor
Android (4.0) 4.0 inches, 480 x 800 pixels, 233 ppi, IPS LCD 
  hide details  
Reply
post #3 of 3
First of all, afaik SOCKS can only be used for HTTP traffic (though there are wrappers that will tunnel a TCP/IP via SOCKS). so if you're trying to tunnel other traffic then SOCKS is out of the question

I'm not quite sure what you're trying to do, but by the sounds of it you'll probably want an -L tunnel instead.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › SOCKS Proxy Problem/Question