I am having DNS issues based on client and tool (cmd prompt or browser). I would imagine its my firewall settings and was looking at the guest wlan example and how they did their firewall.
So I have a knowledge gap on the input 'REJECT' setting. I thought the router lan settings were supposed to be input ACCEPT. How does this work? And is this actually the preferred method? (I realize this is for a guest lan, but a guest lan is also the same as one of several vlans, at least in my mind). Most of my knowledge centers around the firewall being local and not on the router, so it throws me off.
So is it better to set input REJECT with a matching lan->wan forward? (along with a couple of holes for DNS and DHCP)
https://wiki.openwrt.org/doc/recipes/guest-wlan
If you look at 4a of the recipe, they have:
config zone
option name 'guest'
option network 'guest'
option input 'REJECT' <--- CAN YOU DO THIS? I thought this was bad?
option forward 'REJECT'
option output 'ACCEPT'
# Allow Guest -> Internet
config forwarding
option src 'guest'
option dest 'wan'
# Allow DNS Guest -> Router
# Client DNS queries ordinate from dynamic UDP ports (>1023)
config rule
option name 'Allow DNS Queries'
option src 'guest'
option dest_port '53'
option proto 'tcp udp'
option target 'ACCEPT'
# Allow DHCP Guest -> Router
# DHCP communication uses UDP ports 67-68
config rule
option name 'Allow DHCP request'
option src 'guest'
option src_port '67-68'
option dest_port '67-68'
option proto 'udp'
option target 'ACCEPT'
[..]
I have read or tried to read https://wiki.openwrt.org/inbox/doc/ipta … d_firewall but wasn't verbose enough (at least to me.) :-)