カテゴリ別 2003年 | 2004年 | 2005年 | 2006年 | 2007年 | 2008年
知り合いサイト: よんだもの / 暴想 / Linuxでやる夫 / 新宿Vipper / 僕だけが幸せになればいいのに。
# emerge noip-updater # qpkg -l noip-updater net-dns/noip-updater-1.6 * CONTENTS: /usr /usr/sbin /usr/sbin/noip /usr/sbin/no-ip.sh /usr/share /usr/share/doc /usr/share/doc/noip-updater-1.6 /usr/share/doc/noip-updater-1.6/noip-updater-1.6 /usr/share/doc/noip-updater-1.6/noip-updater-1.6/README.FIRST.gz /etc /etc/init.d /etc/init.d/noip #/etc/init.d/noip start Answer the following questions about your no-ip account. Greetings! The no-ip dynamic DNS system requires a configuration file. The answers to the next five questions will build one. What is your email address for no-ip.com? (name@email.addr) > ******@********.ne.jp What is the password for the login account? (password) > ******** Are you using a groupname instead of a host.domain.name? (Y/N) Answer 'N' if you do not understand the question. > N What is the host.domain.name you are using? (host.no-ip.com) > dontstopmusic.no-ip.org Do you have a router which uses NAT/masquerading? (Y/N) > Y Configuration file [./no-ip.conf] created. * Starting noip... [ ok ] # cat /etc/no-ip.conf LOGIN = ******@********.ne.jp PASSWORD = ******** GROUP = ; HOSTNAME = dontstopmusic DOMAIN = no-ip.org DAEMON = Y PROXY = Y INTERVAL = 10 NAT = Y DEVICE = unused初めて /etc/init.d/noip start するときに、設定ファイル作成スクリプトの /usr/sbin/no-ip.sh が実行されて /etc/no-ip.conf が作成されます。私の場合はグループネーム無し、ルータで NAT を利用ですので上のような入力になりました。ちなみにパスワードは平文で保存されてます。デフォルトの 10 ですと 6 * 24 = 144 / day もアクセスしにいくので、INTERVAL の値はもう少し大きくした方がいいかもしれません。 ログを採りたい方は /etc/init.d/noip を適当に変更すると良いと思います。以下、例によって手抜きな例です。ずっと残すほどのものでもないので start の度にクリアです。
$ diff -Nru /etc/init.d/noip.orig /etc/init.d/noip
--- /etc/init.d/noip.orig 2003-10-30 01:20:33.000000000 +0900
+++ /etc/init.d/noip 2003-10-30 01:36:31.000000000 +0900
@@ -14,7 +14,7 @@
ln -s /etc/no-ip.conf /usr/lib/no-ip.conf >& /dev/null
fi
ebegin "Starting noip"
- noip -c /etc/no-ip.conf
+ noip -c /etc/no-ip.conf -d -l >& /var/log/no-ip.log
eend $? "noip did not start, error code $?"
}
起動時に自動的にデーモンを実行したいなら、rc-update します。
# rc-update add noip default * noip added to runlevel default * Caching service dependencies... [ ok ] * rc-update complete.
最近のコメント:
RSS
![]()
This work is licensed under a
Creative Commons License
(note: text only. w/o web design, citations, (re)distributed softwares).