LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-07-2009, 01:08 AM   #1
alsharifhoussam
Member
 
Registered: Apr 2005
Distribution: Fedora 14
Posts: 109

Rep: Reputation: 15
deny addresses


Hello,
I had a Linux as router and several computers connected to it, is there a way to deny some websites for specific IPs on the LAN?
Thanks
 
Old 08-07-2009, 01:13 AM   #2
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Thumbs up

Quote:
Originally Posted by alsharifhoussam View Post
Hello,
I had a Linux as router and several computers connected to it, is there a way to deny some websites for specific IPs on the LAN?
Thanks
yes, it is possible through SQUID. You can set up a transparent proxy.


See this http://www.cyberciti.biz/tips/linux-...uid-howto.html
 
Old 08-07-2009, 01:26 AM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
I guess this can also implemented through tcp wrappers. Not very sure, but yes if this works it would be much easier.

http://www.linuxtopia.org/online_boo...pwrappers.html

There are two files basically.
- /etc/hosts.allow
- /etc/hosts.deny


Examples;
You can put /etc/hosts.allow
Code:
ALL EXCEPT .ORKUT.COM      :     192.168.1.
ALL EXCEPT .FACEBOOK.COM   :     192.168.1.27
This will block orkut.com for everyone in network 192.168.1.X and block facebook.com & orkut.com both for 192.168.1.27

Hope this helps. This should work.
 
  


Reply



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
pure-ftpd - allow/deny specific ip addresses proNick Linux - Server 3 08-04-2009 12:32 PM
Binding 2 NICs (MAC addresses) to 2 IP Addresses in same Subnet RedHat EL4.0 skhira Linux - Networking 13 02-24-2008 08:16 PM
Binding 2 NICs (MAC addresses) to 2 IP Addresses in same Subnet RedHat EL4.0 skhira Linux - Networking 1 02-09-2008 07:17 AM
mechanics of mapping process memory addresses to physical addresses on amd64 Tischbein Linux - Kernel 2 02-01-2007 08:09 PM
never_direct deny all vs. always_direct deny all simplyrahul Linux - General 1 02-16-2005 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:11 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration