Hello, I'm doing a personal project to learn more about openwrt. I have installed openwrt in a raspberry that i have conected to my domestic router for and i'm trying to block domains of diferents webs with iptables. I would like to block these domanis to not be able to acces them from any computer of my choice that is conected to the raspberry. also I would like to block the domains for the raspberry. Is it possible, because i have been trying and looks like the rules of iptable are not beeing applied.
This is the rule that i have been trying: iptables -A OUTPUT -p tcp -d www.domaintoblock.com -j DROP
I tried with INOUT and FORWARD aswell unsuccessfully. Its possbile to do the same(block a domain) but just for a device with ip 192.168.1.54 (for exemple).
I don't know if its because i'm applying the rules to another interfaces or something else but i can't fix it.
Maybe is not a good explanation but I'm new in this word and its difficult to explain.