Category Archives: Software

Add Cloudflare Dynamic DNS Support on Unifi USG

It seems Unifi USG still doesn’t support Cloudflare Dynamic DNS, even though lots of users voted for this feature.
In the past I’m using dnsomatic to update cloudflare DDNS, but dnsomatic is not working anymore. So I spent sometime to find a solution.

1. Create a config.gateway.json and put it on unifi controller. Then provision USG.
If you don’t know how to create the file, please refer to https://help.ubnt.com/hc/en-us/articles/215458888-UniFi-Advanced-USG-Configuration

{
	"service": {
		"dns": {
			"dynamic": {
				"interface": {
					"<WAN interface eg eth0>": {
						"service": {
							"cloudflare": {
								"host-name": [
									"<insert A record name here eg. usg.example.com>"
								],
								"login": "<CloudFlare E-Mail>",
								"options": [
									"zone=<DNS Zone eg. example.com>"
								],
								"password": "<CloudFlare Global API Key>",
								"protocol": "cloudflare"
							}
						}
					}
				}
			}
		}
	}
}

2. Upgrade ddclient on USG to version 3.9.0.
Save below script as a bash file:

#!/bin/bash
# Run this script as sudo

# Specify the repo and the location of the apt sources list
DEB_REPO="deb http://archive.debian.org/debian/ wheezy main # wheezy #"
APT_SRC="/etc/apt/sources.list"

# Add deb repo to sources list if it isn't there
grep -q -F "$DEB_REPO" "$APT_SRC" || echo "$DEB_REPO" >> "$APT_SRC"

# Run Apt update
apt-get update; apt-get -y install libdata-validate-ip-perl

# Download new ddclient and replace the existing version
cd /tmp
curl -L -O https://raw.githubusercontent.com/ddclient/ddclient/master/ddclient
cp /usr/sbin/ddclient /usr/sbin/ddclient.bkp
cp ddclient /usr/sbin/ddclient
chmod +x /usr/sbin/ddclient

And chomod +x the file and run it with root. Then the script will install libdata-validate-ip-perl as well as ddclient 3.9.0.

3. As we are using standard ddclient, so we have to create a copy of the old ddclient configuration file.

cd /etc/ddclient
cp ddclient_eth0.conf ddclient.conf

4. Then restart ddclient.

/etc/init.d/ddclient

5. Done. From system log, you should be able to see ddclient update cloudflare DDNS now.

Symantec Antivirus更换服务器

1. Stop service ‘symantec antivirus’ service on client

2 For client, del ‘C:Program FilesSymantec Client SecuritySymantec AntiViruspkiroots*.*’

3 copy server ‘C:Program FilesSAVpkiroots’ from server to client ‘C:Program FilesSymantec Client SecuritySymantec AntiViruspkiroots’

4 copy server ‘C:Program FilesSAVGRC.dat’ to client ‘C:Documents and SettingsAll UsersApplication DataSymantecSymantec AntiVirus Corporate Edition7.5’

5 start service ‘symantec antivirus’

浅析 NIS 的特点和适用用户群

from http://bbs.kafan.cn/viewthread.php?tid=144931&extra=&page=1

看到论坛里很多用户经常尝试各种安全软件产品,我感到虽然通过亲身体验来比较和选择适合自己的安全软件更加有针对性,但是难免比较耗时。由于诺顿的软件体积比较大,卸载也不是十分快捷,试用十分不便,因此从诺顿网络安全特警(Norton Internet Security,下文简称 NIS)的老用户角度出发写出这篇文章,希望能够帮助准备试用 NIS 的用户在安装前对 NIS 的产品特点和用户定位有一个大致的了解,更加有针对性的试用产品,降低测试产品的成本。

Continue reading

全面技术解析:eMule电骡长时间下载到底伤不伤硬盘

转自http://www.cnbeta.com/articles/31924.htm

  eMule电驴(电骡)下载对硬盘有没有损害?如果您还在思考这个问题,请看网友相当全面的分析:
  先说一下现代硬盘的工作原理,现在的硬盘,无论是IDE还是SCSI,采用的都是“温彻思特”技术,都有以下特点:
1、磁头,盘片及运动机构密封.2、固定并高速旋转的镀磁盘片表面平整光滑.
3、磁头沿盘片径向移动.4、磁头对盘片接触式启停,但工作时呈飞行状态不与盘片直接接触.

Continue reading