Example of #Blocking #ASNs (https://en.wikipedia.org/wiki/Autonomous_system_(Internet)) with #opnsense:
Head to the #Firewall section
1. Create a new alias
Name: "ASN_Google_IPv4"
Type: "BGP ASN"
Content: The plain ASN number 15169 (#Google)
Give a description
2. Create a floating rule
Rule category: Floating
Action: Block
Interface: LAN/WAN
Direction: Any
TCP Version: IPv4
Protocol: any
Destination: ASN_Google_IPv4
Logging as desired
Lookup ASNs:
https://securitytrails.com/blog/asn-lookup