http://server.ccl.net/pub/chemistry/software/UNIX/netfilter/home_lan/stoplan.shtml |
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 |
[ CCL Home Page ]
[ home_lan ]
[ Raw Version of this page ]
Modified: Fri Dec 14 20:22:51 2001 GMT |
Page accessed 337 times since Tue Mar 15 00:59:52 2005 GMT |