Geo-Filtering IP Addresses by Country Code - OpenWrt Forum
forum.openwrt.org › t › geo-filtering-ip-addressesOct 28, 2018 · Your can utilize the geoip iptables feature (iptables-mod-geoip).Below is what I utilize on my Sophos UTM. iptables -N GEOIP_OUT iptables -N GEOIP_REJ iptables -A GEOIP_OUT -d 192.168.1.0/24 -m geoip --source-country AI,AG,AW,BS,BB,BZ,BM,CA,KY,CR,GL,GD,GP,MQ,MX -j RETURN iptables -A GEOIP_OUT -d 192.168.1.0/24 -m geoip --source-country MS,NI,PA,PR,BL,KN,LC,MF,PM,VC,TT,TC,US,VG,VI -j RETURN ...
How to setup xtables GeoIP for iptables on OpenWRT ...
https://dino.ciuffetti.info/2018/07/how-to-setup-xtables-geoip-for-ip...05.07.2018 · OpenWRT Firewall geoip example. Now you can say hello to most chinaspammers and something like that, but don’t abuse, this is not ethic if you set up this on a server that offers some sort of public service. Tags: blacklist, firewall, geoip, iptables, ipv6, Linux, openwrt, raspberry pi, server, sysadmin, tcp
[OpenWrt Wiki] package: kmod-ipt-geoip
openwrt.org › packages › pkgdatakmod-ipt-geoip Version: see kernel for details Description: geoip netfilter module\\ \\ Installed size: 3kB Dependencies: kernel, kmod-ipt-core Categories: kernel-modules Repositories: community-packages OpenWrt release: OpenWrt-21.02.0 File size: 4kB License: GPL-2.0 Maintainer: Jo-Philipp Wich Bug report: Bug reports Source code: Sources