Free SSL certificate on StartSSL

To apply free SSL certificate, go https://startssl.com/Account register an account. On “Certificates Wizard” follow the step and verify you are the domain owner, create a csr (certificate request file) on your server. After the approval that you will get a private key and the crt file. Simply Import these file to your web server, restart the service and then your HTTP connection has start protected 🙂

The certificate will be expire after one year, you can renew the certificate for free again.

ssl

 

 

Content delivery network – Cloudflare

相信不少人都聽過CDN這個服務,前兩天把幾個網頁都啟動了這個功能,服務是由Cloudflare提供的。
CDN是用”Anycast”技術,即不同地區的伺服器但用同一組IP,在WAN的層面中找最短的路徑,從而達致反應和速度提升的效果。CDN伺服器會把固定的網頁內容做cache,然後replicate到各地的CDN伺服器。

比如當新加坡的用戶訪問本網時,因為新加坡有Cloudflare的CDN server,所以路由就會自動訪問最近的CDN server取得本網內容。

我分別用了公司位於新加坡,澳洲及香港的網絡做測試,結果如下:
CDN

實驗證明,使用各地的機器到本網的延遲值都低於10ms,Cloudflare的CDN server還遍佈全球各大洲份。Cloudflare不但可以隱藏自己伺服器的IP,而且還有DDOS protection的功能!可見作用十分大,各位可以值得一試。

Implement MRTG bandwidth monitor on Server 2012 @wallaceho.com

Previously I got the same installation on Linux system, it is much more easy to install on Linux than Windows as there is already some packages which has already configure and installed the prerequisites software. Somehow in Windows environment, there is no SNMP service started default and some of the configuration was not done automatically.

First we need to install the PERL run-time first as the MRTG needs to be run on PERL script. For Example ActivePerl 5.8.8 from ActiveState http://www.activestate.com/store/activeperl/download/

After that we have to download the latest MRTG program source from http://oss.oetiker.ch/mrtg/pub

Run the command “perl mrtg” to check whether the perl run-time installed properly.

Install SNMP service on the Windows 2012 server

Configure the SNMP security (Set value to READ ONLY) and community name

Generate the config file by command  “perl cfgmaker [email protected] –global “WorkDir: D:\Wallace” –output mrtg.cfg” *The 127.0.0.1 should be the SNMP device IP and the WorkDir is which the config file path that you wanna generate to.

After that, a config file should be generated.

Finally, run the command “perl mrtg mrtg.cfg” to run the mrtg program to generate those HTML and graphic files.

You may need to setup a schedule job to run the command in every 5 minutes interval.