blockchina

0.0.8 • Public • Published

blockchina.js

CentOS 7의 Firewalld에 중국발 IP를 막는 기능을 추가하는 스크립트입니다. 중국발 IP 대역이 변경될 수 있으므로, 영구적으로 저장되지 않아 서버 재시작 시 업데이트 후 다시 한번 실행해야 합니다.

firewall-cmd --zone=public --add-rich-rule="rule family='ipv4' source address='{{IP}}' drop"
firewall-cmd --reload

설치하기

npm

npm install -g blockchina

업데이트

npm update -g blockchina

실행

blockchina

GeoLite 2

blockchina.js는 GeoLite 2 Free Database를 사용합니다.

This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.

라이센스

MIT

작성자

Young Jae Sim

Readme

Keywords

none

Package Sidebar

Install

npm i blockchina

Weekly Downloads

3

Version

0.0.8

License

none

Last publish

Collaborators

  • npm-support