aboutsummaryrefslogblamecommitdiff
path: root/sample-scripts/bridge-stop
blob: 81927794c7e44354d5fa84dd425e5e456e9acf94 (plain) (tree)
1
         
















                                                      
#!/bin/sh

####################################
# Tear Down Ethernet bridge on Linux
####################################

# Define Bridge Interface
br="br0"

# Define list of TAP interfaces to be bridged together
tap="tap0"

ifconfig $br down
brctl delbr $br

for t in $tap; do
    openvpn --rmtun --dev $t
done