Import old website, converted to MarkDown format.
[wiki] / examples / osx / tinc-up-1
diff --git a/examples/osx/tinc-up-1 b/examples/osx/tinc-up-1
new file mode 100644 (file)
index 0000000..54116bd
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+ifconfig $INTERFACE 192.168.1.2 192.168.1.3 mtu 1500 netmask 255.255.255.255
+
+#route traffic on 192.168.1.0/24 over our vpn
+route add -net 192.168.1.2 192.168.1.3 255.255.255.0
+
+#make all traffic to be sent over our vpn
+ route add -net 0.0.0.0 192.168.1.3 128.0.0.0
+ route add -net 128.0.0.0 192.168.1.3 128.0.0.0
+
+#keep normal route to server
+route add -net server_ip our_default_gateway 255.255.255.255
+