Block all websites for most PCs, and Whitelists some PCs???
Hello all...
So a little bit of context. I have been wracking my brains trying to get this working and have been very unsuccessful. I am trying to get this working using IPTables in a DD-WRT environment. I know this forum isn't specifically for DD-WRT, but since we are talking about Linux commands, I am hoping it is transferable. Basically, by default, I am trying to block ALL PCs access to all of the internet except 3 sites (Google, Yahoo, and DD-WRT). I have one PC that I listed by MAC address that I want to have full unrestricted access. This is what I am using (saving it under FIREWALL commands) and it doesn't seem to be working: Code:
# Set up the chain |
I reduced my code to this and cannot get my exempted PC to communicate. Any help would be appreciated.
Code:
# Set up the chain |
I want to post my final DD-WRT settings for anyone that may read this thread later.
Since MAC based rules don't seem to work on this code DD-WRT v24-sp2 (05/27/13) mini (SVN revision 21676), I had to use IP based exceptions in order to make work the way I want. So that said, I added the machines that I wanted to exempt to have static DHCP assigned IP addresses. Here is the code that I used: Code:
# IP Tables White Listing script by phuzi0n -Tek @ DD-WRT Forum :: View topic - White List |
All times are GMT -5. The time now is 09:32 PM. |