Hi,
I have two NICs inside my OMV (eth0 and eth1). I added a TAP device (tap0), which i want to bridge with eth1. I can do so with a small script that uses ifconfig [1]. But then OMV gets confused and shows eth1 still configured as STATIC device. Sometimes it also shows a second tap device which doesnt exist, according to ifconfig. br0 is shown by the way, but unable to configure via the GUI Menu.
What is the right way to keep eth1 unconfigured and to set up a permanent bridge which then could also be used for the iptables rules?
[1]
Bash
#!/bin/bash
#################################
# 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="eth1"
eth_ip="192.168.0.3"
eth_netmask="255.255.255.0"
eth_broadcast="192.168.0.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
Alles anzeigen