<DIV>
<DIV>
<DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<P>Hi-<BR>I've established a WDS static link between two APs running hostAP (call<BR>them AP:A and AP:B) under RedHat 9.0. AP:A and all wireless devices that<BR>associate with it have full access to the internet (ping, DNS, web<BR>browsing, ssh, etc). AP:B also has full access to the internet, but<BR>all wireless devices associated with AP:B can only ping (only by using IP<BR>addresses)....nothing else works( no DNS, no ssh, no web<BR>browsing, etc). below<BR>i give the architecture and the scripts on both APs (/etc/rc.local)<BR>that i use to set up the WDS link with ipforwarding and routing. could<BR>someone suggest what i'm missing in configuring the forwarding/routing<BR>of AP:B's devices?<BR></P>
<P>Thanks!</P>
<P>Mike<BR><BR>&gt; &gt; INTERNET via router (192.168.0.1)<BR>&gt; &gt; |<BR>&gt; &gt; |<BR>&gt; &gt; eth0 (192.168.0.7): AP-A :wlan0 (10.1.2.1) -- <WIRELESS 10.1.2.x A net><BR>&gt; &gt; |<BR>&gt; &gt; |<BR>&gt; &gt; |10.1.2.254/30<BR>&gt; &gt; WDS<BR>&gt; &gt; |10.1.2.253/30<BR>&gt; &gt; |<BR>&gt; &gt; AP-B:wlan0 (10.1.3.1)---<WIRELESS net 10.1.3.x B><BR>&gt;<BR>&gt;<BR>********AP:A initialization script********<BR>#!/bin/sh<BR>#<BR><BR>touch /var/lock/subsys/local<BR>echo "Local wlan0 config. stuff"<BR>/sbin/iwconfig wlan0 channel 1 ESSID "Vedado" txpower 15<BR><BR>echo "setup WDS static link"<BR>#MAC address below from AP on other end of the link<BR>iwpriv wlan0 wds_add BB:BB:BB:BB:BB:BB<BR>ip addr add 10.1.2.254/30 broadcast 10.1.2.255 dev wlan0wds0<BR>ip link set wlan0wds0 up<BR><BR>echo "Enabling IP Masquerading"<BR>/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE<BR>echo "1" &gt;/proc/sys/net/ipv4/ip_forward<BR><BR><BR>********AP:B initialization
 script********<BR><BR>#!/bin/sh<BR>#<BR>touch /var/lock/subsys/local<BR>echo "Local wlan0 config. stuff"<BR>/sbin/iwconfig wlan0 channel 1 ESSID "Vedado" txpower 23<BR><BR>echo "set up WDS static link"<BR>#MAC address below from other end of link<BR>iwpriv wlan0 wds_add AA:AA:AA:AA:AA:AA<BR><BR>ip addr add 10.1.2.253/30 broadcast 10.1.2.255 dev wlan0wds0<BR>ip link set wlan0wds0 up<BR><BR>echo "Enabling IP Masquerading"<BR>/sbin/iptables -t nat -A POSTROUTING -o wlan0wds0 -j MASQUERADE<BR>/sbin/route add -net default gw 10.1.2.254 metric 1<BR><BR>echo "1" &gt;/proc/sys/net/ipv4/ip_forward<BR><BR></P></BLOCKQUOTE></DIV></DIV></DIV><p>
                <hr size=1>Do you Yahoo!?<br>
Read only the mail you want - <a href="http://us.rd.yahoo.com/mail_us/taglines/spamguard/*http://promotions.yahoo.com/new_mail/static/protection.html">Yahoo! Mail SpamGuard</a>.