Setup IPv6 in Tsinghua on Linux(ArchLinux))

Tsinghua university uses ISATAP to provide IPv6 connectivity to students. In Linux you can use the isatapd program to create an ISATAP tunnel based on an IPv4 device.

You can use the isatapd command as follows to establish an ISATAPD tunnel:

isatapd --router isatap.tsinghua.edu.cn

After connecting check ...

more ...


Docker get private ip address of container

In order to access other containers from a container it's needed to get the private IP address of the other containers. The following command is able to get the private ip address of the container.

$ docker inspect --format="{{.NetworkSettings.IPAddress}}" $CONTAINER_ID_OR_NAME
172.17.0.15
more ...


Move first word to end of line (Linux/awk)

Move the first word of a line to the end of line on Linux using AWK. We first store the first column(first word) in the variable t. Then we set the first column to be empty. At last we add a new column after the last column of the ...

more ...

SSH to server behind a firewall via an SSH tunnel

A server behind a firewall was unaccesible from my home, but another server which is on the same local network had public SSH access from my home. So we can create an SSH tunnel via this public server to the server behind a firewall.

For example the public ssh server ...

more ...