Ethernet Bridge Help
Posted: Fri Jun 28, 2013 9:41 pm
I have been following the following link to setup an Ethernet Bridge on my Fedora 18 system. I had OpenVPN working under a router config, but needed to change to an Ethernet Bridge for IP consistency purposes.
When I try to run OpenVPN the process is now failing attempting to run the bridge-start script.
Any help would be appreciated!
Here is the my server.conf
Here is my bridge-start file:
And here is my log file:
When I try to run OpenVPN the process is now failing attempting to run the bridge-start script.
Any help would be appreciated!
Here is the my server.conf
Code: Select all
script-security 3 system
up /etc/openvpn/bridge-start
down /etc/openvpn/bridge-stop
port 1194
proto udp
dev tap0
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh2048.pem
server-bridge 192.168.0.200 255.255.255.0 192.168.0.50 192.168.0.60
keepalive 10 120
comp-lzo
persist-key
persist-tun
log-append openvpn.log
verb 3
Code: Select all
#!/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.0.200"
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
Code: Select all
Fri Jun 28 16:19:19 2013 OpenVPN 2.3.2 i686-redhat-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on
Jun 3 2013
Fri Jun 28 16:19:19 2013 NOTE: when bridging your LAN adapter with the TAP adapter, note that the new bridge adapter will often take
on its own IP address that is different from what the LAN adapter was previously set to
Fri Jun 28 16:19:19 2013 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that th
is might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same su
bnet.
Fri Jun 28 16:19:19 2013 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Fri Jun 28 16:19:19 2013 Diffie-Hellman initialized with 2048 bit key
Fri Jun 28 16:19:19 2013 Socket Buffers: R=[180224->131072] S=[180224->131072]
Fri Jun 28 16:19:19 2013 TUN/TAP device tap0 opened
Fri Jun 28 16:19:19 2013 TUN/TAP TX queue length set to 100
Fri Jun 28 16:19:19 2013 /etc/openvpn/bridge-start tap0 1500 1574 init
/etc/openvpn/bridge-start: line 23: openvpn: command not found
/etc/openvpn/bridge-start: line 26: brctl: command not found
/etc/openvpn/bridge-start: line 27: brctl: command not found
/etc/openvpn/bridge-start: line 30: brctl: command not found
/etc/openvpn/bridge-start: line 34: ifconfig: command not found
/etc/openvpn/bridge-start: line 37: ifconfig: command not found
/etc/openvpn/bridge-start: line 39: ifconfig: command not found
Fri Jun 28 16:19:19 2013 WARNING: Failed running command (--up/--down): could not execute external program
Fri Jun 28 16:19:19 2013 Exiting due to fatal error