I am trying to set-up a network printer that does not have wifi using ethernet plug into WDS client router. I set up WDS bridge using the instructions at https://openwrt.org/docs/guide-user/network/wifi/atheroswds. I tested this connection with my computer plugged into the router. When I connect to the client router I can access my servers on the main LAN. For example server 192.168.1.12 which is connected to the WDS AP is accessible from my computer plugged into the WDS client router. However my computer is inaccessible from the server. If I ssh into the server I cannot even ping the client router which I am plugged into.
Is there some sort of firewall setting that is blocking the host from accessing the client?
How can I bridge these two devices seamlessly so they can all see each other? edit: I can ping all devices if I ssh into the main router (192.168.1.1)
Here is those files. Since I tried this on two routers and both have same problem I am thinking it might be a problem on the host somewhere so I included those files too.
Does lan contain all of the networks? Make sure it covers Client from main and AP on the device itself. There should be no problem with firewall because all of the networks are being kept in single zone so whether the firewall is active or not does not make a difference. After all the config seems okay, there must be something else going on.
I don't think so either but does it damage? I want to be able to have it working as a wifi client and plugged in client eventually and then I will need it I believe.
You need to see on the 2nd router that all of the Wi-Fi networks (STA and AP) along with any physical ports (from where you would like to connect to 2nd router) are in the same zone (mostly it would be lan). This is how the WDS setup works. It does not interfere with firewall in anyway but to be on the safe side, disable firewall and stop it and then you should check again whether you can ping across your network and access it from all sides.
everything is in lan network but still not working.
Also I dont know if this is related but I cannot use hostnames as addresses only IP from the 2nd router. For example if I ssh into the 2nd router :
root@OpenWrt:~# ping color_printer
ping: bad address 'color_printer'
root@OpenWrt:~# ping 192.168.1.194
PING 192.168.1.194 (192.168.1.194): 56 data bytes
64 bytes from 192.168.1.194: seq=0 ttl=64 time=5.330 ms
but on a computer connected to the main router :
PING color_printer.lan (192.168.1.194) 56(84) bytes of data.
64 bytes from COLOR_PRINTER.lan (192.168.1.194): icmp_seq=1 ttl=64 time=12.2 ms
I believe there's an option in the DHCP and DNS config that forces hostnames to have a suffix in there name such as .lan. This could be the reason why you cant use just the hostname because you also need to put that suffix to be able to ping.
About your WDS config I don't think you can solve your problems without reconfiguration. Please reset your WDS client router and reconfigure it from scratch. If you copied any code the last time, don't do it now. Preferably write all the config again or do it from LuCI.
I couldn't solve it any other way. I took your advice and reset my routers. Don't know if it is what helped but I reset the main router and realised it was an older version of openwrt so I upgraded it to 18.06.1 and now it all works well from the WDS point. There seem to maybe be other issues but I will look into those and if needed will post a seperate topic for those.