Posted: Tue Aug 14, 2018 19:51 Post subject: OpenDNS block ports and allow others to filter by mac
Hello, I am trying to configure OpenDNS in a Linksys WRT54G2 / GS2 with Frmware: DD-WRT v24-sp2 (07/08/10) micro-build 14896
Reading doc and thanks to the forum is taking shape, but I need to define more restrictions, these are:
1. block redirect / block port 53 for all the network
1.1 except some computers defined by me (this works filtering by ip, but not by mac, rule # R1 fails)
2. Block all ports except 53,80,443 for the entire network (rule # R2 rule fails)
3. except for some equipment defined by me.
The network is:
NET: 172.16.0.0/255.255.0.0
Local DNS: 172.16.0.1 where the forward does it at 208.67.222.220
Router dd-WRT LAN: 172.16.0.53
Router dd-WRT WAN: 192.168.0.2
INTERNET LAN Router: 192.168.0.1
I made several modifications, based on documentation, but they did not work so I left the basics. Realemte I have a problem but I do not know what else to look ...
Are they syntax errors or do I have to build some module to make it work?
Is there a tool to generate the iptabels rules in dd-wrt?
Hello again eibgrad, (I know they are similar post ..)
Now it is working correctly with mac filtering and redirection of port 53. What I can not do is block all ports except 80 and 445, according to the manual I understand that it is:
---
But there must be something wrong because the only rule that works is the DROP (after applying it blocks the icmp and internet access), although from iptables -vnL FORWARD I do not see changes in the rules