LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Wireless + IPTV with Atheros ath9k (https://www.linuxquestions.org/questions/linux-networking-3/wireless-iptv-with-atheros-ath9k-779521/)

zibalas 01-03-2010 02:33 AM

Wireless + IPTV with Atheros ath9k
 
Hello,

I'm trying to make IPTV work on linux router that i made. Here's my setup: Athlon XP 2400+, two realtek lan cards and dlink DWA-552 (atheros 5416). On this hardware i have running alpine linux (kernel 2.6.30.10-grsec). I'm using hostapd to configure wireless access point. I've setup IGMP Proxy for lan(eth1) and wlan(wlan0). IPTV works fine on lan, but if i try to watch IPTV on wlan the whole network breaks down. VLC displays first couple of frames and then routers times out. When i kill VLC everything goes back to normal. I would really appreciate any kind of help. I'll provide any additional info necessary.

Regards,
Rick

igmpproxy.conf
Quote:

quickleave
phyint eth0 upstream ratelimit 0 threshold 1
altnet 10.0.101.0/24

phyint eth1 downstream ratelimit 0 threshold 1
phyint wlan0 downstream ratelimit 0 threshold 1

phyint lo disabled
phyint mon.wlan0 disabled
phyint wmaster0 disabled
Quote:

alpine:~# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Quote:

alpine:~# iptables -t nat --list
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

nimnull22 01-03-2010 10:44 AM

Hi.

If I understood you right you have:
Computer with 2 ethernet cards + wlan card.
One eth0 you use for uplink to internet, second eth1 for local network and wlan card for wireless network.
You can use IPTV from wired LAN, but can't from wireless.

Am I right?

zibalas 01-03-2010 10:51 AM

Quote:

Originally Posted by nimnull22 (Post 3812584)
Hi.

If I understood you right you have:
Computer with 2 ethernet cards + wlan card.
One eth0 you use for uplink to internet, second eth1 for local network and wlan card for wireless network.
You can use IPTV from wired LAN, but can't from wireless.

Am I right?

Correct. I've tried to update to 2.6.32.2-grsec kernel - same thing. I've also tried compat-wireless-2.6.32.2 driver - no luck :(

nimnull22 01-03-2010 10:54 AM

What is the routing table on your linux route computer:
route -n

zibalas 01-03-2010 11:00 AM

Quote:

Originally Posted by nimnull22 (Post 3812595)
What is the routing table on your linux route computer:
route -n

Quote:

alpine:~# route -n
192.168.0.0 0.0.0.0 255.255.255.128 U 0 0 0 br0
88.222.24.0 0.0.0.0 255.255.252.0 U 202 0 0 eth0
0.0.0.0 88.222.27.254 0.0.0.0 UG 202 0 0 eth0
and to answer your next question

Quote:

alpine:~# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.000e2e590648 no wlan0
eth1
EDIT: same result with this igmpproxy.conf

Quote:

quickleave
phyint eth0 upstream ratelimit 0 threshold 1
altnet 10.0.101.0/24
phyint br0 downstream ratelimit 0 threshold 1
phyint lo disabled
phyint eth1 disabled
phyint wlan0 disabled
phyint mon.wlan0 disabled
phyint wmaster0 disabled

nimnull22 01-03-2010 11:10 AM

Quote:

Originally Posted by zibalas (Post 3812601)
alpine:~# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.000e2e590648 no wlan0
eth1

And how can you explain it. Where is the bridge mode enabled where isn't?
And why do you need bridge at all. Packets from your wireless LAN should go directly to eth0.

zibalas 01-03-2010 11:22 AM

Quote:

Originally Posted by nimnull22 (Post 3812608)
And how can you explain it. Where is the bridge mode enabled where isn't?
And why do you need bridge at all. Packets from your wireless LAN should go directly to eth0.

I need bridge because I want to treat wlan0 and eth1 as one device. I don't really need separate ip addresses for those two interfaces. But the problem is not the bridge. I had same results without the bridge. Just to make sure I've removed the bridge, once again got same result. Here's my new route -n

Quote:

alpine:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.128 U 0 0 0 eth1
192.168.0.128 0.0.0.0 255.255.255.128 U 0 0 0 wlan0
88.222.24.0 0.0.0.0 255.255.252.0 U 202 0 0 eth0
0.0.0.0 88.222.27.254 0.0.0.0 UG 202 0 0 eth0

zibalas 01-03-2010 11:34 AM

I don't know if this will help or introduce more confusion but here goes. M y eth1 (LAN card) is actually plugged in DIR-300 which acts as access point / switch. If i connect to DIR-300 using wireless IPTV woks fine. DIR-300 has a "Wireless Enhance Mode on/off" setting under multicast settings. If i turn "Wireless Enhance Mode" off then I get same result with DIR-300: VLC displays couple of frames and stops working meanwhile ping to DIR-300 increases and eventually times out. IPTV works on DIR-300 wired connection. So as far as I understand i need to turn on "Wireless Enhance Mode" (whatever that is) on my wlan0. Does anyone have an idea what "Wireless Enhance Mode" might be?

nimnull22 01-03-2010 11:42 AM

Tell please your network configuration:
what are IPs on your wireless network?
what is GW for your network?

zibalas 01-03-2010 11:48 AM

Quote:

Originally Posted by nimnull22 (Post 3812645)
Tell please your network configuration:
what are IPs on your wireless network?
what is GW for your network?

Gateway is 192.168.0.1 (eth1)

Quote:

alpine:~# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:0E:2E:59:06:48
inet addr:192.168.0.1 Bcast:192.168.0.128 Mask:255.255.255.128
inet6 addr: fe80::20e:2eff:fe59:648/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:38327 errors:0 dropped:0 overruns:0 frame:0
TX packets:37891 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9179449 (8.7 MiB) TX bytes:17129152 (16.3 MiB)
Interrupt:16 Base address:0xc000
Quote:

alpine:~# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:22:B0:BD:29:BA
inet addr:192.168.0.129 Bcast:192.168.0.255 Mask:255.255.255.128
inet6 addr: fe80::222:b0ff:febd:29ba/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4295 errors:0 dropped:0 overruns:0 frame:0
TX packets:7904 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:788885 (770.3 KiB) TX bytes:5538086 (5.2 MiB)
Quote:

# dhcpd.conf

default-lease-time 600;
max-lease-time 7200;

ddns-update-style none;

authoritative;

subnet 192.168.0.0 netmask 255.255.255.128 {
range 192.168.0.50 192.168.0.127;
option routers 192.168.0.1;
option domain-name-servers 88.222.0.1, 88.223.0.1, 212.59.1.1;
}

subnet 192.168.0.128 netmask 255.255.255.128
{
range 192.168.0.150 192.168.0.254;
option routers 192.168.0.129;
option domain-name-servers 88.222.0.1, 88.223.0.1, 212.59.1.1;
}

nimnull22 01-03-2010 12:00 PM

It looks like your DHCP can lease Ip from two ranges:
1. range 192.168.0.50 192.168.0.127
2. range 192.168.0.150 192.168.0.254

IPTV doesn't work for both IP ranges?

zibalas 01-03-2010 12:14 PM

1 Attachment(s)
Quote:

Originally Posted by nimnull22 (Post 3812672)
It looks like your DHCP can lease Ip from two ranges:
1. range 192.168.0.50 192.168.0.127
2. range 192.168.0.150 192.168.0.254

IPTV doesn't work for both IP ranges?

When i used bridge there was only one IP range. So i don't think what's the problem. Currently wlan0 range is 192.168.0.150-192.168.0.254 and eth1 192.168.0.50-192.168.0.127.

Picture tells a 1000 words. So here's my network :)

zibalas 01-03-2010 12:21 PM

1 Attachment(s)
... and also with Wireless Enhance Mode OFF ...

The idea is to get rid of DIR-300. That's why i have wlan0.

nimnull22 01-03-2010 02:17 PM

I suggest to find manual for DIR-300 and find out what is "Wireless Enhance Mode".
Because may be you need to do something similar on alpine-linux.

zibalas 01-04-2010 10:56 AM

Quote:

Originally Posted by nimnull22 (Post 3812807)
I suggest to find manual for DIR-300 and find out what is "Wireless Enhance Mode".
Because may be you need to do something similar on alpine-linux.

I'm guessing that "Wireless Enhance Mode" might be setting multicast rate to some value. On linksys routers and apple airport you must set multicast rate to 6mbps or something in order to make IPTV work. Unfortunately ath9k doesn't support iwpriv mcast_rate :( And i can't get madwifi driver to work (but that's a topic for another thread) Did anyone else encountered this problem?


All times are GMT -5. The time now is 03:27 PM.