All,
for anyone hoping to keep using geographic filtering with ProFTPd now that ftp/proftpd-mod_geoip is deprecated, you can use
It's not a port, but compiling is easy if you have mod_dso compiled into ProFTPd:
Grab the new module from GitHub:
Compile using prxs:
Edit /usr/local/etc/proftpd.conf (just the basics):
for anyone hoping to keep using geographic filtering with ProFTPd now that ftp/proftpd-mod_geoip is deprecated, you can use
proftpd-mod_geoip2
.It's not a port, but compiling is easy if you have mod_dso compiled into ProFTPd:
# proftpd -l | grep mod_dso
mod_dso.c
Grab the new module from GitHub:
# cd /tmp
# git clone https://github.com/Castaglia/proftpd-mod_geoip2.git
# cd proftpd-mod_geoip2
Compile using prxs:
prxs -c -i -I /usr/local/include/proftpd -I /usr/local/include -L /usr/local/lib mod_geoip2.c
Edit /usr/local/etc/proftpd.conf (just the basics):
Code:
#TraceLog /var/log/proftpd-trace.log
#Trace geoip2:20
<IfModule mod_dso.c>
LoadModule mod_geoip2.c
</IfModule>
<IfModule mod_geoip2.c>
GeoIPEngine on
GeoIPLog /var/log/proftpd-geoip.log
GeoIPTable /var/db/maxmind/GeoLite2-City.mmdb
GeoIPPolicy deny,allow
GeoIPAllowFilter CountryCode (AU|US|CA)
</IfModule>
<Class geoip-whitelist>
From 10.
</Class>
<IfClass geoip-whitelist>
GeoIPEngine off
</IfClass>
<IfClass !geoip-whitelist>
GeoIPEngine on
</IfClass>