Hello,
You seem to have gone a bit overboard. This is what I use:
auto eth0
iface eth0 inet static
address 192.168.10.255
netmask 255.255.255.0
# Virtual device for VPN implementation
auto tap0
iface tap0 inet static
address 10.8.0.1
netmask 255.255.255.0
pre-up tunctl -u uml-net
pre-down tunctl -d tap0
auto br0
iface br0 inet static
address 192.168.10.1
network 192.168.10.0
broadcast 192.168.10.255
netmask 255.255.255.0
bridge_ports tap0 eth0
I have a special case here though, I need to create the TAP0 device
without using OPENVPN.
Anyway Openvpn uses the device later and it works fine. You should see
something like this
conserning the eth and br devices:
br0 Link encap:Ethernet HWaddr 00:01:80:59:3D:70
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::201:80ff:fe59:3d70/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:290631 errors:0 dropped:0 overruns:0 frame:0
TX packets:326005 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:133155342 (126.9 MiB) TX bytes:286589560 (273.3 MiB)
eth0 Link encap:Ethernet HWaddr 00:01:80:59:3D:70
inet6 addr: fe80::201:80ff:fe59:3d70/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:290650 errors:1 dropped:0 overruns:0 frame:1
TX packets:324177 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:138090321 (131.6 MiB) TX bytes:286414902 (273.1 MiB)
Interrupt:177 Base address:0xe200
Notice that there will be no IP on the eth0 device. That is correct as
it is doing bridging.
Kind Regards
Etienne
Martin Müller - Rudolf Hausstein OHG wrote:
Hello!
Im running openvpn 2.0-1sarge2 on Debian Sarge 3.1. If I put up my
br0, all traffic stops on my lan-Interface eth0. If ping eth0 from the
lan, there is no response. If I ping the interface from the server,
there is also no response.
ifconfig shows lo, br0,tap0, tap1, tap2, eth0 and eth1
My config:
lan eth0 192.168.100.99
wan eth1 83.64.XXX.XXX
>>server.config
port 1194
proto udp
dev tap
tun-mtu 1500
fragment 1300
mssfix
server-bridge 192.168.100.1 255.255.255.0 192.168.100.210 192.168.100.220
keepalive 10 45
user nobody
group nogroup
comp-lzo
persist-key
persist-tun
verb 5
>> /etc/network/interfaces
auto br0
iface br0 inet static
address 192.168.100.5
netmask 255.255.255.0
network 192.168.100.0
broadcast 192.168.100.255
pre-up /sbin/ip link set eth0 up
pre-up /usr/sbin/openvpn --mktun --dev tap0
pre-up /usr/sbin/openvpn --mktun --dev tap1
pre-up /usr/sbin/openvpn --mktun --dev tap2
pre-up /sbin/ip link set tap0 up
pre-up /sbin/ip link set tap1 up
pre-up /sbin/ip link set tap2 up
pre-up /usr/sbin/brctl addbr br0
pre-up /usr/sbin/brctl addif br0 eth0
pre-up /usr/sbin/brctl addif br0 tap0
pre-up /usr/sbin/brctl addif br0 tap1
pre-up /usr/sbin/brctl addif br0 tap2
post-down /usr/sbin/brctl delbr br0
---------
How must I configure the IPs to have a bridged interface? The
documentation is in this case very thin.
Thanks for your assistence!
Martin
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users