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 (dumbaddition) |
m (chmod) |
||
Line 1: | Line 1: | ||
+ | Dont forget to run '''''# chmod + /etc/rc.d/chaosvpn''''' | ||
+ | |||
<pre> | <pre> | ||
Revision as of 00:51, 3 August 2013
Dont forget to run # chmod + /etc/rc.d/chaosvpn
#!/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"