Context
I find the front end on macos way more convenient and I would like to keep my notebooks on my macbook. On the other hand, I have access faster multi-core linux machines behind a LAN.
Hence I would like to be able to use machines with multiple cores which are within a private LAN as remote kernels for a Mathematica front end running on a mac laptop.
The setting is the following:

Attempts
- I know how to set up the (mac) front end on the laptop to run MathKernels on the front-end. (dark green MathLink connection)
- I know how to set up the the (linux) front end to run MathKernels on the compute nodes. (light green MathLink connection)
- If I put my laptop within the private LAN I can run MathKernels on the compute nodes
Question
How do I simply setup the extra options in this dialog box
so as to tunnel through to,say compute 2 from my mac laptop?
Update
@Szabolcs suggests this set of updated scripts

