Skip to content

Instantly share code, notes, and snippets.

View brett's full-sized avatar

brett brett

  • San Francisco, CA, USA
View GitHub Profile
@papertigers
papertigers / how-to.md
Last active November 15, 2023 00:22
illumos boringtun (wireguard) guide

This port of boringtun works on any illumos box that has the tuntap device. SmartOS comes with this device by deafult. You can install this device on OmniOS by running pkg install tuntap. Currently the userland daemon will drop as many privileges(5) as it can after setting up the tunnel etc. The daemon is also currently using epoll/signalfd unil I find time to wire up the event port interface.

Clone the following repo and checkout the illumos branch.

git clone git@github.com:papertigers/boringtun.git
@baetheus
baetheus / README.md
Last active December 17, 2023 14:28
SmartOS Single IP with NAT using VLAN

WARNING

These intructions might work, but they need a bit of attention. I've been reading through ipf and smf documentation and have found a few ways to improve this process. When I have time I'll add that information here, until then, be sure to look into the ipf settings if you're having issues with routing. Good luck!

Foreword

This is a modified version of sjorge's instructions for Single IP with NAT. Those instructions can be found here: https://docu.blackdot.be/snipets/solaris/smartos-nat

The primary difference is that this version does not rely on etherstubs for internal switching, but instead uses a vlan configuration. The benefits of this method over using etherstubs are:

  1. Project Fifo (project-fifo.net) can create vms and zones with vlans, but does not currently have etherstub support.
  2. Vlan switching is supposedly more efficient than creating an etherstub to handle switching. I have not tested this statement.
@mpasternacki
mpasternacki / git-pass.sh
Last active January 11, 2020 22:56
Use multiple git-managed http://www.passwordstore.org/ stores
#!/bin/sh
set -e
# git-pass
# ========
# This script allows easy usage of http://www.passwordstore.org/ with
# multiple, Git-managed stores. It works both as self-standing shell
# script (that can be committed to the repository itself), or as a Git
# subcommand (in which case it should reside somewhere in $PATH or in