반응형

# wget ftp://132.246.2.21/pub/systems/linux/debian.org/debian/pool/main/p/proftpd-mod-geoip/proftpd-mod-geoip_0.3.orig.tar.gz
# tar zxvfp proftpd-mod-geoip_0.3.orig.tar.gz
# cp proftpd-mod-geoip-0.3/mod_geoip.c proftpd-1.3.4d/contrib/
# cd proftpd-1.3.4d
# ./configure --prefix=/usr/local/proftpd-1.3.4d --with-modules=mod_geoip --with-includes=/usr/local/GeoIP/include/ --with-libraries=/usr/local/GeoIP/lib/
# make && make install


# cd /usr/local/src
# wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.5.tar.gz
# tar zxvfp proftpd-1.3.5.tar.gz
# cd proftpd-1.3.5
# ./configure --prefix=/usr/local/proftpd-1.3.5 --with-modules=mod_geoip:mod_ifsession --with-includes=/usr/local/GeoIP/include/ --with-libraries=/usr/local/GeoIP/lib/
# make && make install
# yum install GeoIP
# cd /usr/share/GeoIP/
# mv GeoIP.dat GeoIP.dat_org
# wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
# gunzip GeoIP.dat.gz

# /usr/local/proftpd-1.3.5/sbin/proftpd -l | egrep 'geoip|ifsession'
  mod_geoip.c
  mod_ifsession.c
# vi /usr/local/proftpd-1.3.5/etc/proftpd.conf
-------------------------------------------------------------------
<IfModule mod_geoip.c>
    GeoIPEngine on
    GeoIPLog /var/log/geoip.log
    GeoIPTable /usr/share/GeoIP/GeoIP.dat MemoryCache
</IfModule>

<IfUser koref>
        GeoIPDenyFilter CountryCode US
</IfUser>
-------------------------------------------------------------------
# /usr/local/proftpd-1.3.5/sbin/proftpd

반응형
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기