From c75be2bda58d5d9d10aad5919deb7b6fde6fd847 Mon Sep 17 00:00:00 2001 From: Neo_Chen Date: Sun, 3 Nov 2019 14:28:40 +0800 Subject: [PATCH] Tinc config directory barbone --- tinc/hosts/caasih | 16 ++++++++++++++++ tinc/hosts/ucbvax | 16 ++++++++++++++++ tinc/tinc-down | 10 ++++++++++ tinc/tinc-up | 11 +++++++++++ tinc.conf => tinc/tinc.conf | 0 5 files changed, 53 insertions(+) create mode 100644 tinc/hosts/caasih create mode 100644 tinc/hosts/ucbvax create mode 100644 tinc/tinc-down create mode 100644 tinc/tinc-up rename tinc.conf => tinc/tinc.conf (100%) diff --git a/tinc/hosts/caasih b/tinc/hosts/caasih new file mode 100644 index 0000000..49b88c2 --- /dev/null +++ b/tinc/hosts/caasih @@ -0,0 +1,16 @@ +Address=caasih.nerdpol.ovh +Port=xxxx + +-----BEGIN RSA PUBLIC KEY----- +MIICCgKCAgEA4RjPVW/qE7DhWSjSWgH9dgG+5MrMhPxJRlZkI112BBETV17ZzTu5 +D6B0px9aNqpqFlQUkA36JFouJ7dU3LfBdam3gyGN6Ozyj5Vt1cknM6EFyM//0JEI +RRc4c8L+v9X7ONj6ej6gRwkjrsXZU6LQGaVLTtTDDaetMTHRgr8Q8BGvQt+CAX94 +WK5/TKKm2DIEUEgx85jd6ntRpZuir87BzoAM/gLg6KQ4jYht1SyjVTJ6Sxio/f2u +B3ATAhVwEG7Ap7GKhDFVhE8WNG0PzlbCmuoRM5yTZW/GY8vPafIfxOtT8Oa7yaZY +I6Nc9XRfvd7SdimHYbSBYueFX4mi175ZH1XkdGNWiF/tENc5Id/ha94r01Xah+et +HuSdymgXp68UsiGOJ/TyN0iT5ctgXxjm0Qzy6JDvr6Ijg3IbL8WgBSW335R7bAAe +Mj4uYsBdZ7riqpu1pjk6OkfT29exttGuz0QzPV82QHPkk5rPa1b+OK7pJJFBGvbo +s1MY4LR6HSUSlpRvYpbRBLx7KbMHMSMZgfAhA2jrMYo/uSj4Yv5juQxX+ur85yO+ +OmxU/9CYwlaRh0aYBSymqAKDhgFmUfyoz0R2CVJ+a7MbHJxFFfDCzi3StaJtwM/Q ++Rs2hN3T0DyYvmQwyPZAXOAQx3NRq8luVrEPiWEPJYE0LCTceRkqKW8CAwEAAQ== +-----END RSA PUBLIC KEY----- diff --git a/tinc/hosts/ucbvax b/tinc/hosts/ucbvax new file mode 100644 index 0000000..2939fa6 --- /dev/null +++ b/tinc/hosts/ucbvax @@ -0,0 +1,16 @@ +Address=sl-sgp.asn.yt +Port=xxxx + +-----BEGIN RSA PUBLIC KEY----- +MIICCgKCAgEAzs4pHdKCzTULQtKnAn6DzFSHHxeLMB47BvBJWl5xCkBwYLYqZNnl +JQCPevrIOz29VY34Ko7s4ClcLU5ZI1gqB4maFg6bsdeekhnG8sszQzBzZF2PDOXg +J40aDUCHV1QNLwUAFVl9cQvSPv1cnrOqZI6dKJTV7inGh72c6DHdDI9NCuGUrwBa +X7bs/TuQEAvv81RVaO5/tAUTALrvGUKG2vxQINJoCmzgl4noqfX3+5K0eRnnJF+P ++edT2Dn7M8VUMJo4zuxIcjll3aVLhoBjXys7Fc2hVP3fILsbx9v/NMyW4fzVkM+q +U1oycVYn/Xh8o/YoVJRjlqUmhPGRrsuXsYvW/Xq1Tz2tRLtUlIS4npiEKDGQOaF+ +4W/1TNAXUBFBwM6dZxsruBJc/ZgOsalLfKvPkSFroA1P4VsE671BOnxUuVbeNwnm +yPTmaoxBhkrQ2N3rDC9J8KStgaFSD5raXhgVxNIr0vx8FBx7XtPOzOkcqr3CzG81 +FVo0o7Ql24t61mri/qBh0YHTOPLvZ0BEZTWQtf6ACGofYa7B/9C6Ahf+gn6kISWr +dL2qXJ7iPOkVn33HYiKfLVPCCmOT352U1nfgjNacQ1K0qn6/RpEWx7z6j7QCs1Ua +uF4k8jksRkzZsytvLSo1nm5VSw8vQfb3r2OxVMWRZAmk+C+KVrno3KcCAwEAAQ== +-----END RSA PUBLIC KEY----- diff --git a/tinc/tinc-down b/tinc/tinc-down new file mode 100644 index 0000000..2e403e7 --- /dev/null +++ b/tinc/tinc-down @@ -0,0 +1,10 @@ +#!/bin/sh + +case `uname` in + Linux) + ip link set $INTERFACE down + ;; + *BSD) + ifconfig $INTERFACE down + ;; +esac diff --git a/tinc/tinc-up b/tinc/tinc-up new file mode 100644 index 0000000..c62358b --- /dev/null +++ b/tinc/tinc-up @@ -0,0 +1,11 @@ +#!/bin/sh + +case `uname` in + Linux) + ip link set $INTERFACE up + ip addr add 10.127.x.x/x dev $INTERFACE + ;; + *BSD) + ifconfig $INTERFACE 10.127.x.x/x + ;; +esac diff --git a/tinc.conf b/tinc/tinc.conf similarity index 100% rename from tinc.conf rename to tinc/tinc.conf