DD-WRT/iptables script

Associate
Joined
7 Nov 2010
Posts
87
Location
Cambridge, UK
I need a script that can enable and disable (either one script to do both, or one for each task) access to a certain website for specific mac addresses.

It will be need to be ran on a windows computer (guessing a shell script and putty's plink?)

I have managed to block it (minecraft.net) manually using the web-gui, but I'm the only one that kinda knows what I'm doing, so I'd rather not have someone else trying to enable/disable it from there.

I've looked at the iptables on the router, and read through some stuff about how it works but I'm no closer to understanding how to do this.

Anybody able to help me out? I can provide a copy of the "iptables --list" (or anything else) if needed, but it'd probably just show how wonderfully insecure the router is and the single rule blocking minecraft.
 
The Goal was to be able to disable access to Minecraft as school work and other more important things were not being done, or done to an acceptable standard :)

Blocking access to minecraft.net kills the login server and so stops them playing multiplayer which should hopefully be enough. Having a script that can add/remove the rule(s) without showing everyone how to do it via the web gui would be easier (and safer).

I would be changing the rules on the router.
 
Back
Top Bottom