This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |