Dieses Wiki ist ein Archiv bis 2023. Das aktuelle Wiki findet sich unter https://wiki.hamburg.ccc.de/
Difference between revisions of "ChaosVPN:Tims NetBSD chaosvpn rc.d"
m |
m |
||
Line 18: | Line 18: | ||
{ | { | ||
− | /usr/pkg/sbin/chaosvpn -d | + | /usr/pkg/sbin/chaosvpn -d |
− | |||
− | |||
− | route add 10.100.0.0/16 10.100.44.1 #because the route for 10.100 wasnt being automagically configured | + | sleep 10 #give things time to get set up |
− | route add 172.31.0.0/16 10.100.44.1 #same as above | + | |
+ | /usr/pkg/etc/tinc/chaos/tinc-up | ||
+ | |||
+ | route add 10.100.0.0/16 10.100.44.1 #because the route for 10.100 wasnt being automagically configured | ||
+ | route add 172.31.0.0/16 10.100.44.1 #same as above | ||
} | } |
Revision as of 09:26, 1 August 2013
#!/bin/sh # # $NetBSD: chaosvpn # # PROVIDE: chaosvpn # REQUIRE: inetd network LOGIN $rc_subr_loaded . /etc/rc.subr name="chaosvpn" start_cmd="chaosvpn_start" stop_cmd=":" chaosvpn_start() { /usr/pkg/sbin/chaosvpn -d sleep 10 #give things time to get set up /usr/pkg/etc/tinc/chaos/tinc-up route add 10.100.0.0/16 10.100.44.1 #because the route for 10.100 wasnt being automagically configured route add 172.31.0.0/16 10.100.44.1 #same as above } load_rc_config $name run_rc_command "$1"