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

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

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


Modified: Fri Dec 14 20:23:18 2001 GMT
Page accessed 328 times since Tue Mar 15 01:04:06 2005 GMT