Solved

IPTABLES

Posted on 2006-07-20
5
367 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
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 39

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now