diff options
author | Parménides GV <parmegv@sdf.org> | 2015-06-05 00:02:09 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2015-06-05 00:02:09 +0200 |
commit | 8d39fbdb4980c95268249f21f3c6b8e36b22cf90 (patch) | |
tree | 5e54d8cc7ea06fdcf1aa88fd7fd54ec569a8b7a3 /app/openvpn/sample/sample-scripts/bridge-start | |
parent | 8dc4f58d96892fbfd83094fb85b1d17656035290 (diff) | |
parent | 3e849c7cbe847d9260dee7a29b241c8aef185f6d (diff) |
Merge branch 'feature/Update-ics-openvpn-from-GitHub-#7087' into develop
Diffstat (limited to 'app/openvpn/sample/sample-scripts/bridge-start')
-rwxr-xr-x | app/openvpn/sample/sample-scripts/bridge-start | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/app/openvpn/sample/sample-scripts/bridge-start b/app/openvpn/sample/sample-scripts/bridge-start deleted file mode 100755 index d20a2603..00000000 --- a/app/openvpn/sample/sample-scripts/bridge-start +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -################################# -# Set up Ethernet bridge on Linux -# Requires: bridge-utils -################################# - -# Define Bridge Interface -br="br0" - -# Define list of TAP interfaces to be bridged, -# for example tap="tap0 tap1 tap2". -tap="tap0" - -# Define physical ethernet interface to be bridged -# with TAP interface(s) above. -eth="eth0" -eth_ip="192.168.8.4" -eth_netmask="255.255.255.0" -eth_broadcast="192.168.8.255" - -for t in $tap; do - openvpn --mktun --dev $t -done - -brctl addbr $br -brctl addif $br $eth - -for t in $tap; do - brctl addif $br $t -done - -for t in $tap; do - ifconfig $t 0.0.0.0 promisc up -done - -ifconfig $eth 0.0.0.0 promisc up - -ifconfig $br $eth_ip netmask $eth_netmask broadcast $eth_broadcast |