File: bridge-stop

package info (click to toggle)
openvpn 2.7.0~beta1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 11,164 kB
  • sloc: ansic: 101,707; sh: 6,798; makefile: 937; python: 271; perl: 66
file content (18 lines) | stat: -rwxr-xr-x 313 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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