How to add an wireless extender/repeater to your home network if MAC filtering is enabled on router

If you enabled MAC filtering on the router, there is a little bit of extra work needed to be done before you start installing the extender.

  1. Here i am using DAP-1620 Dual band Extender from D-Link
  2. We need Mac address of the device (MAC ID).
    On D-Link extenders, Ethernet port & 2.4 GHz , 5 GHz each has separate MAC address. On the device you will see only Ethernet or 2.4 GHz MAC Address, it is OK if you have single band extender but if it is dual band extender like DAP-1620 or DAP-1860, individual mac address can be found from 192.168.0.50/version.txt
  3. Connect your computer to extender wi-fi network. Once connected, go to the default IP address of extender 192.168.0.50. You don’t have to start doing setup wizard. Instead go to http://192.168.0.50/version.txt
  4. Note down the MAC address, here
    LAN & 2.4 GHz 10:BE:F5:50:C1:A0
    5 GHz 10:BE:F5:50:C1:A2
  5. Wireless extenders usually use something called “Virtual MAC address”, the exact term is “Locally administered MAC address”.
    These MAC addresses can be used by any one locally in the network, similar to private IP’s like 10.0.0.0/8 or 192.168.0.1/16

    These are the usual virtual MAC address
    x2-xx-xx-xx-xx-xx 
    x6-xx-xx-xx-xx-xx
     xA-xx-xx-xx-xx-xx 
    xE-xx-xx-xx-xx-xx

    Warning : Technical stuff

Lets says the real Mac address, here 10:BE:F5 :50:C1:A0

10:BE:F5:50:C1:A0, first 24 bit (first 3 octets) is called OUI (here its D-Link’s)

Take first octet, they are in Hex, convert it to binary

10  > 0001 0000

7 th bit above is called U/L bit, universally administered or locally administered.

Universally administered and locally administered addresses are distinguished by setting the second-least-significant bit of the first octet of the address. This bit is also referred to as the U/L bit, short for Universal/Local, which identifies how the address is administered. If the bit is 0, the address is universally administered. If it is 1, the address is locally administered

we need to change 0 to 1, because the address needs to be locally administered.
In binary it will be : 0001 0010
Convert 0001 0010 back to hex : 12

Now the extenders virtual Mac address will be 12:BE:F5:50:C1:A0. You must enter this MAC address onto your router’s MAC address table.

Alternately, you can also get the MAC address details by logging to extender IP address/version.txt

Actual MAC address Virtual MAC address
LAN & 2.4 GHz 10:BE:F5:50:C1:A0 12:BE:F5:50:C1:A0
5 GHz 10:BE:F5:50:C1:A2 12:BE:F5:50:C1:A2

If you are connecting to your 5 GHz wifi network on the router, use the 5 GHz virtual MAC address in your routers MAC table. I recommend adding both, just to be sure.

Now adding, client devices to the routers MAC table. You MUST calculate virtual MAC address for each device  you wish to connect to extender. In one way, it is an extra layer of protection but i am not sure why. If the original device MAC address is added to the router, there is no reason to add a virtual MAC address to the same device.

Virtual MAC address calculation is very similar to what we did above.

For example, My device MAC is 4C:34:88:53:B8:36

The first 3 octets(in RED), will be changed to 12:BE:F5 (which is first 3 octets of extender’s virtual MAC address. Next 3 Octets (in Green) will remain same same as device MAC.¬†

Now my laptop’s new virtual MAC address will be 12:BE:F5:53:F8:36, add it to your MAC table on the router.

Few examples

Client device Actual MAC address Virtual MAC address
(to be entered in router’s MAC table)
Client 1 D0:03:4B:8A:5C:88 12:BE:F5:8A:5C:88
Client 2 00:21:CC:B6:1E:9D 12:BE:F5:B6:1E:9D

6. Once done, you can go ahead and do the setup wizard. WPS setup may not work if MAC address filtering is enabled on router.

CLICK HERE for Wireless extender setup.

 

 

Installing Let’s Encrypt SSL certificate on Ubuntu 16.04/apache web server

More about Let’s Encrypt¬†¬†and it’s FREE!!!

Make sure a domain is assigned to the server IP address before you begin assigning SSL certificates.

Step 1: Let’s install¬†Let’s Encrypt client from their official repositories.

As usual, root@localhost:~# apt-get update 

root@localhost:~# apt-get install python-letsencrypt-apache

8

Select Y to continue installing client
9

Step 2:

Now the client is installed, lets install the actual SSL certificate. The client will automatically obtain and install a new SSL certificate that is valid for the domains provided as parameters.

root@localhost:~# letsencrypt --apache -d jagadeeshmittapalli.com

9 10 11 12 13 14

LetsEncrypt certificate is now installed. If  you want to extend the certificate to subdomains, here WWW

letsencrypt --apache -d example.com -d www.example.com
15 16

Try accessing your website, you should see https now.

17

Step 3: Auto renewal

LetsEncrypt SSL certificates expire every 90 days. To renew certificates installed on the server root@localhost:~# letsencrypt renew

18

Here, there is no expiring certificates currently, so no renewals were attempted.

You can also automate renewals by creating cron job

Let’s edit the crontab to create a new job that will run the renewal command every week. To edit the crontab for the root user, run:

crontab -e

19

 

You may be prompted to select an editor:

Press Enter to use nano, the default.

Include the following content at the end of the crontab, all in one line:

20 21
Confirmation output :
22

 

Save and exit. This will create a new cron job that will execute the letsencrypt-auto renew command every Monday at 2:15 am.

Installing LAMP on Ubuntu Server 16.04 LTS

Let’s assume you got a VPS or Server on Cloud installed. Here i am trying with Ubuntu 16.04 (setup on other linux distros should be similar).

Before installing remember LAMP (Linux, Apache, MySQL, PHP)

Let’s install mySQL

root@localhost:~# apt-get install mysql-server

root@localhost:~# mysql_secure_installation

1

Select NO if you don’t want to change the root password and for the reset select Y.

2

Let’s install PHP now

We can once again leverage the apt system to install our components. We’re going to include some helper packages as well, so that PHP code can run under the Apache server and talk to our MySQL database:

root@localhost:~# apt-get install php libapache2-mod-php php-mcrypt php-mysql
This should install PHP without any problems. We’ll test this now

In most cases, we’ll want to modify the way that Apache serves files when a directory is requested. Currently, if a user requests a directory from the server, Apache will first look for a file called index.html. We want to tell our web server to prefer PHP files, so we’ll make Apache look for an index.php file first.

To do this, type this command to open the dir.conf file in a text editor with root privileges:

sudo nano /etc/apache2/mods-enabled/dir.conf

For reading text files on ubuntu, use nano. nano is the GNU version of pico and is essentially the same program under a different name.On Debian and Ubuntu Linux systems, nano can be installed with the command: sudo apt-get install nano

4

Move the PHP index file highlighted above to the first position after the DirectoryIndex specification, like this:

5

ctrl+X to close the nano, select Y to save changes and then press ENTER key

Restart the Apache web server in order for our changes to be recognized. You can do this by typing this:
root@localhost:~# systemctl status apache2

6

Let’s test php

We will call this script info.php. In order for Apache to find the file and serve it correctly, it must be saved to a very specific directory, which is called the “web root”.

In Ubuntu 14.04, this directory is located at /var/www/html/. We can create the file at that location by typing:

root@localhost:~# nano /var/www/html/info.php

7

Ctrl+X to close and Y to save and press ENTER to close the nano

Now we can test whether our web server can correctly display content generated by a PHP script. To try this out, we just have to visit this page in our web browser. You’ll need your server’s public IP address again.

The address you want to visit will be:

http://your_server_IP_address/info.php

You should see a PHP page, and details about your php version and other server info

Note: Make sure you remove the php file

root@localhost:~# rm /var/www/html/info.php

Now that the LAMP is installed successfully, we can install wordpress or phpmyadmin, or other software.

To install wordpress :

wget --no-check-certificate wordpress.org/latest.zip  

 

D-Link Video recorder – DNR-202L – Installation & Screenshots

Screenshots

DNR-202L is the D-Link’s simple solution to record videos on event or continuously to an attached external hard drive.

Download windows/mac setup from support.dlink.ca. Run the setup file.

screenshot-22 screenshot-23 screenshot-24 screenshot-25 screenshot-26 screenshot-27 screenshot-28
Note down the DNR-202L, IP address we may need it.
screenshot-29

Create a password and confirm the password for DNR-202

screenshot-30 screenshot-31 screenshot-32 screenshot-33

DNR-202 will now search for available cameras in the networks. Make sure the DNR-202L, computer and cameras are in the same network (or connected to the same router)

screenshot-34

Select the camera and enter the password or create a password if there is no password set.

screenshot-35 screenshot-36 screenshot-37 screenshot-38 screenshot-39 screenshot-40

 

 

DCS-2530L Screenshots

DCS-2530L Setup 

Setup Advanced Maintenance Status
Setup wizard ICR and IR Admin Device Info
Network Setup HTTPS System Log
Wireless Setup Access List Firmware Upgrade
Dynamic DNS
Image Setup
Audio & Video
Motion Detection
Sound Detection
Time & Date
Event Setup
(Server, Media, Event, Recording)
SD card

Setup > Setup Wizard
screenshot-136

Setup > Network Setup
screenshot-137

Setup > Wireless Setup
screenshot-138

Setup > Dynamic DNS
screenshot-139

Setup > Image Setup
screenshot-140

Setup > Audio & Video
screenshot-141

Setup > Motion Detection
screenshot-142

Setup > Sound Detection
screenshot-143

Setup > Time & Date
screenshot-144

Setup> Event Setup
screenshot-145

Setup>Event Setup>Server
screenshot-146

Setup > Event Setup > Media
screenshot-147

Setup > Event Setup > Event
screenshot-148
screenshot-159

Setup > Event Setup > Recording
screenshot-149

Setup > SD Card
screenshot-150

Advanced > ICR & IR
screenshot-151

Advanced > HTTPS
screenshot-152

Advanced > Access List
screenshot-153

Maintenance> Admin
screenshot-154

Maintenance > System
screenshot-155

Maintenance > Firmware Upgrade
screenshot-156

Status > Device Info
screenshot-157

Status > Log
screenshot-158

Installing D-Link cameras – Android – mydlink lite

DCS-2530

  1. Click on Add a New camera. Select NO/YES for QR Code Setup;select your camera. Select NO for WPS setup.
    screenshot-3screenshot_2016-09-14-11-20-09screenshot_2016-09-14-11-20-35screenshot_2016-09-14-11-20-41
  2. LED on the camera must flash orange and click READY. Select your Wi-Fi network to which the camera needs to connected. Set/Create a password
    for the camera
    screenshot_2016-09-14-11-20-45 screenshot_2016-09-14-11-21-17 screenshot_2016-09-14-11-21-52

3. Time Zone is automatically set based on your phone’s time zone.Create or Add to your existing mydlink account.¬†Setup done, you should see the camera listed under local/remote.
screenshot_2016-09-14-11-22-50 screenshot_2016-09-14-11-23-35 screenshot_2016-09-14-11-23-43

DCS-936L – IP address Screenshots

You can be able to login to DCS-936L camera only through a computer (You cannot access the camera IP from tablet or mobile web browser)

Installing DCS-936L

Setup Maintenance Status
Setup Wizard Admin Device info
Network System Log
Wireless Setup  Firmware Upgrade
Dynamic DNS
Image setup
Audio & Video
Time & Date
Video Clip
Snapshot
IP filter
HTTPS setup
SD Recording
Motion Detection
Sound Detection
SD Management

Setup Wizard
screenshot-104

Setup > Network
screenshot-105 screenshot-106

Setup > Wireless Setup
screenshot-107

Setup > Dynamic DNS
screenshot-108

Setup > Image setup
screenshot-109

Setup > Audio & Video
screenshot-110

Setup > Time & Date
screenshot-112

Setup > Video Clip
screenshot-114

Setup > Snapshot
screenshot-115

Setup > IP Filter
screenshot-116

Setup > HTTPS setup
screenshot-117

Setup > SD Recording
screenshot-118 screenshot-119

Setup > Motion Detection
screenshot-120

Setup > Sound Detection
screenshot-121

Setup > SD Management
screenshot-122

Maintenance > Admin
screenshot-123

Maintenance > System
screenshot-124

Maintenance > Firmware Upgrade
screenshot-125

Status > Device info
status

Status > Log
screenshot-127

Installing DCS-960L/936L/2530 Camera

There are couple of ways to install DCS-960L/DCS-936L/DCS-2530 cameras

Steps are similar for these 3 cameras. 

DCS-960L Screenshots

  1. mydlink lite app
  2. CWN Setup method(Camera Wi-Fi Network)
    Scenario 1: via Universal Setup Wizard
    Scenario 2: Via mydlink lite app

Motion Detection on DCS-960L


mydlink lite app (iOS / Android)

Step 1: Download mydlink lite app from app store or google play store.

Step 2: Click on Local tab, after the app explores for nearby cameras in the network click on ‘Add a new camera’

Step 3: If you have QR Code from the configuration card, scan the code or select NO for QR code and select the camera model manually.

dcs-960_28955124163_odcs-960_28955126053_o

Step 4: Plug in power adapter, click Next and select ‘NO’ for WPS and then click ‘Ready’ if the LED on the camera flashing Orange

dcs-960_29288514500_o dcs-960_29544588016_o dcs-960_29578704095_o

Step 5 : Connect your mobile to the camera Wi-Fi (SSID & password is on the configuration card or on the camera label). Get back to the app and click Next

dcs-960_29544588156_o

Step 6: Now the camera will scan for your wireless networks. Select your wifi name from the list, enter password to connect

dcs-960_29288514710_odcs-960_28955126263_odcs-960_28953179964_o

Step 5: After successful connection, app will set the timezone based on phone’s region settings. Click OK

dcs-960_28953179874_o

Step 6: If you already signed in to mydlink account, you will be prompted to add to your mydlink account. Select YES and create a password for the camera. Now the camera is setup

dcs-960_28955125133_odcs-960_29288514540_o

Note: If you click on remote and if you get ‘firmware update’ notification, try upgrading the firmware, it may take upto 5-10 min.

dcs-960_29544586786_odcs-960_28955125383_o


Enabling Motion detection recording to SD card through mydlink lite app

  1. Tap on the camera from local/remote tab on mydlink lite app
  2. Click on the 3 dots on the top right corner
  3. Click on Settings, Motion detection

dcs-960_29578703725_o img_1722 dcs-960_28955124773_o

4. Enable motion detection, select the active area (optional)and enable ‘Recording by motion detection’.

dcs-960_29468736172_odcs-960_29498265721_odcs-960_28953179724_o dcs-960_29288513120_o dcs-960_29288513460_o

5. Go back, and the recording is enabled to record to an SD card

Note : By default, the maximum video length is 1 min when enabled recording from mydlink lite app. You can change by login to the camera via its IP address


CWN Setup method

This setup can be used if for some reason you cannot able to complete setup using mydlink lite app on your phone/tablet.

Step 1: Connect your mobile phone/tablet/laptop to the camera wifi network. (The camera wifi name and password is on the configuration card you received with the camera)

Step 2: If you don’t see the camera wifi network, make sure the LED on the camera is blinking orange/amber and try factory reset on the camera.

28975755613_a9919221ce_oStep 3: Once connected, open a web browser on your phone/tablet and go to 10.255.255.1 (type the numbers in the address bar and press enter).

28975755593_35e6a9fa7a_o

Step 4: You will ask to enter username & password. By default username is Admin and leave the password field blank and click Login

29489363032_3faa4d6504_o29308984150_767893ab6e_o

Step 5: Once logged in, click on Setup and Wireless settings on the left.

test

Step 6 : Click on Scan/Site survey and connect to your wifi network, type your wifi password and click Save settings

screenshot-75Screenshot (44)

Step 7: Now the LED must be Green on the camera. If yes, the camera is on your network now.

Once the camera is on network, either you can register for mydlink service through mydlink lite app or Universal Setup wizard on your computer.


Through mydlink lite app

  1. Open mydlink lite app, click on local tab.
  2. Wait until the app finish ‘exploring nearby cameras’.
  3. Once done, you should be able to see the camera listed (If you don’t find the camera CLICK HERE)
  4. Click on the ‘+’ icon in the blue cloud
    28974371464_8418e8717e_o
  5. Create a password for the camera or use the password if you already have one.
    29519217421_8d25e6f5fa_o29489901472_70cc813ce4_o
  6. It will ask you to either register for mydlink service or add to your already existing account

29489901492_fed5f7fc84_o29309604600_c3f906b5df_o

Click on remote tab, you should see the camera listed and online. Upgrade firmware if it asks you to do.


If you don’t find the camera in local tab, LED is green on the camera

  1. Open mydlink lite app, click on ‘Add a New camera’
    29519584101_1d98092b6b_o
  2. Scan the QR Code or Manually select the camera from the list
    28974722604_e75e710f4b_o28974722544_3b793e472c_o
  3. Select YES on WPS Setup screen. Swipe left until you see READY
    29519585311_3c6cb10367_o29519585171_455b88b4b8_o28974722514_09777540ae_o29309937930_064aa409a9_o
  4. click on Ready (Do not press any WPS button on router or on the camera)
  5. Once done, it will ask you to create a password for the camera
    28976700403_444c0ced3f_o29600129065_80a242725d_o29490271902_811dd31d31_o
  6. Once the timezone is selected, it will ask you to add to existing mydlink account or create a new account
    29489901492_fed5f7fc84_o28976700223_8f466dba36_o
  7. Setup should now be completed.

Through Universal setup wizard

  1. Download Universal Setup Wizard from mydlink.com or support.dlink.ca
  2. Once downloaded, open the file, allow or click yes if you see any firewall notifications.

screenshot-11

3. Select language, Click on Start

screenshot-3

4. Accept T & C (I Agree)

screenshot-4

5. DO NOT choose the camera model, instead click on SKIP INSTRUCTION

screenshot-5

6. No the wizard should show up all the cameras right now on the network. Select the camera you wish to add to your mydlink account.

screenshot-6

7. Create a password for the camera & click NEXT

screenshot-7

8. Create New account or use Existing account if you already have mydlink account.

screenshot-8 screenshot-9 screenshot-10

9. Setup is now complete.

 

 

DCS-960L Screenshots

Installing DCS-960L

 

Setup Maintenance Status
Network Setup Admin Device Info
Wireless Setup System System log
Dynamic DNS Firmware Upgrade Event log
Image Setup
Audio & Video
Preset
Motion detection
Sound detection
Mail
FTP
Snapchat
Video Clip
SD Recording
SD Management
Time & Date
Day/Night Mode

Setup > Wizard

screenshot-70

Setup > Network Setup

screenshot-71 screenshot-72 screenshot-73

Setup > Wireless Setup

screenshot-74 screenshot-75

Setup > Dynamic DNS

screenshot-76

Setup > Image setup

screenshot-77

Setup > Audio & Video

screenshot-78

Setup > Preset

screenshot-79

Setup > Motion detection

screenshot-80

Setup > Sound Detection

screenshot-81

Setup > Mail

screenshot-82

Setup > FTP

screenshot-83

Setup > Snapshot

screenshot-84

Setup > Video Clip

screenshot-87 screenshot-88 screenshot-89

Setup > SD Recording

screenshot-90 screenshot-92

Setup > SD management

screenshot-93 screenshot-94 screenshot-95

Setup > Time & date

screenshot-96

Setup > Day/Night Mode

screenshot-97

Maintenance > Admin

screenshot-98

Maintenance > System

screenshot-99

Maintenance > Firmware Upgrade

screenshot-100

Status > Device info

screenshot-101

Status > System Log

screenshot-102

System > Event log

screenshot-103