I have a problem and I would be graetful for help.
My network looks like that:
Serv (linux)
- eth0 connected to cable which available internet to local network
- eth1 connected to local network
ifconfig -a
br0 Link encap:Ethernet HWaddr 00:02:44:23:F4:AF
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:38118 errors:0 dropped:0 overruns:0 frame:0
TX packets:33936 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3636640 (3.4 Mb) TX bytes:20039340 (19.1 Mb)
eth0 Link encap:Ethernet HWaddr 00:C0F:EF:AB:5D
inet addr:10.1.1.8 Bcast:10.1.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:121141 errors:0 dropped:0 overruns:0 frame:0
TX packets:37692 errors:0 dropped:0 overruns:0 carrier:0
collisions:61 txqueuelen:1000
RX bytes:25837127 (24.6 Mb) TX bytes:4288421 (4.0 Mb)
Interrupt:12 Base address:0xe800
eth1 Link encap:Ethernet HWaddr 00:02:44:23:F4:AF
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:39324 errors:0 dropped:0 overruns:0 frame:0
TX packets:34745 errors:0 dropped:0 overruns:0 carrier:0
collisions:31 txqueuelen:1000
RX bytes:4349991 (4.1 Mb) TX bytes:20622318 (19.6 Mb)
Interrupt:11 Base address:0xec00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:351 errors:0 dropped:0 overruns:0 frame:0
TX packets:351 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:49272 (48.1 Kb) TX bytes:49272 (48.1 Kb)
tap0 Link encap:Ethernet HWaddr 00:FF:1A:2C:16:B7
UP BROADCAST
RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:245 errors:0 dropped:0 overruns:0 frame:0
TX packets:362 errors:0 dropped:300 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:34303 (33.4 Kb) TX bytes:35133 (34.3 Kb)
root@serv:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 br0
localnet * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 10.1.0.1 0.0.0.0 UG 1 0 0 eth0
root@serv:~#
DEsktop (linux)
-eth0 192.168.1.2
Computer of my friend (windows XP) - have to be connected under adress 192.168.1.11 to my local network
I have decided to make openvpn Ethernet Bridging according to the instruction
which is placed here
http://openvpn.sourceforge.net/install32.html and here
http://openvpn.sourceforge.net/bridge.html
Summarizing I wanted to run the Broadcast bacause i want to play in games and I want these games recognized network as a local network
Supposedly everything is ok because computers see each other and ping without problem BUT Reply only computers from MY network
ping -b 192.168.1.255 on computer 192.168.1.2 don't get reply form my firnd's computer
root@gentoo tt # ping 192.168.1.255 -b
WARNING: pinging broadcast address
PING 192.168.1.255 (192.168.1.255) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=0.108 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.615 ms (DUP!)
what is weird ping published from my friend's computer under Windows (192.168.1.11)
ping 192.168.1.255 on this ping reply only computer 192.168.1.1 but 192.168.1.2 don't reply
Computer of my friend (192.168.1.11) in network enviroment don't see server 'samba' created on my serwer (192.168.1.1)
I have to do //192.168.1.1/
SO brodcast don't pass
NOw I write how I configured openVpn on my server (192.168.1.1)
firstly /etc/rc.d/rc.openvpn
# If bridging and tun/tap are compiled into the kernel, these two statements
# aren't needed:
/sbin/modprobe tun
/sbin/modprobe bridge
/usr/sbin/openvpn --mktun --dev tap0
/usr/local/sbin/brctl addbr br0
/usr/local/sbin/brctl addif br0 tap0
/usr/local/sbin/brctl addif br0 eth1
/sbin/ifconfig tap0 0.0.0.0 promisc up
/sbin/ifconfig eth1 0.0.0.0 promisc up
/sbin/ifconfig br0 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255
now I am engage openvpna /usr/sbin/openvpn --config /etc/opemvpn/config
congig looks like that
local xxx.xxx.xxx.xxx
# IP settings
port 8888
dev tap0
# crypto config
secret key
# restart control
persist-key
persist-tun
ping-timer-rem
ping-restart 60
ping 10
# compression
comp-lzo
# UID
user nobody
group nobody
# verbosity
verb 8
# end of confi
This a config from my friend's computer under Windos (192.168.1.11)
# OpenVPN bridge config, windows client side
remote 195.205.151.142
port 8888
dev tap
# This is the address the client will
# "appear as" when it connects to the
# bridged LAN.
ifconfig 192.168.1.11 255.255.255.0
#ifconfig-nowarn
secret key
ping 10
comp-lzo
verb 3
# end of
TT (14:08)
config
Now is my question, why these broadcast don't pass ?
and where I did a mistake ?