===GeoIP===new procedure for OPNSense v20.1x[[https://docs.opnsense.org/manual/how-tos/maxmind_geo_ip.html must sign up at Maxmind]]:TL;DR:have set up an account that all clients can use. Details, if you need to do it again to provide completely separate credentials for a client, are below.: paste this URL in the entry box for ''Firewall:Aliases:GeoIP Settings''::https://download.maxmind.com/etc/etc/etc/:Credentials userID: password: name: '''License Key''' Your new license key ''YadaYadaYada'' has been created. This license key is stored in hashed format for security purposes. It may take up to five minutes for this new key to be activated. This will be the only time this key is displayed to you in full. Please copy the key to a safe location for your future reference. Account/User ID: License key: ====set up alias==== Firewall -> aliases + button at bottom of alias list Enabled <X> Name [GeoBlocking1] Type [GeoIP] [ IPv4 | IPv6 | IPv4+IPv6 ] Content [pick your countries to accept/block] <-- start at bottom of list and work upwards statistics <X> (or not - you decide) Description [block incoming connections by geographic region]====set up WAN Rule====Firewall -> Rules -> WAN<pre>Action [Block]Disabled < > Disable this ruleQuick <X> Apply the action immediately on match.Interface [WAN]Direction [in]TCP/IP Version [IPv4]Protocol [any]Source / Invert < >Source [Geographic_blocks] (from aliases)Source [Advanced] (not used)Destination / Invert < >Destination [WAN address]Destination port range from: [any] to: [any]Log <X> Log packets that are handled by this ruleCategory [GeoBlock1 ] Description [REMEMBER TO TURN OFF LOGGING]Advanced featuresSource OS [Any]No XMLRPC Sync < >Schedule [none]Gateway [default]Advanced Options [Show/Hide] (not used)</pre>'''Position rule at top of ruleset''