GeoLite2 Country 활용한 한국 IP list 추출 & iptables 에 적용하기
Web server에 iptables 설정으로 한국 IP 대역만 접속을 허용하도록 하기 위해서는 일종의 한국 IP 대역에 대한 whitelist 데이터베이스가 필요하다. 이를 제공하는 사이트가 있는데, 기존에는 wget 형식으로 URL로 바로 다운로드가 되었으나 현재 막혀있다. 회원가입 & 로그인 후 다운로드 가능하니 아래 절차로~ https://dev.maxmind.com/geoip/geolite2-free-geolocation-data https://dev.maxmind.com/geoip/geolite2-free-geolocation-data IP Geolocation Usage IP geolocation is inherently imprecise. Locations are often near the..
Dev.Stroy/Web
2021. 7. 22. 11:23