summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rwxr-xr-xetc/anytun/client1/post-up.sh7
-rwxr-xr-xetc/anytun/server/post-up.sh4
2 files changed, 11 insertions, 0 deletions
diff --git a/etc/anytun/client1/post-up.sh b/etc/anytun/client1/post-up.sh
new file mode 100755
index 0000000..bf01387
--- /dev/null
+++ b/etc/anytun/client1/post-up.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+ip link set dev $1 up
+ip link set dev $1 mtu 1400
+ip addr add dev $1 192.168.123.1/24
+
+exit 0
diff --git a/etc/anytun/server/post-up.sh b/etc/anytun/server/post-up.sh
new file mode 100755
index 0000000..1a3c443
--- /dev/null
+++ b/etc/anytun/server/post-up.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+ip link set dev $1 up
+ip link set mtu 1400 dev $1
+ip addr add 192.168.123.254/24 dev $1