Advanced Network Setup

From MiOS
Revision as of 12:03, 7 August 2009 by Cj man (Talk | contribs)

Jump to: navigation, search
=== INSTALL DYNDNS PACKAGE ====

- login to vera using telnet or ssh then: ( telnet local.findvera.com )
cd /tmp
wget http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/brcm-2.4/packages/ddns-scripts_1.0.0-1_mipsel.ipk
tar xzvf ddns-scripts_1.0.0-1_mipsel.ipk
cd /
tar xzvf /tmp/data.tar.gz
Note: DynDns package is installed by default for firmware verions 1.0.616 and above
vim /etc/config/ddns ( press INSERT to start editing, to save and quit press ESC then write :wq and press ENTER )

A. 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

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 it's disabled.

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

===  VERA NETWORK SETTINGS ===

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.
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 dns server)

= Firewall =
Since you've already have other router in front set firewall to "No Firewall - bridge"

= Lan = 
Since you have other dhcp server set 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 it's lan ip in something else than your Belkin router ip. ( ie: set it to 192.168.8.1 )

B.Vera connected directly to the internet

=== 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 Veras 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.

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 an Username. This will prevent unauthorized persons to access your Vera web site.

=== FORWARD PORTS FROM VERA TO Another IP device ===

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

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

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. Sohttp://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 following 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&Wifi->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 to not 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&Wifi->Advanced configuration->Network->Hosts
Complete the  "MAC Address" and the "IP Address" field from "Static IP addresses (for DHCP)" tab with the current mac and ip of your camera then press Add, Save Changes and Apply.
Personal tools