SSH Tunnelling Part 2

Extras

Tunnelling to the Elastix Web interface

One of the other great things you can do with SSH tunnelling is tunnelling to the Elastix web interface. When you are using putty to login to your machine use this tunnelling rule.

7

Elastix uses https for its web interface. Https runs on port 443. So our source port will be 443 and the destination is going to the local loopback on the Elastix machine and port 443. 127.0.0.1 basically means just access itself on 443. Once this is added into your tunnelling rules then open the putty console and login to your machine.

Now go https://localhost

This should bring up the Elastix web interface.

Finding Phone IP Addresses

Another great feature is to login to your machine then find all the IP addresses of your phones. This can be done by using the following steps.

Once you are logged in type the command

asterisk -rvvvvvvvvvvvvvvv

This command takes you into the asterisk console. From here you can type “help” and it will show you all the commands. Make sure you type it without the “”.

To find the phone devices type

sip show peers

This will show you all the ip phones that are logged in. You can find out all the ip addresses and use what you have learnt in part 1 to access all your phones. You can also use the asterisk cli module in the Elastix web interface to do this. This is under PBX then go to tools. Once you are in the asterisk cli type

sip show peers

Conclusion

Now you have mastered SSH tunnelling you should be able to access all your devices in a much easier way.

  • Share/Bookmark

Tags: , ,

2 Responses to “SSH Tunnelling Part 2”

  1. Chilling_Silence Says:

    It’s also worth mentioning you can do the same from a Linux box:
    ssh -f root@elastixbox -L 2000:ipphone:80 -N
    Then open your browser to http://localhost:2000

  2. Morons Says:

    Now what if I have an remte site and do not want to pone/portforward the sip ports from the internet to the elastic box, I need to set-up a ssh tunnel to the elastic box and then connect to it with my softphone as if its on my local network!

    How would you do that?

Leave a Reply