6. 6
(C) IDC Frontier Inc. All Rights
Reserved.
通信費 内訳
ISP(固定IP /29)
5,616円
回線
3,726円
ISP(IPv6用)
2,028円
回線
2052円
ガラケー
1,496円
VPS
2つ
873円
7. 7
(C) IDC Frontier Inc. All Rights
Reserved.
よし、固定IPv4をやめよう
毎月 5,616円 の削減
8. 8
(C) IDC Frontier Inc. All Rights
Reserved.
でも、固定IP必要じゃん
・外にアクセスするとき
(アクセス制御)
・外から自宅にアクセスするとき
(自宅サーバー)
9. 9
(C) IDC Frontier Inc. All Rights
Reserved.
Dynamic DNS (DDNS)
でやり過ごす
グローバルIPが変わったら
APIで既存レコードを更新
自宅サーバー
+
DDNS Setuper
(bash + cron)
IDCFクラウド DNS
10. 10
(C) IDC Frontier Inc. All Rights
Reserved.
グローバルIP取得問題
BashスクリプトからグローバルIPを取得する方法
$ curl ifconfig.me
126.70.***.***
$ curl ifconfig.moe
126.70.***.***
・・・
11. 11
(C) IDC Frontier Inc. All Rights
Reserved.
ちょいちょい落ちてる問題
$ curl ifconfig.me
curl: (7) Failed to connect to ifconfig.me port 80: Operation timed out
13. 13
(C) IDC Frontier Inc. All Rights
Reserved.
IDCFクラウド
東日本リージョン
IDCFクラウド
西日本リージョン
中身はPHPで
REMOTE_ADDRを
返すだけ
Yahoo!ビッグデータインサイト
GSLB
Active Active
14. 14
(C) IDC Frontier Inc. All Rights
Reserved.
IDCFクラウド
東日本リージョン
IDCFクラウド
西日本リージョン
中身はPHPで
REMOTE_ADDRを
返すだけ
Yahoo!ビッグデータインサイト
GSLB
Active Active
Scaleway
Paris
Standby
15. 15
(C) IDC Frontier Inc. All Rights
Reserved.
$ curl ipaddr.show
126.70.***.***
$
16. 16
(C) IDC Frontier Inc. All Rights
Reserved.
$ curl ipaddr.show/n
126.70.***.***$
17. 17
(C) IDC Frontier Inc. All Rights
Reserved.
$ curl ipaddr.show/help
Usage: curl ipaddr.show
curl ipaddr.show/[options...]
Options:
ip Your IP address
host Your host name
port Your port number
ua The User-Agent
ping Send ping to you
traceroute Send traceroute to you
tracert Send tracert to you (= traceroute -I)
18. 18
(C) IDC Frontier Inc. All Rights
Reserved.
$ curl ipv6.ipaddr.show
2400:217e:46fb:7500:9130:5892:****:****
20. 20
(C) IDC Frontier Inc. All Rights
Reserved.
IDCFクラウド
東日本リージョン
IDCFクラウド
西日本リージョン
中身はPHPで
REMOTE_ADDRを
返すだけ
Yahoo!ビッグデータインサイト
GSLB:ipaddr.show
Active Active
Scaleway
Paris
Standby
ServersMans
日本どっか
ipv6.ipaddr.show