Most of us will be connected to Internet either through dailup or
broadband connection provided by service providers or from the LAN network hidden
from outside world.In both the cases system make use of either dynamic IP provided by the
service provider which may change each time newly connected or network private ip which
cannot be used or not visible to outside world.Now question is how can we access such
system and make use of the services running on that system.
Consider the situation that you were working In OpenERP at home with your PC or laptop connected
to a Internet through modem. Now you might need to access local OpenERP from your office or work location
for any reference. Reverse SSH tunneling, the process forwards the local machine service to a remote machine
in a secure way helps us here.
Now at the home pc,to make it accessible from office later you can type at the command line,
sudo nohup ssh -f -N -R 8070:localhost:45678 root@<Your Office Public IP>
here,
8070 is the netrpc port of OpenERP running at home
45678 is the remote port on server
<Office Public IP> Contact your system administrator for Public IP and root password
Note : Make sure there are no services running on remote office server port going to be used
for tunneling purpose.you can also use web interface remotely instead of 8070 change it
into 8080 local web running port.
At Office You can acces OpenERP running at home by using the public IP and port 45678 to which
you have forwarded.
It is also possible to login into your system at home by issuing the following command,you will
get shell interface as if you were working at home,from your office
sudo nohup ssh -f -N -R 22:localhost:45679 root@<Your Office Public IP>
You can login into local home mcahine from any where by using,
ssh root@<Your Office Public IP> -p 45679
Same can be applied for machine inside LAN network which uses NAT service to get connected
to Internet.Similarily Support service can be provided for OpenERP in your system even though you don’t
have public ip.Thinking that this blog might had helped you…..
Vivien Brookshire: I like it when individuals come together and share ideas. Great blog, keep it up! ".
Leave a Reply