File: bridge-stop

package info (click to toggle)
openvpn 2.1.3-2%2Bsqueeze3
  • links: PTS
  • area: main
  • in suites: squeeze-lts
  • size: 7,844 kB
  • ctags: 8,833
  • sloc: ansic: 58,640; sh: 5,290; python: 501; makefile: 312; perl: 234
file content (18 lines) | stat: -rwxr-xr-x 315 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

####################################
# 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