export RSYSLOG_DEBUG=NoStdOut export RSYSLOG_DEBUGLOG=/var/log/rsyslog/debug.log /usr/local/sbin/rsyslogd -i /var/run/syslog.pid -f /usr/local/etc/rsyslog.conf -dn tee -a /var/log/rsyslog/debug.log
|# recover all files in parallel from the most recent archive|
|# MIT license|
|# "works on my machine"|
|# lots of assumptions notably path length (strip-component)|
|# get the latest archive as our names can be sorted by time|
|ARCHIVE=`tarsnap --keyfile /tmp/tarsnap.key --list-archives | sort | tail -1`|
I'm using [PORT]net/zerotier[/PORT] for quite some time as a way of getting to my systems from other networks very happily. It works in airports, cafes, and all the usual hostile places we travel to.
It provides a L2 encrypted mesh (a bit like VXLAN I suppose) via a tap interface.
What I'd like to do is to use the ZT network as a VPN - routing all traffic from my FreeBSD laptop and phone through the zerotier layer out to my appointed ZT "VPN Gateway". Basically, translating the linux doc here: https://support.zerotier.com/knowledgebase.php?entry=show&search-for=full&article=ZWFhNWMyMTZjODY1ODcwNmFhZmJjYmRhN2I5MjRhOGQ_ -- into FreeBSD config. BTW https://www.zerotier.com/manual.shtml has a lot of background detail if you're interested.I can get the iphone working, but not the laptop.
What works after configuring zerotier to provide the "default route" is different on each device:
|X.Org X Server 1.18.4|
|Release Date: 2016-07-19|
|[ 394.896] X Protocol Version 11, Revision 0|
|[ 394.896] Build Operating System: FreeBSD 12.0-CURRENT amd64|
|[ 394.896] Current Operating System: FreeBSD wintermute.skunkwerks.at 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r320546+9ecc1769c831(drm-next): Sun Jul 2 00:10:54 UTC 2017 root@wintermute:/usr/obj/usr/src/sys/GENERIC amd64|
|[ 394.896] Build Date: 27 May 2017 01:35:38PM|
|[ 394.897] Current version of pixman: 0.34.0|
|[ 394.897] Before reporting problems, check http://wiki.x.org|
|# https://github.com/basarevych/ansible-sshjail 1de8015 on Dec 19, 2016|
|from __future__ import (absolute_import, division, print_function)|
|from ansible.errors import AnsibleError|
|from ansible.plugins.connection.ssh import Connection as SSHConnection|
|from contextlib import contextmanager|