Skip to content

Instantly share code, notes, and snippets.

@jinnko
jinnko / fix_docker_host_vpn_connectivity.sh
Last active May 1, 2020 12:07 — forked from codemedic/vpn-docker-fix
Fix connectivity from docker network through host IPSec / Strongswan VPN
#!/usr/bin/env bash
# Link up docker network via IPSec VPN on docker-host
#
# Usage: [dry_run=1] [debug=1] vpn-docker-fix [<a-docker-network-name-or-id>]
#
# Env Variables:
# docker_network - Defaults to docker0
# dry_run - Set to 1 to have a dry run, just printing out the iptables command
# debug - Set to 1 to see bash substitutions
#!/usr/bin/env python2
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
[example.org]
listen = /srv/vhtdocs/example.org/log/.php-fpm.sock
listen.owner = example_org
listen.group = www-data
listen.mode = 0660
user = example_org
group = example_org
pm = dynamic