ssh -i$SSH_KEY-oStrictHostKeyChecking=no ubuntu@${REMOTE_IP}"sudo ip link del gretap1 2> /dev/null; sudo modprobe fou; sudo ip fou add port 52323 gue; sudo ip link add name gretap1 type gretap local ${REMOTE_IP} remote ${LOCAL_IP} ignore-df nopmtudisc encap gue encap-sport auto encap-dport 52323 && sudo ip add add 192.168.186.11/24 dev gretap1 && sudo ip link set gretap1 mtu 1500 && sudo ip link set gretap1 master bridge && sudo ip link set gretap1 promisc on&& sudo ip link set up gretap1 && echo Remote ready"
# set up local vpn
set-v
set-e
sudo ip link del gretap1 2> /dev/null || /bin/true
sudo modprobe fou
sudo ip fou del port 52323 gue 2> /dev/null || /bin/true