Script to block all possible regions on your Firewalla box.
See regions.json
for all the possible regions, except for the US.
- Read the script before you use it. It is short and not very complicated.
- The script only connects to the endpoint
https://my.firewalla.com/v1/rule/batchCreate
. - Delete the
.env
file after using the script. The token allows access to your Firewalla app. - Never share your TOKEN or BOX ID with anyone, even if you have questions!
- Login to your box at my.firewalla.com.
- Open the developer menu of your browser.
- Depending on your browser navigate to
Storage -> Local Storage
. - See the values of
SELECTED_BOX_ID
and__TOKEN_KEEP_SECRET__
. - Create
.env
in the same location asrun.sh
and paste the values..BOX="<SELECTED_BOX_ID>" TOKEN="<__TOKEN_KEEP_SECRET__>"
- Run
run.sh
The script creates firewalla.log
in which all responses are stored.
United States cannot be blocked without exceptions because my.firewalla.com API is hosted there.
To block the United States allow the IP address or domain name of my.firewalla.com first.
Use nslookup my.firewalla.com
to reverse the domain to ip addresses.
Feel free to ask me anything.