1. 安裝:

cd /usr/local/src

wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
tar xzf noip-duc-linux.tar.gz
cd no-ip-2.1.9-1(會隨版本更新不同)
make
make install

cp /usr/local/src/no-ip-2.1.9-1/debian.noip2.sh /etc/init.d/

chmod +x /etc/init.d/debian.noip2.sh

2. 設定no-ip設定檔

 

/usr/local/bin/noip2 -C

 

Please enter the login/email string for no-ip.com xxxxx@gmail.com
Please enter the password for user 'xxxxx@gmail.com' ******

Only one host [xxxxx.no-ip.org] is registered to this account.
It will be used.
Please enter an update interval:[30] 15 (預設30分鐘更新一次,這邊改成每15分鐘)
Do you wish to run something at successful update?[N] (y/N) 

New configuration file '/usr/local/etc/no-ip2.conf' created.

 

3. 看noip 執行狀態:

/usr/local/bin/noip2 -S

1 noip2 process active.

Process 3886, started as noip2, (version 2.1.9)
Using configuration from /usr/local/etc/no-ip2.conf
Last IP Address set 175.182.128.111
Account xxxx@gmail.com
configured for:
host xxxxx.no-ip.org
Executing username=xxxxx%40gmail.com&pass=xxxxx&h[]=xxxxx.no-ip.org upon successful update.
Updating every 15 minutes via /dev/eth0 with NAT enabled.

3886為noip2執行時的PID

4. 停止noip:

/usr/local/bin/noip2 -K 3886

, , , , , ,

keisuke 發表在 痞客邦 PIXNET 留言(0) 人氣()