Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-02-2010, 10:40 PM   #1
LQ Newbie
Registered: Dec 2010
Posts: 6

Rep: Reputation: 0
SSH - Forwarding only select ports, make 1 passthrough

Hey guys.

Right now I have a VPS that I tunnel through using SSH/Putty/Proxycap. I use it for a certain program which uses a certain port X for authentication, and a different port Y for its data.

However, due to certain security protocols I need port X to be somewhat "transparent" so that the IP from the originator will be shown - whilst tunneling data through port Y. The conditions though, are that I cannot just change the X/Y port values in the application itself, these are company specific.

How would I go about doing this? Because right now, my understanding is that if Putty calls for a certain application to go through a socks server, ALL its ports will be directed at that. I want a certain port to be passthrough.

Old 12-03-2010, 05:51 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
Well as I read the question, the issue is actually with the client program you're using, and not putty at all. You want one type of traffic flow to use putty as a socks proxy and another type to not? If so then putty has no way to influence what uses it, only what it does when something does use it. Note that traffic passing througha put tunnel must always take the ssh servers ip when leaving at the other end as otherwise there it's no way to establish a tcp connection due to the asymmetric writing that would result.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can someone give me some details for ssh passthrough priyophan Linux - Security 1 02-26-2010 02:34 PM
Need to block all ports and open only select ports on Ubuntu 7.1 Mr.J Linux - Networking 1 11-18-2008 03:45 AM
Make External IP passthrough. Pluster Linux - Networking 1 04-12-2007 04:51 PM
forwarding ports localy through SSH viperuws Linux - Networking 12 01-18-2007 09:36 PM
Forwarding ports Xenocide Linux - Networking 0 12-29-2003 06:12 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration