LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-17-2009, 04:25 PM   #1
linuxbird
Member
 
Registered: Feb 2006
Distribution: Slackware
Posts: 316

Rep: Reputation: 20
Router domain blocking


I am using a slackware box as a router (2 nics).

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?

Thanks.
 
Old 09-18-2009, 09:48 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
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.
 
  


Reply

Tags
blocking, iptables


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid Blocking Domain (but not in search engine) allancth Linux - Server 6 07-14-2010 11:41 AM
relaydelay blocking fake domain noir911 Linux - Server 0 08-12-2008 01:21 AM
Blocking a domain referrer from a webserver? Seventh Linux - Security 1 02-06-2007 04:28 PM
Domain and specific 'word' blocking in firewall2 hiplainsdrifter Linux - Newbie 5 04-07-2004 03:54 PM
Blocking Incoming e-mail from a domain using iptables Zychior Linux - Security 2 04-06-2004 12:13 PM


All times are GMT -5. The time now is 09:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration