まず 2個の 独立した IP アドレスで 運用中 仮に a と b とする
a の 場合
# /usr/local/bin/noip2 -S
1 noip2 process active.
Process 210, started as noip2
Using configuration from /usr/local/etc/no-ip2.conf
Last IP Address set 218.221.27.193
Account nyanta@excite.co.jp
configured for:
host nyanta.no-ip.info
Updating every 30 minutes via /dev/eth0 with NAT enabled.
# ps ax | grep 210
210 ? S 0:00 /usr/local/bin/noip2
もう一方は
b の 場合
# /usr/local/bin/noip2 -S
1 noip2 process active.
Process 205, started as noip2
Using configuration from /usr/local/etc/no-ip2.conf
Last IP Address set 60.35.85.116
Account cricri@indigo.plala.or.jp
configured for:
host nyanta.no-ip.info
Updating every 30 minutes via /dev/eth0 with NAT enabled.
# ps ax | grep 205
205 ? S 0:00 /usr/local/bin/noip2
# /usr/local/bin/noip2 -K 205
Process 205 terminated.
# ps ax | grep http
10294 ? S 0:00 /var/data/www/apache2/bin/httpd -k start
10295 ? S 0:00 /var/data/www/apache2/bin/httpd -k start
# kill 10294
# ps ax | grep http
オリジナルの ファイルの 退避
# cd /usr/local/etc/
# cat -v /usr/local/etc/no-ip2.conf
0.0.0.0^@^@^@^@^@^@^@^@^@^^^@M-6&L2JAh^@^@^@^A^A^A^@eth0^@^@^@^@^@^@^\
@^@^@^@^@^@dXNlcm5hbWU9Y3JpY3JpJTQwaW5kaWdvLnBsYWxhLm9yLmpwJnBhc3M9bm\
9uJTIzc3VtaSFub24maFtd
# mv no-ip2.conf 001_no-ip2.conf
# /usr/local/bin/noip2 -S
1 noip2 process active.
Process 210, started as noip2
Using configuration from /usr/local/etc/no-ip2.conf
Last IP Address set 218.221.27.193
Account nyanta@excite.co.jp
configured for:
host nyanta.no-ip.info
Updating every 30 minutes via /dev/eth0 with NAT enabled.
# ps ax | grep 210
210 ? S 0:00 /usr/local/bin/noip2
# /usr/local/bin/noip2 -K 210
Process 210 terminated.
# ps ax | grep http
6626 ? S 0:00 /var/data/www/apache2/bin/httpd -k start
6627 ? S 0:00 /var/data/www/apache2/bin/httpd -k start
# kill 6626
# ps ax | grep http
# cd /usr/local/etc/
# cat -v no-ip2.conf
0.0.0.0^@^@^@^@^@^@^@^@^@^^^@M-($L2JAd^@^@^@^A^A^A^@eth0^@^@^@^@^@^@^@^@^@^\
@^@^@dXNlcm5hbWU9bm9uLXN1bWklNDBleGNpdGUuY28uanAmcGFzcz16M2Y2ZzdiOSZoW109Y3\
JpY3JpbWEtc2Eubm8taXAuaW5mbw==
# mv no-ip2.conf 001_no-ip2.conf
scp にて no-ip2.conf を お互いに 入れ換える
# pwd
/usr/local/etc
# ls -l
-rw------- 1 148 Jul 15 18:31 001_no-ip2.conf_cricrima-sa
-rw------- 1 152 Aug 23 13:20 002_no-ip2.conf_nyanta
-rw------- 1 152 Aug 23 13:00 no-ip2.conf
この場合 IP アドレスの やり取りと なる。b 側に ついて 見て行こう
$ scp 001_no-ip2.conf_cricrima-sa 60.35.85.116:/home/mm
Enter passphrase for key '/home/mm/.ssh/id_rsa':
001_no-ip2.conf_cricrima-sa 100% 148 573.5KB/s 00:00
$ ssh -l mm 60.35.85.116
Enter passphrase for key '/home/mm/.ssh/id_rsa':
$ su -
# cd /usr/local/etc/
# mv 001_no-ip2.conf 002_no-ip2.conf_nyanta
# mv /home/mm/001_no-ip2.conf_cricrima-sa .
# cp 001_no-ip2.conf_cricrima-sa no-ip2.conf
# ls -l
total 12
-rw------- 1 148 Aug 23 13:26 001_no-ip2.conf_cricrima-sa
-rw------- 1 152 Jul 17 15:20 002_no-ip2.conf_nyanta
-rw------- 1 148 Aug 23 13:31 no-ip2.conf
再起動にて確認 本件 パスワード 失念したので 応急処置の 入れ換えを 行っ た。この場合の 処置は 後で 追記する。
$ ssh -l mm nyanta.no-ip.info
The authenticity of host 'nyanta.no-ip.info (60.35.85.116)' can't be established.
RSA key fingerprint is 13:92:e4:10:1f:b4:76:ef:cb:44:96:1e:65:62:eb:09.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'nyanta.no-ip.info' (RSA) to the list of known hosts.
Enter passphrase for key '/home/mm/.ssh/id_rsa':
/var/log/messages の 抜粋
# cat /var/log/messages
Aug 23 23:36:42 nyanta noip2[205]: nyanta.no-ip.info set to 60.35.85.116
web 関連 OK 閲覧可能 メールは どうなるか?閲覧可能というか 送信可能;参 考データー、一部時間等 変更してある。
Aug 23 22:49:31 nyanco sendmail[279]: j7N4nV4C000279: from=apache, size=1889,\
class=0, nrcpts=1, msgid=<200508230449.j7N4nV4C000279@nyanco.catworld.kd>, \
relay=apache@localhost
Aug 23 22:49:32 nyanco identd[282]: Connection from localhost
Aug 23 22:49:32 nyanco identd[282]: from: 127.0.0.1 ( localhost ) for: 1026, 25
Aug 23 22:49:33 nyanco sendmail[280]: j7N4nW08000280: \
from=, size=2120, class=0, nrcpts=1, \
msgid=<200508230449.j7N4nV4C000279@nyanco.catworld.kd>, proto=ESMTP, \
daemon=MTA, relay=apache@localhost [127.0.0.1]
Aug 23 22:49:33 nyanco sendmail[279]: j7N4nV4C000279: \
to=nyanta@nyanland.lord.lp, ctladdr=apache (80/80), delay=00:00:02,\
xdelay=00:00:01, mailer=relay, pri=31889, relay=[127.0.0.1]
[127.0.0.1],\
dsn=2.0.0, stat=Sent (j7N4nW08000280 Message accepted for delivery)
Aug 23 22:49:35 nyanco sendmail[284]: j7N4nW08000280: \
to=, ctladdr= \
(80/80), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=32120,\
relay=mxin1.ms.catkingdm.ky. [202.238.83.11], dsn=2.0.0, \
stat=Sent (j7N4nX3n011953 Message accepted for delivery)
上に 。
# /usr/local/bin/noip2 -S
1 noip2 process active.
Process 205, started as noip2
Using configuration from /usr/local/etc/no-ip2.conf
Last IP Address set 60.35.85.116
Account nyanta@excite.co.jp
configured for:
host nyanta.no-ip.info
Updating every 30 minutes via /dev/eth0 with NAT enabled.
にゃんたろう 拝!
2005年 8月23日 (火) 23:41:49 JST 作成
server install & setup ver.2 に戻る
Copyright © 2004.-2007. nyantarou All Rights Reserved.