Requires paramiko, paramiko-expect
** Fabric doesn't work on SonicWall as it doesn't support exec_command() **
https://www.enjen.net/asn-blocklist/index.php?asn=22363&type=iplist
add &api=1
to URL for text file
start by SSH'ing to the device and type
configure
create object with name PC1 with IP 1.1.1.1 (example)
address-object ipv4 PC1 zone WAN
host 1.1.1.1
exit
naturally, you can create multiple objects, but need to 'exit' after each one
create object group with name BLOCKLIST
(note, when you create a group, it will put you in 'group' config mode)
address-group ipv4 BLOCKLIST add object PC1 to object group BLOCKLIST
(this will only work when you're in the 'group' config mode)
address-object ipv4 PC1 create rule from WAN<->WAN
access-rule from WAN to WAN action deny source address group BLOCKLIST make sure to commit at the end
commit