OpenWrt Forum Archive

Topic: Routed client using masquerade.

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Dear all,

First of all, apologies I'm a complete networking novice but desperately willing to learn. Apologies for mistakes in terminology, I hope my problem is clear.

I'm trying to extend the range of my home router wlan (D-link DR-615, as of yet not openwrt supported) with a TP-Link TLWR841N. Seeing that WDS out of the question with the D-link, I tried the Routed client using masquerade howto. And I managed to succesfully get the TP-link (client) connect with my AP.

Unfortunately it didn't seem to have the result I hoped for, it seems my computer still connects to the WLAN interface of my AP and not my client. While my client succesfully connects to the AP and gets a DHCP lease.

Here is my config, I hope it is sufficient.

network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0

network.lan=interface
network.lan.ifname=eth0
network.lan.type=bridge
network.lan.proto=static
network.lan.ipaddr=192.168.1.1
network.lan.netmask=255.255.255.0

network.wan=interface
network.wan.proto=dhcp

network.@switch[0]=switch
network.@switch[0].name=eth0
network.@switch[0].reset=1
network.@switch[0].enable_vlan=1
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device=eth0
network.@switch_vlan[0].vlan=1
network.@switch_vlan[0].ports=0 1 2 3 4


wireless.radio0=wifi-device
wireless.radio0.type=mac80211
wireless.radio0.channel=3
wireless.radio0.macaddr=xx:xx:xx:xx:xx:xx
wireless.radio0.hwmode=11ng
wireless.radio0.htmode=HT20
wireless.radio0.ht_capab=SHORT-GI-20 SHORT-GI-40 TX-STBC RX-STBC1 DSSS_CCK-40
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device=radio0
wireless.@wifi-iface[0].ssid=HAL 2.0
wireless.@wifi-iface[0].network=wan
wireless.@wifi-iface[0].encryption=psk2
wireless.@wifi-iface[0].mode=sta
wireless.@wifi-iface[0].key=xxxxxxx

Also:

client can ping AP
AP cannot ping client
computer cannot ping client
computer can ping AP

If anyone can point me to the right track, thanks in advance.

(Last edited by Digital_babu on 29 Apr 2012, 16:19)

Make sure the LAN and WAN side of the OpenWrt router use different subnets.

The discussion might have continued from here.