commit 4c3654517e744a58cfc5d30a5e0913982683a178 parent 1aa6d6cfbe6a360613feb433b0dffa98be520c8b Author: sin <sin@2f30.org> Date: Thu, 31 Dec 2015 15:42:40 +0000 Stylistic changes to 2f30-vpn Diffstat:
M | 2f30-vpn | | | 56 | +++++++++++++++++++++++++++++++++----------------------- |
1 file changed, 33 insertions(+), 23 deletions(-)
diff --git a/2f30-vpn b/2f30-vpn @@ -7,10 +7,12 @@ if test -e $basedir; then exit 1 fi -echo Welcome to the 2f30 VPN generation script. -echo This script will generate the necessary tinc configuration -echo files for use on an OpenBSD client. -echo +cat << EOF +Welcome to the 2f30 VPN generation script. +This script will generate the necessary tinc configuration +files for use on an OpenBSD client. + +EOF mkdir -p $basedir/hosts @@ -66,35 +68,43 @@ cat > $basedir/hosts/$name << EOF Subnet = $address/32 EOF -tincd -c $basedir -n 2f30 -K 4096 << EOF +tincd -c $basedir -K 4096 << EOF EOF echo -echo Configuration complete. Move $basedir to /etc/tinc -echo and adjust ownership: -echo -echo chown -R root:_tinc /etc/tinc/2f30 -echo +cat << EOF +Configuration complete. Move $basedir to /etc/tinc +and adjust ownership: + + chown -R root:_tinc /etc/tinc/2f30 + +EOF + +cat << EOF +To automatically start tincd on boot, your /etc/rc.conf.local +needs to be adjusted: + + tincd_flags="-U _tinc --chroot -n 2f30" + pkg_scripts="tincd" + +EOF -echo To automatically start tincd on boot, your /etc/rc.conf.local -echo needs to be adjusted: -echo cat << EOF -tincd_flags="-U _tinc --chroot -n 2f30" -pkg_scripts="tincd" +Remember to update pf.conf to allow traffic on the tunnel +interface as shown below: + + pass on $device + EOF -echo -echo Remember to update pf.conf to allow traffic on the tunnel -echo interface as shown below: -echo pass on $device -echo +cat << EOF +Your hosts public key will be submitted to sprunge.us. Email the URL +to sin@2f30.org to activate this client. + +EOF -echo Your hosts public key will be submitted to sprunge.us. Email the URL -echo to sin@2f30.org to enable access for your machine on the server. -echo curl -F 'sprunge=<-' http://sprunge.us < $basedir/hosts/$name echo echo Enjoy!