[파이썬]셀레니움을 이용해 geoip 업데이트 자동화
# Script/Python2021. 4. 30. 08:11[파이썬]셀레니움을 이용해 geoip 업데이트 자동화

geoip을 업데이트 하기위해서는 로그인을 해서 최신버전을 그때 그때 다운로드를 받아야합니다. 사실 3개월정도에 한번 할까 말까라 좀 귀찮아서 자동화해볼려고합니다. 스타트~ 설치환경 centos7 1. python3 install [daraksharavim.tistory.com]$ yum -y install python3 [daraksharavim.tistory.com]$ yum install python3 [daraksharavim.tistory.com]$ pip3 install -U pip [daraksharavim.tistory.com]$ pip install beautifulsoup4 [daraksharavim.tistory.com]$ pip install selenium 2. chrome ins..

centos7 iptables geoip 설치 및 적용
# Operation System/Linux2020. 7. 8. 11:18centos7 iptables geoip 설치 및 적용

# yum -y install perl-NetAddr-IP iptables-devel perl-Text-CSV_XS kernel-devel # wget mirror.koreaidc.com/iptables/xtables-addons-2.10.tar.gz # tar xvfz xtables-addons-2.10.tar.gz # cd xtables-addons-2.10/ # vi mconfig 주석처리 #build_TARPIT=m # ./configure # make && make install cat /tmp/GeoLite2-Country-Blocks-IPv.csv | ./20_convert_geolite2 /tmp/CountryInfo.txt > GeoIP-legacy.csv # ./00_download_g..

아파치 GeoIP 설정 및 적용(centos5x)
# Web&WAS/Apache2020. 1. 30. 17:04아파치 GeoIP 설정 및 적용(centos5x)

설치환경 centos5.11 x86 apache-2.0.65 geoip api C라이브러리 설치 # unzip geoip-api-c-master.zip 압축해제후 bootstrap실행하면 아래와 같이 오류발생 autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 configure.ac:3: error: Autoconf version 2.63 or higher is required configure.ac:3: the top level autom4te: /usr/bin/m4 failed with exit status: 63 aclocal: aut..

awstats-7.7 GeoIP 연동
# Web&WAS/Apache2020. 1. 17. 15:58awstats-7.7 GeoIP 연동

conf설정 # Plugin: GeoIP LoadPlugin="geoip GEOIP_STANDARD /usr/local/share/GeoIP/GeoIP.dat" # /usr/local/awstats-7.7/wwwroot/cgi-bin/awstats.pl -update -config=[도메인] 에러발생 Error: Plugin load for plugin 'geoip' failed with return code: Error: Can't locate Geo/IP.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib..

아파치 GeoIP 설정 및 적용(centos7x)
# Web&WAS/Apache2020. 1. 17. 14:49아파치 GeoIP 설정 및 적용(centos7x)

설치환경 Centos7.7 apache-2.4.41 csv파일 다운로드(가입해야 다운가능) https://www.maxmind.com/en/accounts/current/people/current csv->dat 변환 # yum -y install python-ipaddr.noarch # git clone https://github.com/sherpya/geolite2legacy.git # ./geolite2legacy.py -i ../GeoLite2-Country-CSV_20200114.zip -f geoname2fips.csv -o GeoIP.dat 참고 : https://github.com/sherpya/geolite2legacy geoip C라이브러리 설치 # git clone https://gi..

image