summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/host2
-rw-r--r--share/tinc-down-ifconfig3
-rw-r--r--share/tinc-down-ip3
-rw-r--r--share/tinc-up-ifconfig3
-rw-r--r--share/tinc-up-ip5
-rw-r--r--share/tinc.conf7
6 files changed, 23 insertions, 0 deletions
diff --git a/share/host b/share/host
new file mode 100644
index 0000000..c24d4ad
--- /dev/null
+++ b/share/host
@@ -0,0 +1,2 @@
+Subnet = ${ip4}/32
+
diff --git a/share/tinc-down-ifconfig b/share/tinc-down-ifconfig
new file mode 100644
index 0000000..6563f07
--- /dev/null
+++ b/share/tinc-down-ifconfig
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ifconfig "$INTERFACE" down
diff --git a/share/tinc-down-ip b/share/tinc-down-ip
new file mode 100644
index 0000000..800ebb3
--- /dev/null
+++ b/share/tinc-down-ip
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ip link set "$INTERFACE" down
diff --git a/share/tinc-up-ifconfig b/share/tinc-up-ifconfig
new file mode 100644
index 0000000..66c897e
--- /dev/null
+++ b/share/tinc-up-ifconfig
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ifconfig "$INTERFACE" inet ${ip4} netmask 255.255.0.0
diff --git a/share/tinc-up-ip b/share/tinc-up-ip
new file mode 100644
index 0000000..191d310
--- /dev/null
+++ b/share/tinc-up-ip
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+ip -4 addr add "${ip4}/16" dev "$INTERFACE"
+
+ip link set "$INTERFACE" up
diff --git a/share/tinc.conf b/share/tinc.conf
new file mode 100644
index 0000000..89ccdfd
--- /dev/null
+++ b/share/tinc.conf
@@ -0,0 +1,7 @@
+Name = ${name}
+
+ConnectTo = caeghi_tyil_net
+ConnectTo = denahnu_tyil_net
+ConnectTo = gaeru_tyil_net
+ConnectTo = hurzak_tyil_net
+ConnectTo = jaomox_tyil_net