Configuring CloudFlare on QNAP NAS with Dynamic DNS using wget
USING CLOUDFLARE WITH QNAP NAS
CloudFlare is a CDN (Content Delivery Network) that allow to speed-up your website. They offer a free service and Pro plan.
In order to activate it you must have to reconfigure your DNS …. CloudFlare support site with dynamic IP address, using a special modified version of ddclient.
Unfortunately, using QNAP NAS, Net::SSLeay isn’t installed by default.
You can get rid of this problem using a bash script, that use wget in order to update the IP address information :
wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//' >/share/HDA_DATA/Web/currentIP.txt
MYIP=`cat /share/HDA_DATA/Web/currentIP.txt`
wget --no-check-certificate -O - "https://www.cloudflare.com/api.html?a=DIUP&hosts=ATYPEDNS&u=EMAIL&tkn=TOKEN&ip=$MYIP"This simple script check for your current IPADDRESS, and record it in the variable $MYIP
Then , using wget it send the information to cloudflare in order to update your DNS record.
How to add new crontab entry in QNAP NAS
This procedure was tested with success on QNAP TS-112 with firmware 3.6.1 Build 0302T
EDIT THE CRONTAB FILE :
Edit the contab file in script :
vi /etc/config/crontab
That’s all folks
Installing Bind on QNAP
Here you are a little complete step-by-step guide for installing Bind (also known as Named on Centos) on QNAP platform.
Installed and tested on QNAP TS-112 with firmware 3.6.1 Build 0302T.
This guide is based on some internet articles/post listed below :
DOWNLOAD INSTALL REQUESTED QPKG SOFTWARE
Login to QNAP through the Web Interface (normally on port 8080)
Browse to Application Servers – QPKG Center
Install Optware
SexyBookmark updated to version 5.0.0.4
How to show RHEL/CENTOS version
To show the current running version of a system based on RHEL/CENTOS you can type this command :
cat /etc/redhat-release
OUTPUT
CentOS release 6.2 (Final)
If you need some additional information about your system, try :
uname -a
OYTPUT
Linux xxx.xxx.xxx 2.6.32-220.7.1.el6.x86_64 #1 SMP Wed Mar 7 00:52:02 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux