summaryrefslogtreecommitdiff
path: root/etc/anytun/server/post-up.sh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/anytun/server/post-up.sh')
-rwxr-xr-xetc/anytun/server/post-up.sh18
1 files changed, 11 insertions, 7 deletions
diff --git a/etc/anytun/server/post-up.sh b/etc/anytun/server/post-up.sh
index dc30f09..9d585a1 100755
--- a/etc/anytun/server/post-up.sh
+++ b/etc/anytun/server/post-up.sh
@@ -2,24 +2,28 @@
ip link set dev $1 up
ip link set mtu 1400 dev $1
-# Add tunnel addresses
+# add tunnel addresses
ip addr add 192.168.123.254/24 dev $1
ip addr add fec0::fd/64 dev $1
-# Add routes to client subnets
-# you also have to add these routes to the client configuration file of one client
-# ip route add 192.168.12.0/24 dev $1
+# add routes to client subnets
+# you also have to add these routes to the client configuration file of each client
+# ip route add 192.168.11.0/24 dev $1
# ip route add fec0:1::/48 dev $1
+# ip route add 192.168.12.0/24 dev $1
+# ip route add fec0:2::/48 dev $1
+# ip route add 192.168.13.0/24 dev $1
+# ip route add fec0:3::/48 dev $1
-# Disable ICMP Redirects as they don't work within the tunnel
+# disable ICMP redirects as they don't work within the tunnel
echo 0 > /proc/sys/net/ipv4/conf/$1/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/$1/accept_redirects
-# Enable Packet forwarding
+# enable packet forwarding
echo 1 > /proc/sys/net/ipv6/conf/$1/forwarding
echo 1 > /proc/sys/net/ipv4/conf/$1/forwarding
-# Enable Routing to lokal ethernet interface
+# enable routing to local ethernet interface
# echo 1 > /proc/sys/net/ipv6/conf/eth0/forwarding
# echo 1 > /proc/sys/net/ipv4/conf/eth0/forwarding