From d99dba5b99eabf8bc4ba61dc6095d66716bfe6b0 Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 14 Jun 2015 16:50:25 +0800 Subject: [PATCH] update --- tinc/README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/tinc/README.md b/tinc/README.md index f244c18..deb26a4 100644 --- a/tinc/README.md +++ b/tinc/README.md @@ -4,7 +4,7 @@ encryption to create a secure private network between hosts on the Internet. To use this image, you need to: - Have baisc knowledges of tinc -- Create a directory tree by hand [read this][2] +- Create a directory tree by hand ([tutor][2]) - Use `docker-compose` to manage ## directory tree @@ -44,7 +44,24 @@ server: ## server ``` +# run $ fig up -d + +# monitor +$ fig logs + +# stats +$ watch docker exec tinc_server_1 ss -an +``` + +## client + +``` +# start +$ tincd -D -d -n netname --pidfile /tmp/tinc.pid + +# stop +$ tincd -k --pidfile /tmp/tinc.pid ``` [1]: http://tinc-vpn.org/