no-ip : http://www.noip.com/Installing No-IP
Reference : http://www.howtoforge.com/how-to-install-no-ip2-on-ubuntu-12.04-lts-in-order-to-host-servers-on-a-dynamic-ip-address
First create your No-IP account.
http://www.noip.com/newUser.php
Then download the No-IP client.
$ wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
$ tar -xzvf noip-duc-linux.tar.gz
$ cd noip-2.1.9-1
$ make install
You will configure the client for your No-IP web service.
Then create a simple start up script.
$ vim /etc/init.d/noipThat you can use script to start up No-IP.
#! /bin/sh
case "$1" in
start)
echo "Starting noip2"
/usr/local/bin/noip2
;;
stop)
echo -n "Shutting down noip2"
for i in `noip2 -S 2>&1 | grep Process | awk '{print $2}' | tr -d ','`
do
noip2 -K $i
done
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
$ /etc/init.d/noip startIf you will add the No-IP script to the Ubuntu start up process.
$ /etc/init.d/noip stop
$ vim /etc/rc.localNow you can ssh [your_noip_user_name].no-ip.biz from everywhere.
/etc/init.d/noip start
No comments:
Post a Comment