mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
11 lines
363 B
Bash
11 lines
363 B
Bash
#!/bin/sh
|
|
|
|
# this is a sample unblock script for guardian. This should work with ipchains.
|
|
# This command gets called by guardian as such:
|
|
# unblock.sh <source_ip> <interface>
|
|
# and the script will issue a command to remove the block that was created with # block.sh address.
|
|
source=$1
|
|
interface=$2
|
|
|
|
/sbin/iptables -D GUARDIAN -s $source -i $interface -j DROP
|