On 11/28/2012 01:38 AM, Rolf-Werner Eilert wrote:
> Hi,
>
> Is there anyone here who knows iptables?
>
> On our new LTSP server, I wanted to employ our old script to lock the 
> classes from using the internet during lessons ;-) But now it fails with 
> an error.
>
> The [antique == 2004] script reads as follows and is supplied with the 
> usernames from a list in ".inetlock.list":
>
> #!/bin/sh
>
> sudo /usr/sbin/iptables -A OUTPUT -d 127.0.0.0/24 -j ACCEPT
>
> for i in `cat $HOME/.inetlock.list`
> do
>      sudo /usr/sbin/iptables -A OUTPUT -d ! 192.168.10.0/24 -m owner 
> --uid-owner $i -j DROP
> done
 ! -d 192.168.10.0/24   should work



------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to