Skip to content

Instantly share code, notes, and snippets.

View simonbouchard's full-sized avatar

Simon Bouchard simonbouchard

View GitHub Profile
@simonbouchard
simonbouchard / firewalld
Last active July 8, 2022 01:05
Block unwanted countries IPv4 & IPv6 ranges with firewalld using ipdeny.com
#!/bin/bash
#|--------------------------------------------------------------------------
# GeoIP Firewall script for firewalld
#
# Written by Simon Bouchard <sbouchard@layer7.email>
# Refactored and inspired from https://gist.github.com/Pandry/21fc0e30abbfd0579ec69c491b99a446
#
# Created: Mars 2022
#