Skip to content

Instantly share code, notes, and snippets.

@aschmoe
Last active August 29, 2015 14:21
Show Gist options
  • Save aschmoe/c26e0963fa843bc3f049 to your computer and use it in GitHub Desktop.
Save aschmoe/c26e0963fa843bc3f049 to your computer and use it in GitHub Desktop.
Openvpn only works the first time...
# Create up script
sudo vi /etc/openvpn/up.sh
# Create down script
sudo vi /etc/openvpn/down.sh
#!/bin/sh
BR=$1
DEV=$2
/sbin/brctl delif $BR $DEV
/sbin/ip link set "$DEV" down
#!/bin/sh
BR=$1
DEV=$2
MTU=$3
/sbin/ip link set "$DEV" up promisc on mtu "$MTU"
/sbin/brctl addif $BR $DEV
Now, we'll create a "down" script.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment