Wednesday, July 27, 2011

OpenVPN - Bridging Mode

Scope:  OpenVPN 2.2.0 on CentOS 5.6

Previously I documented the install of OpenVPN on Debian in a bridged configuration.  Later I installed a similar setup on CentOS 5.6 and found that some additional steps were required.
 
As a place holder and reminder....
 
Create ifcfg-br0 file.
 
cat /etc/sysconfig/network-scripts/ifcfg-br0

DEVICE=br0
TYPE=Bridge
IPADDR=192.168.0.100
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
ONBOOT=yes

 
Modify the ifcfg-eth0 file (or the interface file you are creating the bridge to)
 
cat /etc/sysconfig/network-scripts/ifcfg-eth0
 
DEVICE=eth0
TYPE=ETHER
BRIDGE=br0
ONBOOT=yes

 
Set Scripts to run at start-up.