vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi All, Is there a way on AIX to redirect telnet sessions, or is there a program which can do the trick? What I'm looking for is this: Server A is connected to the internet, with a valid public address. Server A has also an private address on a second adapter. Server B only has an private address in the same range as Server A. I will now do a telnet server-a 4000 and this will trigger a telnet to server-b. Regards, Richard. |
| |||
| Richard van Denzel <rvandenzel@sltngroup.com> wrote: > Hi All, > > Is there a way on AIX to redirect telnet sessions, or is there a > program which can do the trick? A little program called "redir" does so. If you could not find it on the net, call me per PM for the source code, *BUT* you use the program on your own risk! If some one hacks/cracks (or what ever) this program, it's not my fault. > > What I'm looking for is this: > > Server A is connected to the internet, with a valid public address. > Server A has also an private address on a second adapter. > Server B only has an private address in the same range as Server A. > > I will now do a telnet server-a 4000 and this will trigger a telnet to > server-b. But if you use connection to the Internet a real NAT program and/or firewall will be a better suggestion for you. J. Luebbers -- Jochen Lübbers luebbers@tde-online.de Software Development Group I TDE - Tele Data Electronic GmbH "Who desire to give up freedom in order to gain security will loose both in the end." (Benjamin Franklin) |
| ||||
| >a telnet server-a 4000 and this will trigger a telnet to server-b. Well... first we'll dispence with the security issues of using telnet on the open internet. Telnet bad, SSH good. There, got that out of the way. we can solve both of these problems (i believe) by using ssh. ok... i've confirmed that it works via putty at least. ( Putty is a free ssh client see http://www.chiark.greenend.org.uk/~sgtatham/putty/ ) Here is what i did: Create new session called redirectest hostname is ServerA, port is 22. (ssh port) under ssh tunnels, created a remote tunnel Destination: serverA:22 Source port: 4000 I also clicked on "Remote ports do the same" (which is to say they accept connections from other machines) Then I saved and opened the session to ServerA. Once i was logged into ServerA, i created a new session names AtoB. The host name was ServerA, and the port was 4000. I opened this and voila! it connects me to ServerB via SSH. FYI: Our ServerA is AIX 4.2.2 and our ServerB is AIX 4.3.3 and both are running sshd. This isn't exactly the functionality you asked for... you have to maintain the first connection (which adds the port 4000 redirect) but it works. I don't know unix sshd options well enough, but i imagine you could do this with it. Hope this helps, good luck. -- be safe. flip Ich habe keine Ahnung was das bedeutet, oder vielleicht doch? Remove origin of the word spam from address to reply (leave "+") |