Routing packet on bridge with wireless
Hello!
I have bridge from eth0 (wired interface) and wlan0 (wireless interface), wlan0 connected with router via wpa_supplicant.
~ # brctl show
bridge name bridge id STP enabled interfaces br0 8000.544a1612d064 no eth0
wlan0
~ # ip l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master
br0
link/ether f8:dc:7a:07:20:76 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 qlen
100
link/ether 54:4a:16:12:d0:64 brd ff:ff:ff:ff:ff:ff
4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
link/ether 54:4a:16:12:d0:64 brd ff:ff:ff:ff:ff:ff~ # ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master
br0
link/ether f8:dc:7a:07:20:76 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 qlen
100
link/ether 54:4a:16:12:d0:64 brd ff:ff:ff:ff:ff:ff
4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
link/ether 54:4a:16:12:d0:64 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.3/24 scope global br0 valid_lft forever preferred_lft forever
~ # ip r
192.168.1.0/24 dev br0 src 192.168.1.3
Unfortunately I not get answer on pings, but I see what packet use wlan0 as out interface.
~ # ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
^C
--- 192.168.1.1 ping statistics ---
9 packets transmitted, 0 packets received, 100% packet loss
Can solve this problem if I will be use netfilter.
Thank you and excuse my bad english.