Hello all! Im successfully compiled and installed openwrt on tp-link wa801nd v5. Now im trying convert it to router. I was setup DHCP and LAN on wireless interface only. WAN is only 1 ethernet port on AP.
Wireless is 192.168.3.1/24, dhcp on, firewall zone LAN.
Ethernet 0 is 192.168.0.229/24, gw 192.168.0.1, dns 192.168.0.1, DHCP on interface off, firewall zone WAN.
But with this settings openwrt not pinging wan subnet. What im doing wrong?
P.S: Switch is not configured. Luci Switch "switch0" has an unknown topology - the VLAN settings might not be accurate.
Moving a single ethernet port device from LAN-only to a router should be a rather trivial matter, but it's not very thoroughly documented. Personally, with single physical port devices, I find it easiest to change LAN over to the 'lo' device and create and configure WAN using the 'eth0' device, everything else (including the firewall config) left completely default.
In the case of the OP, this would amount to this /etc/config/network:
You should not have to change anything about routes or firewall. Even on single-port routers, OpenWrt comes with perfectly appropriate firewall rules for a separate LAN and WAN.
At the moment, however, your "LAN" is dangling in the breeze. It has nothing assigned to it, and nothing to bridge. I would suggest assigning option ifname 'lo'. Also, you do have a completely unnecessary, and possibly even counterproductive "lan_dev" that is assigned to eth0 -- that will have to go anyway since your eth0 is assigned to WAN below.
I'll second @takimata here. You don't need the bridge in LAN interface anymore. It should only be connected to the wireless interface. Post here the contents of /etc/config/wireless to verify that everything looks good.
JFTR: My suggestion to not just leave LAN hanging without an interface but to assign the lo loopback interface to it is not just out of the blue. If you run a service on the router that needs to bind to the LAN interface, I ran into massive problems if the LAN interface is only there when wifi is up. Also, there are devices with only one physical interface and no wifi (think NAS boxen). I actually went to great lengths and created dummy interfaces before finding out that it's stupidly easy just to assign lo.
Edit: A long time ago, I started on a wiki page with the intent of outlining how to re-configure single-port devices for LAN and WAN, but it never went very far. Should we have an RFC and set this up? I have the feeling, this is an FAQ topic long overdue for a generic best-practice answer.