X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=examples%2Fosx%2Ftinc-up-1;fp=examples%2Fosx%2Ftinc-up-1;h=54116bd7753c7d71694aca12fb3644d8f69ffb1c;hb=7c74a57cd95cfc0358fdd5980d9170ea16751dfb;hp=0000000000000000000000000000000000000000;hpb=f980b3945271b51a8a200c44b8d3e7d61d086bab;p=wiki diff --git a/examples/osx/tinc-up-1 b/examples/osx/tinc-up-1 new file mode 100644 index 0000000..54116bd --- /dev/null +++ b/examples/osx/tinc-up-1 @@ -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 +