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 block
Start Free Trial