Skip to content

Instantly share code, notes, and snippets.

@ryandingf
ryandingf / set_gre_tunnel.sh
Created June 10, 2018 13:41 — forked from zhouqt/set_gre_tunnel.sh
Script for create gre tunnel between 2 linux hosts.
#!/bin/sh
# Run this script on inside/outside host:
# * (outside, do NAT job) set_gre_tunnel.sh out inside 1.1.1.1
# * (inside) set_gre_tunnel.sh in outside 1.1.1.2
function verify_variant() {
var=$1
msg=$2
if [ x$var != x"" ]; then