Skip to content

Instantly share code, notes, and snippets.

@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.
@richardiux
richardiux / dependencies.sh
Last active November 29, 2017 13:25
golang on smartos with image magick
pkgin -y install git mercurial gcc47 gmake giflib-5.0.5 ImageMagick-6.8.7.4
export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=$HOME/gocode
cd
hg clone -u release https://code.google.com/p/go
cd go
hg update default
@smileart
smileart / gopher
Last active February 11, 2017 11:13
Gopher — Go lang mascot!
===== Gopher =====
-- Go lang mascot --
⊂( ⓄϖⓄ)っ
⊂( ◐ϖ◑ )っ
⊂( ❍ϖ❍ )っ
⊂( ⦿ϖ⦿ )っ
⊂( ⊚ϖ⊚ )っ
⊂( ⊙ϖ⊙ )っ
⊂( ⚆ ϖ⚆ )っ
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream