How to install
1. Download the Script into your target machine: Select Target System

2. Generate and into the same folder your personal OFA Config JSON:

3. Run the script "" or "run.ps1" every minute, you can use crontab or scheduler to automate

1. sudo apt update -y && sudo apt install -y sudo ebtables ipset bridge-utils jq zip
2. sudo mkdir -p /opt/onefirewall/acl/ && sudo mkdir -p /opt/onefirewall/onefirewall_agent/
3. echo "1" > /proc/sys/net/bridge/bridge-nf-call-iptables
4. modprobe br_netfilter
5. ipset create blacklist hash:net maxelem 3000000
6. iptables -I FORWARD -m set --match-set blacklist src -j DROP
7. iptables -I INPUT -m set --match-set blacklist src -j DROP