Skip to content

Instantly share code, notes, and snippets.

var express = require('express')
, request = require('request')
, multer = require('multer');
var app = express();
var upload = multer({ dest: '/tmp/' });
var auth = "Basic " + new Buffer(process.env.USERNAME + ":" + process.env.PASSWORD).toString("base64");
app.post('/', upload.single('thumb'), function (req, res, next) {
var payload = JSON.parse(req.body.payload);
@jamesmr89
jamesmr89 / gist:77851acecda208ecc780
Created January 10, 2015 19:12
pfSense 1to1 NAT OpenVPN setup
Goal of this document is to describe how to setup a vpn tunnel with two pfSense boxes having the same LAN subnet, for the purpose of this doc we'll use 192.168.1.1/24 on both firewalls LAN interfaces
We have to make some dummy networks here to NAT to so as far as Site A will be concerned, site B will be 192.168.2.0/24, and as far as Site B is concerened site A will be 192.168.3.0/24
SiteA (LAN 192.168.1.1)
OpenVPN Server:
Standard Setup and we'll use 10.0.1.0/24 as the Tunnel Network (I can elaborate here later)
Under advanced settings add these lines:
push "route 192.168.3.0 255.255.255.0";
route 192.168.2.0 255.255.254.0; ### Site B LAN