Skip to content

Instantly share code, notes, and snippets.

@bwindsor
bwindsor / pivpn-obfsproxy-setup.md
Created September 30, 2018 00:08
Obfuscated VPN setup on EC2
  • Create an EC2 instance with Ubuntu 18.04 (I used t3.nano), and ssh into it
  • sudo apt-get update
  • sudo apt-get upgrade
  • Install PiVPN with curl -L https://install.pivpn.io | bash
  • Follow the on screen instructions. Mostly use defaults but the protocol must be TCP, and I chose 1443 as my port
  • Install obfsproxy with pip install obfsproxy
  • Create a service file /etc/systemd/system/obfsproxy.service with contents
[Unit]
Description=Obfsproxy server
@Jiangyi
Jiangyi / android_build_shapeshifter_dispatcher.sh
Last active November 2, 2022 17:59
Convenience script for generating shapeshifter-dispatcher binaries for Android devices. Make sure you follow the readme instructions for shapeshifter-dispatcher first!
# Copyright (C) 2016 Andrew Jiang (TunnelBear Inc.)
# Convenience script for generating shapeshifter-dispatcher binaries for Android devices
if [ "$1" == "clean" ]; then
echo "Cleaning up..."
for folder in /tmp/android-toolchain-*; do
if [[ -d $folder ]]; then
rm -rf $folder
fi
done
@Belphemur
Belphemur / bridge-conf
Last active January 29, 2024 11:45
Configuration and scripts for OpenVPN in Bridged Mode. Script to generate new client (with their keys and configuration file for OpenVPN). Script to manage the bridge. Configuration for systemd to start/stop the OpenVPN with Brige.
#!/bin/bash
# Define physical ethernet interface to be bridged
# with TAP interface(s) above.
eth="eth0"
eth_ip="192.168.42.2"
eth_netmask="255.255.255.0"
eth_broadcast="192.168.42.255"
eth_gateway="192.168.42.1"
eth_mac="XX:XX:XX:XX:XX:XX"
@Aldaviva
Aldaviva / Linux VPN server.md
Last active January 30, 2023 10:42
OpenVPN client and server configuration with bridging

OpenVPN server configuration for a Linux server like a Raspberry Pi

Prerequisites

  • Linux (tested on Raspbian 10 Buster and 11 Bullseye)
  • OpenVPN (tested on 2.4.7-1 and 2.5.1-3 from apt)
  • bridge-utils (tested on 1.6-2 and 1.7-1 from apt)

Ethernet configuration

/etc/network/interfaces