Skip to content

Instantly share code, notes, and snippets.

Aaron Mason thirdwheel

View GitHub Profile
@thirdwheel
thirdwheel / main.go
Created Dec 15, 2019
GWT Sessions Package - new session for each request
View main.go
package main
import (
"fmt"
"log"
"net/http"
"os"
"github.com/gorilla/sessions"
)
@thirdwheel
thirdwheel / ipsec.conf
Created Dec 23, 2018
IPSec connection from behind NAT
View ipsec.conf
# 10.0.0.21 is the "public" IP address - local is 10.40.180.50 (DHCP)
ike esp from 10.0.0.21 to 10.0.0.23
# 10.255.255.253 is the IP on this side of a gif(4) tunnel, the other is the other side
ike esp from 10.255.255.253 to 10.255.255.252 peer 10.0.0.23
# ifconfig output at https://pasteboard.co/HT0kGu7.png
# tcpdump output at https://pasteboard.co/HT0m2JA.png
You can’t perform that action at this time.