0

I have three systems: my laptop, a login node, and a compute cluster.

The compute cluster does not have internet access. The login node does. If I run my simulation program on the login node, I can connect to its IP address (e.g. 123.123.123.123) from my laptop on port 6789 to receive live simulation data.

What I want to do if forward all traffic from the compute cluster (e.g. internal IP of 10.20.30.40) through 123.123.123.123, all on port 6789.

How can I do that?

4
  • Just to be 100% clear - are you trying to connect to the compute cluster directly from your laptop, but through the login node?
    – growse
    Feb 28, 2013 at 9:24
  • Yes. I'm sure there's got to be an easy way to do this... (I would ask the cluster administrator but it's 4:30 AM right now and I am trying to figure this out promptly).
    – Nick
    Feb 28, 2013 at 9:26
  • So I'm assuming the login node has two NICs - one connected to the outside world, and the other connected to the cluster...? If so, I was originally thinking that you could just enable IP forwarding and (perhaps) NAT on the login node, but now I'm thinking that won't work unless the compute cluster treats the login node as it's primary gateway.
    – growse
    Feb 28, 2013 at 9:28
  • Yes, I think it does have two NICs.
    – Nick
    Feb 28, 2013 at 9:36

1 Answer 1

0

can you login via SSH to the Login node? If so, you can set up a route through the login node with: ssh -N -L 127.0.0.1:40001:10.20.30.40:6789 user@loginhost. Then you can connect to localhost on port 40001 and you connect transparent to the cluster on port 6789. hope thats what you're looking for

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .