LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   iptables and ssh (https://www.linuxquestions.org/questions/linux-software-2/iptables-and-ssh-720934/)

ieuuk 04-22-2009 10:04 AM

iptables and ssh
 
Hi Guys,

I have a cent os server which im developing... this is being connected to by windows servers using open ssh. Now because of the old version of the open ssh for windows project it doesnt have the function to be able to bind a remote tunnel to an interface. (i have tried cygwin but its not really practical for scripting things connecting over ssh and bits)

So what i would like to be able to do is on my cent os machine be able to have other servers connecting to it and using the ssh connection to go back to the remote server. The connection from my cent os server to my remote server works fine and i can telnet down the ssh tunnel to each other. Just need a local server (windows) to talk down the ssh tunnel to the other windows server.

Thus my question is, can i with iptables set it up to be able to forward packets coming in on a port, on to 127.0.0.1:port?

I've been having a look in to it but i just dont know enough about iptables to be able to make it work or where to look when its not working.

Any help or advice is appreciated

Thanks,
ieuuk


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