////////////////////////////////////////////////
Running moshell across secure tunnels (RSG):
////////////////////////////////////////////////
Note!!! take good care when using this method as it allows to interact with live nodes from a customer network.

This method explains how to run moshell across the Remote Support Gateway secure tunnels.
This instruction is designed for a 3-step RSG, consisting of 3 successive servers:
 - an Ericsson Gateway, we will call it EGW
 - a Customer Support Gateway, we will call it SSG
 - an O&M server (eg solaris/linux workstation such as OSS-RC, OMINF, etc), we will call it WS. This machine should have IP connectivity to the CPP nodes.
In the instruction, we will use the following abbreviations:
 - <EGWipaddress> <EGWuser> <EGWpw> : ipaddress/dnsname, userid and password of the Ericsson Gateway
 - <SSGipaddress> <SSGuser> <SSGpw> : ipaddress/dnsname, userid and password of the Customer Support Gateway
 - <WSipaddress>  <WSuser>  <WSpw>  : ipaddress/dnsname, userid and paassword of the O&M workstation
 - <nodeIP>                         : ipaddress/dnsname of the CPP node

 0- Prerequisite if running this method in Windows (only needs to be done the first time):
In StartMenu -> Settings -> Control panel -> System -> Device manager -> Network Adapters :
> select Menu Action -> Add legacy hardware
> Then follow instruction to add Microsoft loopback adapter
In StartMenu -> Settings -> Network Connections, find the loopback adapter (should be called something like "Local Area Connection <number>") -> Rename it to "loopback"
 1- Set up the IP address on loopback interface:
Windows: netsh interface ip set address name="loopback" static <nodeIP> 255.255.255.0
Unix/Linux (need root pw):  su - ; ifconfig eth0:1 <nodeIP> netmask 255.255.255.0  ; exit
 2- Run the following ssh session and exit it:
ssh -l <EGWuser> <EGWip>
<EGWpw>
show userports
show ports
exit
From the show userports printout, you can see the applicable port range, from the show ports, you see which ones are already in use.
Choose an appropriate port, we will call it <EGWport>
 3- Run the following ssh session and leave the window open:
ssh -l <EGWuser> -L 10022:127.0.0.1:<EGWport> <EGWip>
<EGWpw>
add <EGWport> <WSip> 22
ssh <SSGip> <SSGuser>
<SSGpw>
 4- Get a new terminal window on the PC, run the following commands and leave the window open:
ssh -g -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p 10022 -l <WSuser> -L 20022:<nodeIP>:22 -L 20080:<nodeIP>:80 -L 20023:<nodeIP>:23 -L 56834:<nodeIP>:56834 -L 56835:<nodeIP>:56835 127.0.0.1
 5- Get a new terminal window on the PC and run the following line:
moshell -v portbase=20000 <nodeIP>

