Advanced Network Setup

From MiOS
(Difference between revisions)
Jump to: navigation, search
m (Removed SPAM entry)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:User Instructions]]
+
<br> '''HOWTO Tackle advanced network setups'''
[[Category:Troubleshooting]]
+
[[Category:How To]]
+
  
'''HOWTO tackle advanced network setups'''
+
== Install DYNDNS (Dynamic DNS)  ==
  
<div>
+
Login to vera using telnet or ssh then<br>  
== INSTALL DYNDNS PACKAGE ==
+
<br><br>- login to vera using telnet or ssh then: ( telnet local.findvera.com )<br>cd /tmp<br>wget [http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/brcm-2.4/packages/ddns-scripts_1.0.0-4_all.ipk http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/brcm-2.4/packages/ddns-scripts_1.0.0-4_all.ipk] <br>tar xzvf ddns-scripts_1.0.0-4_all.ipk<br>cd /<br>tar xzvf /tmp/data.tar.gz<br>''<br>''vim /etc/config/ddns (press&nbsp;''INSERT''&nbsp;to start editing, to save and quit press&nbsp;''ESC''&nbsp;then write&nbsp;'':wq''&nbsp;and press&nbsp;''ENTER'')
+
  
* '''Note: DynDns package is installed by default for firmware versions 1.0.616 and above'''
+
cd /tmp
 +
wget [http://downloads.openwrt.org/kamikaze/8.09.2/ar7/packages/ddns-scripts_1.0.0-1.2_mipsel.ipk http://downloads.openwrt.org/kamikaze/8.09.2/ar7/packages/ddns-scripts_1.0.0-1.2_mipsel.ipk]
 +
tar xzvf ddns-scripts_1.0.0-1.2_mipsel.ipk
 +
cd /
 +
tar xzvf /tmp/data.tar.gz
 +
vim /etc/config/ddns
  
* '''Note: You can edit the file also from the web interface, go to: Advanced-&gt;Net&amp;Wifi-&gt;Advanced Settings -&gt;System-&gt;File Editor'''  
+
(press&nbsp;'i' (insert)&nbsp;to start editing, to save and quit press&nbsp;''ESC''&nbsp;then write&nbsp;'':wq''&nbsp;and press&nbsp;''ENTER'')
  
==Vera connected directly to the internet==
+
You can read about the services in /usr/lib/ddns/services
=== OPEN PORTS ON VERA ===
+
'<br><br>If Vera's connected directly to the internet and you have your firewall activated you'll need to open port 80 to access Vera's UI.<br>Go to ADVANCED-&gt;Net&amp;Wi-Fi-&gt;Advanced configuration<br>OpenWRT Web UI Will open.<br>Here you need to go to: NETWORK-&gt;FIREWALL<br>New Rule:&nbsp;<br>Accept -&gt; press ADD<br>Select from the upper drop-down<br>Protocol: TCP -&gt; press ADD<br>Destination Ports: 80<br>Press SAVE<br>Press bottom 'Apply Changes'<br><br>And now you should be able to access your Vera.<br><br>Protect Vera UI with User and Password<br>Right now everyone can access your Vera UI.&nbsp;<br>Go to 'Users' tab, check "Require a username and password to access Vera from within my home network." and add a Username. This will prevent unauthorized persons from having access to your Vera web site.
+
  
=== FORWARD PORTS FROM VERA TO Another IP device ===
+
*'''Note: DynDns package is installed by default for firmware versions 1.0.616 and above'''
<br><br>In order to setup port forwarding go to:<br>Setup-&gt;Advanced-&gt;Net&amp;Wi-Fi-&gt;Advanced configuration-&gt;Network-&gt;Firewall<br><br>New Rule: FORWARD -&gt; press ADD<br>Forward to: ''internal IP of your camera'' (i.e. 192.168.81.150)<br>Port: ''port of your camera'' (80 is for HTTP)<br>Also select from the upper drop down:<br>&nbsp;&nbsp; &nbsp;Protocol: TCP<br>&nbsp;&nbsp; &nbsp;Destination Ports: ''Vera external port ''(i.e. 81)<br>Press SAVE and then 'Apply Changes' from the bottom of the page.<br><br>In this scenario I've created a port forwarding from Vera's external IP, on port 81, to 192.168.81.150 internal IP to port 80. So [http://vera_external_ip:81/ http://vera_external_ip:81]&nbsp;requests will go to&nbsp;[http://192.168.81.150/ http://192.168.81.150]<br><br>Note: If you don't know your camera IP and this is dynamically allocated by Vera's DHCP, follow these steps after you note down your camera MAC Address (which should be on the bottom of the device).
+
*'''Note: You can edit the file also from the web interface, go to: Advanced-&gt;Net&amp;Wifi-&gt;Advanced Settings -&gt;System-&gt;File Editor
  
<br><br>'''-= Identify Camera DHCP IP =-'''<br>Go to Setup-&gt;Advanced-&gt;Net&amp;Wi-Fi-&gt;Advanced configuration-&gt;Status-&gt;DHCP Clients<br>According to the MAC address you should be able to identify the IP address here.<br><br>In order for the camera not to change its IP, you should also set the DHCP server to allocate the same IP every time:
+
== Vera connected directly to the internet ==
<br><br>'''-= Configure DHCP Server leases =-'''<br>Go to Setup-&gt;Advanced-&gt;Net&amp;Wi-Fi-&gt;Advanced configuration-&gt;Network-&gt;Hosts<br>Complete the &nbsp;"MAC Address" and the "IP Address" fields from "Static IP addresses (for DHCP)" tab with the current MAC and IP of your camera then press Add, Save Changes and Apply.
+
  
<br>
+
=== Open ports on Vera ===
==Vera behind another router==  
+
=== FORWARD PORTS TO VERA ===
+
<br><br>If you're using Vera behind your router you'll need to forward some ports to it to make it work:<br><br>'''PORT 80'''&nbsp;: it's used for the web page viewing, you can secure access by using username and password (go to&nbsp;''SETUP-&gt;USERS'': add an user and check&nbsp;''"Require a username and password to access Vera from within my home network."''&nbsp;then press&nbsp;''SAVE'')<br>'''PORT 23'''&nbsp;: telnet access, not recommended because it can't be secured, anyone can login remotely<br>'''PORT 22'''&nbsp;: ssh access, it's enabled after you set a root password and then telnet access is disabled.<br>
+
  
If you don't know how to forward ports from your router have a look here:<br>[http://portforward.com/ http://portforward.com/]<br><br>
+
If Vera's connected directly to the internet and you have your firewall activated you'll need to open port 80 to access Vera's UI.<br> Go to ADVANCED-&gt;Net&amp;Wi-Fi-&gt;Advanced configuration<br>OpenWRT Web UI Will open.<br>Here you need to go to: NETWORK-&gt;FIREWALL<br> New Rule:&nbsp;<br> Accept -&gt; press ADD<br> Select from the upper drop-down<br> Protocol: TCP -&gt; press ADD<br>Destination Ports: 80<br> Press SAVE<br>Press bottom 'Apply Changes'<br> <br>And now you should be able to access your Vera.<br>  
=== &nbsp;VERA NETWORK SETTINGS ==='
+
'<br><br>You've mentioned that your router can't assign the same IP every time. You can overcome this by setting a static IP to vera.<br>Go to SETUP-&gt;ADVANCED-&gt;Net&amp;Wi-Fi<br>'''= IP Address ='''<br>How can I connect to the Internet? = STATIC<br>Set an IP from your class ie: 192.168.81.2<br>Subnet Mask 255.255.255.0<br>Gateway: 192.168.81.1 (your router IP)<br>DNS: 192.168.81.1 (and your provider's DNS server)<br><br>
+
=== Firewall ===
+
<br>Since you already have other router in front of Vera, set firewall to 'No Firewall - bridge'.<br><br>
+
=== Lan ===
+
&nbsp;<br>Since you have another DHCP server, set Vera's DHCP to 'disable'.<br>Note: I've noticed that your Belkin router has the same IP address as Vera's internal lan: 192.168.81.1. If you're using Vera in 'Bridge' mode you should change Vera's LAN IP to an address different from your Belkin router's IP. (i.e.: set it to 192.168.8.1 )<br>  
+
  
==References==
+
=== Protect Vera UI with User and Password  ===
 +
 
 +
Right now everyone can access your Vera UI.&nbsp;<br> Go to 'Users' tab, check "Require a username and password to access Vera from within my home network." and add a Username. This will prevent unauthorized persons from having access to your Vera web site.
 +
 
 +
=== Forward ports from Vera To another IP device  ===
 +
 
 +
In order to setup port forwarding go to:<br>Setup-&gt;Advanced-&gt;Net&amp;Wi-Fi-&gt;Advanced configuration-&gt;Network-&gt;Firewall<br><br> New Rule: FORWARD -&gt; press ADD<br>Forward to: ''internal IP of your camera'' (i.e. 192.168.81.150)<br> Port: ''port of your camera'' (80 is for HTTP)<br>Also select from the upper drop down:<br>&nbsp;&nbsp; &nbsp;Protocol: TCP<br> &nbsp;&nbsp; &nbsp;Destination Ports: ''Vera external port ''(i.e. 81)<br>Press SAVE and then 'Apply Changes' from the bottom of the page.<br> <br>In this scenario port forwarding is created from Vera's external IP, on port 81, to 192.168.81.150 internal IP to port 80. So [http://vera_external_ip:81/ http://vera_external_ip:81]&nbsp;requests will go to&nbsp;[http://192.168.81.150/ http://192.168.81.150]<br>
 +
 
 +
*Note: If you don't know your camera IP and this is dynamically allocated by Vera's DHCP, follow these steps after you note down your camera MAC Address (which should be on the bottom of the device).<br><br>
 +
*'''Identify Camera DHCP IP'''<br>Go to Setup-&gt;Advanced-&gt;Net&amp;Wi-Fi-&gt;Advanced configuration-&gt;Status-&gt;DHCP Clients<br>
 +
 
 +
According to the MAC address you should be able to identify the IP address here.<br> In order for the camera not to change its IP, you should also set the DHCP server to allocate the same IP every time:<br>
 +
 
 +
*'''Configure DHCP Server leases'''<br>Go to Setup-&gt;Advanced-&gt;Net&amp;Wi-Fi-&gt;Advanced configuration-&gt;Network-&gt;Hosts<br>Complete the &nbsp;"MAC Address" and the "IP Address" fields from "Static IP addresses (for DHCP)" tab with the current MAC and IP of your camera then press Add, Save Changes and Apply.<br>
 +
 
 +
== Vera behind another router ==
 +
 
 +
=== Forward ports to Vera  ===
 +
 
 +
If you're using Vera behind your router you'll need to forward some ports to it to make it work:<br> '''PORT 80'''&nbsp;: it's used for the web page viewing, you can secure access by using username and password (go to&nbsp;''SETUP-&gt;USERS'': add an user and check&nbsp;''"Require a username and password to access Vera from within my home network."''&nbsp;then press&nbsp;''SAVE'')<br>'''PORT 23'''&nbsp;: telnet access, not recommended because it can't be secured, anyone can login remotely<br>'''PORT 22'''&nbsp;: ssh access, it's enabled after you set a root password and then telnet access is disabled.<br>
 +
 
 +
If you don't know how to forward ports from your router have a look here:<br>[http://portforward.com/ http://portforward.com/]<br> <br>
 +
 
 +
=== Vera Network settings  ===
 +
 
 +
Assiging a static IP to Vera:<br> Go to SETUP-&gt;ADVANCED-&gt;Net&amp;Wi-Fi<br> '''= IP Address ='''<br> How can I connect to the Internet? = STATIC<br> Set an IP from your class ie: 192.168.81.2<br>Subnet Mask 255.255.255.0<br>Gateway: 192.168.81.1 (your router IP)<br>DNS: 192.168.81.1 (and your provider's DNS server)<br> <br>
 +
 
 +
=== Firewall  ===
 +
 
 +
Since you already have other router in front of Vera, set firewall to 'No Firewall - bridge'.<br> <br>
 +
 
 +
=== Lan  ===
 +
 
 +
Since you have another DHCP server, set Vera's DHCP to 'disable'.<br>
 +
 
 +
*Note: I've noticed that your Belkin router has the same IP address as Vera's internal lan: 192.168.81.1.<br> If you're using Vera in 'Bridge' mode you should change Vera's LAN IP to an address different from your Belkin router's IP. (i.e.: set it to 192.168.8.1)<br>
 +
 
 +
== References ==
 +
 
 +
[[Category:User_Instructions]] [[Category:Troubleshooting]] [[Category:How_To]]

Latest revision as of 08:13, 21 February 2013


HOWTO Tackle advanced network setups

Contents

[edit] Install DYNDNS (Dynamic DNS)

Login to vera using telnet or ssh then

cd /tmp
wget http://downloads.openwrt.org/kamikaze/8.09.2/ar7/packages/ddns-scripts_1.0.0-1.2_mipsel.ipk
tar xzvf ddns-scripts_1.0.0-1.2_mipsel.ipk
cd /
tar xzvf /tmp/data.tar.gz
vim /etc/config/ddns

(press 'i' (insert) to start editing, to save and quit press ESC then write :wq and press ENTER)

You can read about the services in /usr/lib/ddns/services

  • Note: DynDns package is installed by default for firmware versions 1.0.616 and above
  • Note: You can edit the file also from the web interface, go to: Advanced->Net&Wifi->Advanced Settings ->System->File Editor

[edit] Vera connected directly to the internet

[edit] Open ports on Vera

If Vera's connected directly to the internet and you have your firewall activated you'll need to open port 80 to access Vera's UI.
Go to ADVANCED->Net&Wi-Fi->Advanced configuration
OpenWRT Web UI Will open.
Here you need to go to: NETWORK->FIREWALL
New Rule: 
Accept -> press ADD
Select from the upper drop-down
Protocol: TCP -> press ADD
Destination Ports: 80
Press SAVE
Press bottom 'Apply Changes'

And now you should be able to access your Vera.

[edit] Protect Vera UI with User and Password

Right now everyone can access your Vera UI. 
Go to 'Users' tab, check "Require a username and password to access Vera from within my home network." and add a Username. This will prevent unauthorized persons from having access to your Vera web site.

[edit] Forward ports from Vera To another IP device

In order to setup port forwarding go to:
Setup->Advanced->Net&Wi-Fi->Advanced configuration->Network->Firewall

New Rule: FORWARD -> press ADD
Forward to: internal IP of your camera (i.e. 192.168.81.150)
Port: port of your camera (80 is for HTTP)
Also select from the upper drop down:
    Protocol: TCP
    Destination Ports: Vera external port (i.e. 81)
Press SAVE and then 'Apply Changes' from the bottom of the page.

In this scenario port forwarding is created from Vera's external IP, on port 81, to 192.168.81.150 internal IP to port 80. So http://vera_external_ip:81 requests will go to http://192.168.81.150

  • Note: If you don't know your camera IP and this is dynamically allocated by Vera's DHCP, follow these steps after you note down your camera MAC Address (which should be on the bottom of the device).

  • Identify Camera DHCP IP
    Go to Setup->Advanced->Net&Wi-Fi->Advanced configuration->Status->DHCP Clients

According to the MAC address you should be able to identify the IP address here.
In order for the camera not to change its IP, you should also set the DHCP server to allocate the same IP every time:

  • Configure DHCP Server leases
    Go to Setup->Advanced->Net&Wi-Fi->Advanced configuration->Network->Hosts
    Complete the  "MAC Address" and the "IP Address" fields from "Static IP addresses (for DHCP)" tab with the current MAC and IP of your camera then press Add, Save Changes and Apply.

[edit] Vera behind another router

[edit] Forward ports to Vera

If you're using Vera behind your router you'll need to forward some ports to it to make it work:
PORT 80 : it's used for the web page viewing, you can secure access by using username and password (go to SETUP->USERS: add an user and check "Require a username and password to access Vera from within my home network." then press SAVE)
PORT 23 : telnet access, not recommended because it can't be secured, anyone can login remotely
PORT 22 : ssh access, it's enabled after you set a root password and then telnet access is disabled.

If you don't know how to forward ports from your router have a look here:
http://portforward.com/

[edit] Vera Network settings

Assiging a static IP to Vera:
Go to SETUP->ADVANCED->Net&Wi-Fi
= IP Address =
How can I connect to the Internet? = STATIC
Set an IP from your class ie: 192.168.81.2
Subnet Mask 255.255.255.0
Gateway: 192.168.81.1 (your router IP)
DNS: 192.168.81.1 (and your provider's DNS server)

[edit] Firewall

Since you already have other router in front of Vera, set firewall to 'No Firewall - bridge'.

[edit] Lan

Since you have another DHCP server, set Vera's DHCP to 'disable'.

  • Note: I've noticed that your Belkin router has the same IP address as Vera's internal lan: 192.168.81.1.
    If you're using Vera in 'Bridge' mode you should change Vera's LAN IP to an address different from your Belkin router's IP. (i.e.: set it to 192.168.8.1)

[edit] References

Personal tools