Page 1 of 1

Setting up a Bridge Connection Questions

Posted: Sat Mar 05, 2011 2:54 am
by EmmanEsguerra
Im very new to OpenVPN, im also running OpenVPN in ubuntu both on 10.4

please help me how to setup a bridge connection with 2 network interface using eth0 and eth1.

eth0 is directly connected thru the internet and eth1 is on lan.

also im not sure if im complete on the requirements on set upping a network interface? please do so to check if im complete.

lastly

should i open port 5000? and what about TUN/TAP devices? is it already configured?

i hope i make it clear to you guys, thanks and more power!

Re: Setting up a Bridge Connection Questions

Posted: Sat Mar 05, 2011 3:44 am
by Douglas
EmmanEsguerra wrote:Im very new to OpenVPN, im also running OpenVPN in ubuntu both on 10.4

please help me how to setup a bridge connection with 2 network interface using eth0 and eth1.

eth0 is directly connected thru the internet and eth1 is on lan.

also im not sure if im complete on the requirements on set upping a network interface? please do so to check if im complete.

lastly

should i open port 5000? and what about TUN/TAP devices? is it already configured?

i hope i make it clear to you guys, thanks and more power!
Please post all configs (server and client) with comments stripped.

Re: Setting up a Bridge Connection Questions

Posted: Sat Mar 05, 2011 6:05 am
by EmmanEsguerra
auto eth1
iface eth1 inet dhcp

auto lo br0

iface lo inet loopback

iface br0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports eth0

iface eth0 inet manual
up ip link set $IFACE up promisc on
down ip link set $IFACE down promisc off


----------------
This is my /etc/network/interface config.. i just follow the configuration in https://help.ubuntu.com/community/OpenVPN and add eth1 for my LAN connection.. i just want a bridge connection with eth0 and eth1. the eth0 must be connected to the internet and eth1 is for lan for school.
but im not sure which of the eth will act as a bridge.

thanks for the reply!