Solved

IPTABLES

Posted on 2006-07-20
5
372 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 250 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

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

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

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…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

707 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