Tuesday, October 13, 2015

How To Install No-ip In CentOS

No-ip client; use to update/resolve a server with a dynamic IP.

Prerequisite:

    Create a free no-ip account.  Log in to the no-ip website and create a host.
    Install “Make” compiler program in preparation to compile the no-ip program.  You might also have to install the “GCC” compiler if “Make” compiler don’t work; I have both GCC and Make installed.  The following is the  commands to download &install them:

yum install gcc

yum install make
Now onto the easy step-by-step installation of no-ip client.  Run the following 6 commands from the terminal:

    mkdir noip && cd noip
    wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
    tar zvxf noip-duc-linux.tar.gz
    cd noip-2.1.9-1
    make
    make install

You will then need to answer the following prompts:

Please enter the login/email string for no-ip.com

(Email account that you used to set-up no-ip account from their website)

Please enter the password for user

(Password that you used to login to no-ip website)

Please enter an update interval: [30] 30

(Increments in minutes that you want no-ip client to check if your router’s external dynamic IP address has changed and updates it accordingly.)

Do you wish to run something at successful update? [N] (y/N)

(Enter “N” here)
Now start no-ip client by running the following command:
/usr/local/bin/noip2
Now have no-ip client start every time the computer reboot by issuing the following command:
echo ‘/usr/local/bin/noip2’ >> /etc/rc.local
More useful no-ip commands:

    /usr/local/bin/noip2 -C                                       to configure noip client

    /usr/local/bin/noip2 -S                                       to display info about running noip client

    /usr/local/bin/noip2 -U                                       to set update intervals (in minutes)

No comments:

Post a Comment