Advertisement

04.15.2008 at 08:52AM PDT, ID: 23324122
[x]
Attachment Details

Block sites using iptables, but not for certain users.

Asked by enrique_salazar in IP Tables/IP Chains, Linux, Network Software Firewalls

Tags: facebook, iptables

I have been told to block certain site (facebook) using Iptables. I did this succesfully. Now I want to let certain users to the site (my boss, who asked me to block the site lol).

I put this, I thought putting a rule to let her IPs before the blocking rule would work, but it doesnt...

$IPTABLES -A FORWARD -s 10.6.2.237/32 -d 0.0.0.0/0 -j ACCEPT #user
$IPTABLES -A FORWARD -s 10.6.3.3/32 -d 0.0.0.0/0 -j ACCEPT #user
$IPTABLES -A FORWARD -s 10.6.2.250/32 -d 0.0.0.0/0 -j ACCEPT #user

$IPTABLES -t nat -A PREROUTING -p tcp -s 10.0.0.0/8 -d 69.63.176.0/24 -j DROP #facebook blockStart Free Trial
 
Loading Advertisement...
 
[+][-]04.15.2008 at 09:07AM PDT, ID: 21359949

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 09:18AM PDT, ID: 21360045

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 09:24AM PDT, ID: 21360112

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 09:27AM PDT, ID: 21360139

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 09:57AM PDT, ID: 21360441

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 10:30AM PDT, ID: 21360745

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 10:45AM PDT, ID: 21360893

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: IP Tables/IP Chains, Linux, Network Software Firewalls
Tags: facebook, iptables
Sign Up Now!
Solution Provided By: ravenpl
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.15.2008 at 01:20PM PDT, ID: 21362455

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 01:25PM PDT, ID: 21362504

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906