Openvpn – Network-Manager with bridge interface and OpenVPN

bridgenetworkmanageropenvpn

I'm running Debian Wheezy with Gnome-Shell.
My current network interface configuration is this:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

# Bridge setup
# allow-hotplug br0
auto br0 
iface br0 inet static
  address 192.168.0.1
  netmask 255.255.255.0
  bridge_ports none
  bridge_stp off 
  bridge_fd 0
  bridge_maxwait 0

I'm using br0 for virtualisation.

My problem is now that I'm losing the support of Network-Manager for eth0. So I can't use the OpenVPN plugin anymore to quickly connect to my VPN.

Has anyone done such a setup and knows how to configure this proper?

Best Answer

A couple of things,

  1. you didn't bind your bridge to a device
  2. Your still attempting to use you Ethernet device normally

try this: -

# vim /etc/network/interfaces

#The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet manual      # set pass through and use br0 for networking

# Bridge setup
allow-hotplug br0
auto br0 
iface br0 inet static
  address 192.168.0.1
  netmask 255.255.255.0
  network 192.168.0.0
  broadcast 192.168.0.255
  gateway 192.168.0.254    # make sure this gateway address is correct
  bridge_ports eth0        # bind to device here
  bridge_stp off 
  bridge_fd 0
  bridge_maxwait 0