Dieses Wiki ist ein Archiv bis 2023. Das aktuelle Wiki findet sich unter https://wiki.hamburg.ccc.de/
ChaosVPN:Tims NetBSD chaosvpn rc.d
Revision as of 14:35, 2 August 2013 by Haegar (talk | contribs) (Haegar moved page Tims chaosvpn rc.d to ChaosVPN:Tims NetBSD chaosvpn rc.d)
#!/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"