การติดตั้ง Dynamic DNS “NO-IP Client ” on ClearOS 7.1

[root@gateway ~]# cd /
[root@gateway /]# pwd
/
[root@gateway /]# mkdir advance
[root@gateway /]# cd advance/
[root@gateway advance]# wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
–2016-03-08 23:33:07–  http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
Resolving http://www.no-ip.com (www.no-ip.com)… 8.23.224.110
Connecting to http://www.no-ip.com (www.no-ip.com)|8.23.224.110|:80… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: http://www.noip.com/client/linux/noip-duc-linux.tar.gz [following]
–2016-03-08 23:33:07–  http://www.noip.com/client/linux/noip-duc-linux.tar.gz
Resolving http://www.noip.com (www.noip.com)… 8.23.224.107
Connecting to http://www.noip.com (www.noip.com)|8.23.224.107|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 134188 (131K) [application/x-gzip]
Saving to: ‘noip-duc-linux.tar.gz.1’
100%[======================================>] 134,188      166KB/s   in 0.8s
2016-03-08 23:33:09 (166 KB/s) – ‘noip-duc-linux.tar.gz.1’ saved [134188/134188]
[root@gateway advance]# ls
noip-duc-linux.tar.gz 
[root@gateway advance]# tar -xzvf noip-duc-linux.tar.gz
./._noip-2.1.9-1
noip-2.1.9-1/
noip-2.1.9-1/._binaries
noip-2.1.9-1/binaries/
noip-2.1.9-1/binaries/._noip2-i686
noip-2.1.9-1/binaries/noip2-i686
noip-2.1.9-1/binaries/._noip2-x86_64
noip-2.1.9-1/binaries/noip2-x86_64
noip-2.1.9-1/._COPYING
noip-2.1.9-1/COPYING
noip-2.1.9-1/._debian.noip2.sh
noip-2.1.9-1/debian.noip2.sh
noip-2.1.9-1/._gentoo.noip2.sh
noip-2.1.9-1/gentoo.noip2.sh
noip-2.1.9-1/._LEEME.PRIMERO
noip-2.1.9-1/LEEME.PRIMERO
noip-2.1.9-1/._LIESMICH.ERST.deutsch
noip-2.1.9-1/LIESMICH.ERST.deutsch
noip-2.1.9-1/._LISEZMOI.ENPREMIER
noip-2.1.9-1/LISEZMOI.ENPREMIER
noip-2.1.9-1/._mac.osx.startup
noip-2.1.9-1/mac.osx.startup
noip-2.1.9-1/._Makefile
noip-2.1.9-1/Makefile
noip-2.1.9-1/._noip2.c
noip-2.1.9-1/noip2.c
noip-2.1.9-1/._README.FIRST
noip-2.1.9-1/README.FIRST
noip-2.1.9-1/._README.FIRST-SWE
noip-2.1.9-1/README.FIRST-SWE
noip-2.1.9-1/._README.FIRST.FRANCAIS
noip-2.1.9-1/README.FIRST.FRANCAIS
noip-2.1.9-1/._README.FIRST.ITALIANO
noip-2.1.9-1/README.FIRST.ITALIANO
noip-2.1.9-1/._README.FIRST.JAPANESE
noip-2.1.9-1/README.FIRST.JAPANESE
noip-2.1.9-1/._README.FIRST.pt_BR
noip-2.1.9-1/README.FIRST.pt_BR
noip-2.1.9-1/._README.FIRST_PT
noip-2.1.9-1/README.FIRST_PT
noip-2.1.9-1/._redhat.noip.sh
noip-2.1.9-1/redhat.noip.sh

[root@gateway advance]# cd noip-2.1.9-1/
[root@gateway noip-2.1.9-1]# yum install gcc
Loaded plugins: clearcenter-marketplace, fastestmirror
ClearCenter Marketplace: fetching repositories…
clearos                                                  | 3.6 kB     00:00
clearos-centos                                           | 3.6 kB     00:00
clearos-centos-updates                                   | 3.4 kB     00:00
clearos-contribs                                         | 3.0 kB     00:00
clearos-epel                                             | 4.3 kB     00:00
clearos-fast-updates                                     | 2.9 kB     00:00
clearos-infra                                            | 3.0 kB     00:00
clearos-updates                                          | 3.0 kB     00:00
(1/12): clearos/7/group_gz                                 | 1.5 kB   00:00
(2/12): clearos-contribs/7/primary_db                      |  28 kB   00:00
(3/12): clearos-centos/7/x86_64/group_gz                   | 155 kB   00:01
(4/12): clearos-epel/7/x86_64/group_gz                     | 169 kB   00:02
(5/12): clearos/7/primary_db                               | 891 kB   00:02
(6/12): clearos-epel/7/x86_64/updateinfo                   | 460 kB   00:02
(7/12): clearos-fast-updates/7/x86_64/primary_db           |  20 kB   00:00
(8/12): clearos-infra/7/primary_db                         |  11 kB   00:00
(9/12): clearos-updates/7/primary_db                       | 709 kB   00:00
(10/12): clearos-centos-updates/7/x86_64/primary_db        | 3.1 MB   00:09
(11/12): clearos-epel/7/x86_64/primary_db                  | 3.8 MB   00:10
(12/12): clearos-centos/7/x86_64/primary_db                | 5.3 MB   00:16
Determining fastest mirrors
* clearos: mirror1-singapore.clearos.com
* clearos-centos: download1.clearsdn.com
* clearos-centos-updates: download1.clearsdn.com
* clearos-contribs: mirror1-singapore.clearos.com
* clearos-contribs-paid: mirror1-singapore.clearos.com
* clearos-epel: download1.clearsdn.com
* clearos-fast-updates: download1.clearsdn.com
* clearos-infra: mirror1-singapore.clearos.com
* clearos-updates: mirror1-singapore.clearos.com
* private-clearcenter-dyndns: download3.clearsdn.com:80
* private-clearcenter-plex: download3.clearsdn.com:80
clearos-contribs-paid                                    | 2.9 kB     00:00
clearos-contribs-paid/primary_db                         | 1.1 kB     00:00
private-clearcenter-dyndns                               | 1.9 kB     00:00
private-clearcenter-dyndns/primary_db                    | 2.3 kB     00:00
private-clearcenter-plex                                 | 1.9 kB     00:00
private-clearcenter-plex/primary_db                      | 8.1 kB     00:00
Resolving Dependencies
–> Running transaction check
—> Package gcc.x86_64 0:4.8.5-4.el7 will be installed
–> Processing Dependency: cpp = 4.8.5-4.el7 for package: gcc-4.8.5-4.el7.x86_64
–> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-4.el7.x8            6_64
–> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-4.el7.x86            _64
–> Running transaction check
—> Package cpp.x86_64 0:4.8.5-4.el7 will be installed
—> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
—> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package        Arch           Version             Repository              Size
================================================================================
Installing:
gcc            x86_64         4.8.5-4.el7         clearos-centos          16 M
Installing for dependencies:
cpp            x86_64         4.8.5-4.el7         clearos-centos         5.9 M
libmpc         x86_64         1.0.1-3.el7         clearos-centos          51 k
mpfr           x86_64         3.1.1-4.el7         clearos-centos         203 k
Transaction Summary
================================================================================
Install  1 Package (+3 Dependent packages)
Total download size: 22 M
Installed size: 53 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): libmpc-1.0.1-3.el7.x86_64.rpm                       |  51 kB   00:01
(2/4): mpfr-3.1.1-4.el7.x86_64.rpm                         | 203 kB   00:01
(3/4): cpp-4.8.5-4.el7.x86_64.rpm                          | 5.9 MB   00:14
(4/4): gcc-4.8.5-4.el7.x86_64.rpm                          |  16 MB   00:22
——————————————————————————–
Total                                              995 kB/s |  22 MB  00:22
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : mpfr-3.1.1-4.el7.x86_64                                      1/4
Installing : libmpc-1.0.1-3.el7.x86_64                                    2/4
Installing : cpp-4.8.5-4.el7.x86_64                                       3/4
Installing : gcc-4.8.5-4.el7.x86_64                                       4/4
Verifying  : cpp-4.8.5-4.el7.x86_64                                       1/4
Verifying  : mpfr-3.1.1-4.el7.x86_64                                      2/4
Verifying  : gcc-4.8.5-4.el7.x86_64                                       3/4
Verifying  : libmpc-1.0.1-3.el7.x86_64                                    4/4
Installed:
gcc.x86_64 0:4.8.5-4.el7
Dependency Installed:
cpp.x86_64 0:4.8.5-4.el7              libmpc.x86_64 0:1.0.1-3.el7
mpfr.x86_64 0:3.1.1-4.el7
Complete!

[root@gateway noip-2.1.9-1]# make install
if [ ! -d /usr/local/bin ]; then mkdir -p /usr/local/bin;fi
if [ ! -d /usr/local/etc ]; then mkdir -p /usr/local/etc;fi
cp noip2 /usr/local/bin/noip2
/usr/local/bin/noip2 -C -c /tmp/no-ip2.conf
Auto configuration for Linux client of no-ip.com.
Multiple network devices have been detected.
Please select the Internet interface from this list.
By typing the number associated with it.
0       eno1
1       tun0
2       tun1
3       enp2s0.2
4       enp2s0.250
5       enp2s0.6
6       enp2s0.122
3
Please enter the login/email string for no-ip.com  pariwat@hotmail.com
Please enter the password for user ‘pariwat@hotmail.com’  **********
5 hosts are registered to this account.
Do you wish to have them all updated?[N] (y/N)  n
Do you wish to have host [product.no-ip.org] updated?[N] (y/N)  y
Please enter an update interval:[30]
Do you wish to run something at successful update?[N] (y/N)  ^M
New configuration file ‘/tmp/no-ip2.conf’ created.
mv /tmp/no-ip2.conf /usr/local/etc/no-ip2.conf

***** Crontab Command *****
[root@gateway noip-2.1.9-1]# crontab -e
0-59 * * * * /advance/noip-2.1.9-1/noip2
[root@gateway noip-2.1.9-1]# noip2
[root@gateway noip-2.1.9-1]# noip2 -S
1 noip2 process active.
Process 48854, started as /advance/noip-2.1.9-1/noip2, (version 2.1.9)
Using configuration from /usr/local/etc/no-ip2.conf
Last IP Address set 202.129.20.29
Account kpariwat@hotmail.com
configured for:
host  product.no-ip.org
Updating every 30 minutes via /dev/enp2s0.2 with NAT enabled.
[root@gateway noip-2.1.9-1]#
==== End Krap ====
Advertisements