<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Elastix Blogs &#187; SSH Tunnelling</title>
	<atom:link href="http://blogs.elastix.org/en/tag/ssh-tunnelling/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.elastix.org/en</link>
	<description>Elastix Community Blog</description>
	<lastBuildDate>Tue, 06 Jul 2010 09:54:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SSH Tunnelling Part 2</title>
		<link>http://blogs.elastix.org/en/2009/11/ssh-tunnelling-part-2/</link>
		<comments>http://blogs.elastix.org/en/2009/11/ssh-tunnelling-part-2/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 21:46:32 +0000</pubDate>
		<dc:creator>Mark Brooker</dc:creator>
				<category><![CDATA[Elastix]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[SSH Tunnelling]]></category>

		<guid isPermaLink="false">http://blogs.elastix.org/en/?p=155</guid>
		<description><![CDATA[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.



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.
]]></description>
			<content:encoded><![CDATA[<h2>Extras</h2>
<h3>Tunnelling to the Elastix Web interface</h3>
<p>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.</p>
<p><img class="alignnone size-full wp-image-156" src="http://blogs.elastix.org/en/wp-content/uploads/2009/11/7.jpg" alt="7" width="357" height="332" /></p>
<p><span id="more-155"></span>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.</p>
<p>Now go <a href="https://localhost">https://localhost</a></p>
<p>This should bring up the Elastix web interface.</p>
<h3>Finding Phone IP Addresses</h3>
<p>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.</p>
<p>Once you are logged in type the command</p>
<p style="padding-left: 30px;">asterisk -rvvvvvvvvvvvvvvv</p>
<p>This command takes you into the asterisk console. From here you can type &#8220;help&#8221; and it will show you all the commands. Make sure you type it without the &#8220;&#8221;.</p>
<p>To find the phone devices type</p>
<p style="padding-left: 30px;">sip show peers</p>
<p>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</p>
<p style="padding-left: 30px;">sip show peers</p>
<h2>Conclusion</h2>
<p>Now you have mastered SSH tunnelling you should be able to access all your devices in a much easier way.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblogs.elastix.org%2Fen%2F2009%2F11%2Fssh-tunnelling-part-2%2F&amp;linkname=SSH%20Tunnelling%20Part%202"><img src="http://blogs.elastix.org/en/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://blogs.elastix.org/en/2009/11/ssh-tunnelling-part-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SSH Tunnelling</title>
		<link>http://blogs.elastix.org/en/2009/11/ssh-tunnelling/</link>
		<comments>http://blogs.elastix.org/en/2009/11/ssh-tunnelling/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 10:07:34 +0000</pubDate>
		<dc:creator>Mark Brooker</dc:creator>
				<category><![CDATA[Elastix]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[SSH Tunnelling]]></category>

		<guid isPermaLink="false">http://blogs.elastix.org/en/?p=137</guid>
		<description><![CDATA[SSH Tunnelling, great tool for managing your Elastix devices.]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>Sometimes the best tools we can use are the simple ones. I have been an asterisk tech for over 4 years now and this is one of the tools I couldn&#8217;t have been able to live without. On most IP networks customers are splitting their voice and data networks. The phones are on a completely different network to the computers and the Elastix box will be the only device which connects to both networks. SSH tunnelling allows you to connect to the phones when you are on the data network. Another situation where tunnelling is great is when you have remote access to your Elastix machine but you only have access to port 22. SSH tunnelling allows you to connect to the Elastix machine then tunnel to any device on the Elastix network. SSH tunnelling is done through putty. Putty is a program that allows you to load the linux shell through your windows machine. You can grab putty from <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">http://www.chiark.greenend.org.uk/~sgtatham/putty/</a>.</p>
<h2>Configuration</h2>
<p>In this example I will connect to an Elastix box then I will tunnel to an IP phone on the network. Open putty and put in the ip address of the Elastix machine you want to connect to.</p>
<p><img class="alignnone size-full wp-image-138" src="http://blogs.elastix.org/en/wp-content/uploads/2009/11/1.jpg" alt="1" width="418" height="332" /></p>
<p><span id="more-137"></span>Now we need to add in our tunnel locations</p>
<p><img class="alignnone size-full wp-image-139" src="http://blogs.elastix.org/en/wp-content/uploads/2009/11/2.jpg" alt="2" width="414" height="314" /></p>
<p>First add in your source port. This will be the port that you use on your local machine to connect to the remote device. I am connecting to a linksys 942 which uses http. Http uses port 80. Next we will add in our destination. The ip of the phone is 192.168.1.101 and it is http so go to port 80. Once this is in add the tunnel to your list.</p>
<p><img class="alignnone size-full wp-image-140" src="http://blogs.elastix.org/en/wp-content/uploads/2009/11/3.jpg" alt="3" width="417" height="332" /></p>
<p>Once you have added it should show the tunnel in the list and now hit open to connect to the box. Plug in your credentials to authenticate yourself to the machine.</p>
<p><img class="alignnone size-full wp-image-141" src="http://blogs.elastix.org/en/wp-content/uploads/2009/11/4.jpg" alt="4" width="421" height="166" /></p>
<p>Now we are ready to open up the web interface on the linksys phone. Open up internet explorer and plug in the address <a href="http://localhost:80">http://localhost:80</a>. This means connecting to your tunnel on local source port 80. This will push through to destination of 192.168.1.101:80.</p>
<p><img class="alignnone size-medium wp-image-144" src="http://blogs.elastix.org/en/wp-content/uploads/2009/11/51-300x125.jpg" alt="5" width="300" height="125" /></p>
<p>Above you will see the interface for the Linksys 941 which I have SSH tunnelled through to. Here is an example where you have SSHed into your Elastix machine and you want to tunnel through to 10 of the phones on the network.</p>
<h2>Example</h2>
<p>Phones sit on ip addresses 192.168.1.101-110. They are all configurable by http which is port 80. The Elastix machine is on 110.110.110.110. Bring up putty and plug in the server address of 110.110.110.110. Then go to the tunnels section and add the following entries</p>
<p>Source 81 Destination 192.168.1.101:80         -    You can connect to this through internet explorer on <a href="http://localhost:81">http://localhost:81</a></p>
<p>Source 82 Destination 192.168.1.102:80         -    You can connect to this through internet explorer on <a href="http://localhost:82">http://localhost:82</a></p>
<p>Source 83 Destination 192.168.1.103:80         -    You can connect to this through internet explorer on <a href="http://localhost:83">http://localhost:83</a></p>
<p>Source 84 Destination 192.168.1.104:80         -    You can connect to this through internet explorer on <a href="http://localhost:84">http://localhost:84</a></p>
<p>Source 85 Destination 192.168.1.105:80         -    You can connect to this through internet explorer on <a href="http://localhost:85">http://localhost:85</a></p>
<p>Source 86 Destination 192.168.1.106:80         -    You can connect to this through internet explorer on <a href="http://localhost:86">http://localhost:86</a></p>
<p>Source 87 Destination 192.168.1.107:80         -    You can connect to this through internet explorer on <a href="http://localhost:87">http://localhost:87</a></p>
<p>Source 88 Destination 192.168.1.108:80         -    You can connect to this through internet explorer on <a href="http://localhost:88">http://localhost:88</a></p>
<p>Source 89 Destination 192.168.1.109:80         -    You can connect to this through internet explorer on <a href="http://localhost:89">http://localhost:89</a></p>
<p>Source 90 Destination 192.168.1.110:80         -    You can connect to this through internet explorer on <a href="http://localhost:90">http://localhost:90</a></p>
<h3>Conclusion</h3>
<p>SSH tunnelling is a great way to easily access your phones from outside the network. You only need one port forwarded on your router to get access to everything you need. Another way to access everything you need is through VPN. In my next article I will show you a very simple way of turning your Elastix box into a PPTP VPN server.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblogs.elastix.org%2Fen%2F2009%2F11%2Fssh-tunnelling%2F&amp;linkname=SSH%20Tunnelling"><img src="http://blogs.elastix.org/en/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://blogs.elastix.org/en/2009/11/ssh-tunnelling/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
