update README
new: better everything
update readme
A very elegant name for a script that I use to generate OpenWRT firewall rules to block AS numbers. Originally made to nuke Facebook from my Internet, this can be used to block any AS number.
First, you need to put the ASN you want to generate blocking rules for into the
config
file. The format is one ASN per line and lines starting with a #
are
ignored.
Example:
# Facebook
AS63293
AS32934
This will generate files in ./subnets
, one per ASN, containing the list of
resolved subnets. You should not edit these files manually.
Then you can apply these rules to a running OpenWRT instance by running:
facefuck.sh apply user@router
This will:
/etc/config/firewall
file locally using scp/etc/config/firewall
using scpYou can cleanup the OpenWRT firewall rules by running:
facefuck.sh clean user@router