CCL Home Page
Up Directory CCL stoplan.txt
#!/bin/bash

# this stops access network for the computer on the lan
# The computer is specified as number: 2, 3, ... which is appended to
# the address, for example:
#    stoplan 3
# will stop 192.168.0.3
# Done by Jan Labanowski, jkl@ccl.net

iptables -t filter -I FORWARD -i eth1 -s 192.168.0.${1} -j DROP
iptables -t filter -I FORWARD -i eth1 -d 192.168.0.${1} -j DROP


Modified: Fri Dec 14 20:22:51 2001 GMT
Page accessed 7699 times since Fri Jan 31 06:33:59 2003 GMT