# 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
'Linux > CentOS' 카테고리의 다른 글
[CentOS] shell (0) | 2014.11.23 |
---|---|
[CentOS] sshfs - 리눅스 윈도우간 데이터 전송을 편리하게.. (0) | 2014.08.08 |
[CentOS] 6.5에서 7.0으로 업그레이드 (0) | 2014.07.17 |
em1를 eth0으로 이름 변경 (0) | 2014.06.24 |
[CentOS] GCC 4.7.2 설치 (0) | 2014.02.03 |
최근댓글