LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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

Closed Thread
 
LinkBack Search this Thread
Old 12-20-2012, 07:21 AM   #1
artaxerxe
LQ Newbie
 
Registered: Dec 2011
Posts: 13

Rep: Reputation: Disabled
How to block traffic for specific websites.


I'm trying to put some restrictions for specific users on my LAN. So I need to restrict access to a webpage for a specific user. What suggestions do you have for this? Is that possible through iptables (remember: restrict on webpage, not on IP)? I know that can be possible through squid (for the whole lan I think), but I would be more glad to implement it through iptables or something like this if possible.
 
Old 12-20-2012, 08:50 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
you really need a proxy for this. Firewall rules just don't work in a situation like this. there is the string match module for iptables, but it's use is very limited really, and easy to get around. you need to work at the right protocol layer, which si a proxy server that processes data at HTTP level, not IP level.
 
Old 12-20-2012, 08:56 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

http://www.linuxquestions.org/questi...-a-4175442298/
 
  


Closed Thread

Tags
centos, iptables, restrict, webpage


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Block URLS/websites or Allow only Specific Sites in a Slack anoopch Slackware 4 10-21-2010 01:22 PM
[SOLVED] Sendmail: block specific sender to specific recipient - How? thekillerbean Linux - Server 6 07-13-2010 04:13 AM
How to allow/block application-specific outbound traffic? vansteen Linux - Networking 7 08-13-2009 09:56 AM
How to block specific Websites? alfredh Suse/Novell 3 06-24-2006 05:17 AM
how to block websites .. huno Linux - Software 5 04-22-2004 08:31 PM


All times are GMT -5. The time now is 05:17 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