?
Solved

IPTABLES

Posted on 2006-07-20
5
Medium Priority
?
375 Views
Last Modified: 2010-04-21
Hi i am using iptables and is working perfect. I am using iptables to stop the trafic to a specific ip. What i want is this 2 things

1.  If the user is block let him browse some specific domains example

http://www.experts-exchange.com/Programming      ---   Allow
http://www.experts-exchange.com                           ---   Denied

So cant do it by Ip

2. Also I want when the user open the browser for the first time redirect to a specific site even if the user is block.


Thank you

Dentrita
0
Comment
Question by:dentrita
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 43

Expert Comment

by:ravenpl
ID: 17148458
use squid's ACLs for that purpose.
And force users to use yours proxy (either tell them or transparently redirect)
0
 
LVL 40

Expert Comment

by:noci
ID: 17154038
Besides transparent redirect, you can also block forwarding of plain port 80/443
access. To force the use of your proxy.

AD 2:
Setup the homepage & lockdown changes (if possible).
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 1000 total points
ID: 17165973
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

then setup your squid (on port 3128) for specific URLs with ACLs
0
 
LVL 1

Author Comment

by:dentrita
ID: 17167959
Thanks
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 17167981
What me and noci said less.
anyway - I guess iptables command what the more difficult thing than configuring squid's ACLs...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question