Skip to content

Instantly share code, notes, and snippets.

View neca7's full-sized avatar

Neil neca7

  • UK
View GitHub Profile
@neca7
neca7 / tunnel.sh
Last active February 11, 2023 02:29 — forked from vishvananda/tunnel.sh
Script to set up an ipsec tunnel between two machinesFor Example: ./tunnel.sh 10.10.10.1 10.10.10.2 192.168.0.1 192.168.0.2 would set up an ipsec tunnel over 10.10.10.1 address using 192.168.0.1 as a virtual addresspasswordless sudo required for user on remote machine
#!/bin/bash
if [ "$4" == "" ]; then
echo "usage: $0 <local_ip> <remote_ip> <overlay_local_ip> <overlay_remote_ip>"
echo "creates an ipsec tunnel between two machines"
exit 1
fi
SRC="$1"; shift
DST="$1"; shift
@neca7
neca7 / glibc_install.sh
Created June 24, 2019 10:31 — forked from cheuerde/glibc_install.sh
Install GNU libc version parallel to existing system
# Claas Heuer, August 2015
#
# urls:
# http://stackoverflow.com/questions/847179/multiple-glibc-libraries-on-a-single-host
# http://www.gnu.org/software/libc/download.html
cd $HOME
mkdir glibc_update
cd glibc_update