Sat 18 November 2017

Filed under Networking

Tags networking

Preface

With a bunch of servers, it's necessary that they're named in a consistent manner. This article describes how the machines should be named.

Basic rule

A machine name should consist of the following three parts:

  • a unique identifier for the machine (Romaji of Japanese words in one Kanji, examples are given below)
  • the name of the ISP (e.g. vultr or linode)
  • the IATA code of the geographically closest airport (e.g. hnd for machines in Tokyo)

Examples for the Japanese words to be chosen

光(hikari)  影(kage)    日(hi)      月(tsuki)   雨(ame)     雪(yuki)    風(kaze)    嵐(arashi)
海(umi)     川(kawa)    山(yama)    空(sora)    森(mori)    池(ike)     滝(taki)    島(shima)
関(seki)    原(hara)    牧(maki)    崎(saki)    谷(tani)    岩(iwa)     垣(kaki)    塵(chiri)
岳(take)    稲(ina)     天(ama)     埴(hani)    堀(hori)    浜(hama)    浦(ura)     沢(sawa)

DNS rule for machines

Every machine should have A and AAAA (if any) records corresponding their full name under the jsteward.moe domain, as well as CNAME records for their unique identifier for ease of access. The dig result for hikari.pku.pek is listed below as an example.

; <<>> DiG 9.11.2 <<>> hikari.jsteward.moe
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48767
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 6098f5d0466d72b4a19210815a0fbc9fecbc66d47b912c6a (good)
;; QUESTION SECTION:
;hikari.jsteward.moe.       IN  A

;; ANSWER SECTION:
hikari.JSTEWARD.moe.    185 IN  CNAME   hikari.pku.pek.jsteward.moe.
hikari.pku.pek.JSTEWARD.moe. 185 IN A   222.29.47.177

;; Query time: 2 msec
;; SERVER: 101.6.6.6#53(101.6.6.6)
;; WHEN:  11月 18 12:52:46 CST 2017
;; MSG SIZE  rcvd: 152

Application domain names (e.g. archive.jsteward.moe) should be pointed to the short CNAME record (e.g. hikari.jsteward.moe).

Comment

Wed 15 November 2017

Filed under Networking

Tags networking gre mpls iproute2

Preface

MPLS can be used for prioritizing traffic, which will be used in JSteward Tech's routing policy. This article works out how to label packets with MPLS and switch according to packets between two host connected by a GRE tunnel.

Before you start

Full MPLS support wasn't present in Linux …

Read More

Sat 11 November 2017

Filed under Networking

Tags networking infrastructure

Preface

As the number of machines I manage increase gradually, it has become a necessity to connect the machines together through secure, reliable tunnels, thus forming an internal network. A private network can have the following advantages:

  • Ease of configuring services that involve multiple machines, such as a databases and …
Read More

Fri 10 November 2017

Filed under Networking

Tags networking gentoo

Preface

On a machine with native IPv6 that's working quite well (e.g. CERNET2), it's usually desirable to set the host's default IPv6 route to go through native IPv6. Yet the cheap /48 address block offered by HE Tunnelbroker can be useful if one wishes to assign IPv6 addresses through …

Read More

KireinaHoro (jsteward) 's place © KireinaHoro Powered by Pelican and Twitter Bootstrap. Icons by Font Awesome and Font Awesome More