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 (missed a stupid underscore) |
m (dumbaddition) |
||
Line 23: | Line 23: | ||
/usr/pkg/etc/tinc/chaos/tinc-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 10.100.0.0/16 10.100.44.1 #because the route for 10.100 wasnt being automagically configured |
Revision as of 01:42, 3 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"