Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Playing with DD-WRT on a Linksys router, I noticed that it offers the ability to block certain domains. I'm not clear on the exact function of that blocking, but I assume that it looks up the DNS entry(s) for the user listed domains, and then does something.
Does anyone here know what the mechanism is for doing this?
Even better, is there a CLI string which will accomplish the same or similar thing on a system with iptables?
Custom applications (like the one running in the proprietary firewalls) can do a lot of stuff which may not have
a direct easy achieve-able CLIs in linux box
if you want to block certain domains, I would suggest using tproxy with squid and then using squid config to
select the domains which you want to allow/deny. This is completely transparent and no config needed on the
part of the other networked systems.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.