Socket
Socket
Sign inDemoInstall

blockchina

Package Overview
Dependencies
59
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    blockchina

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


Version published
Maintainers
1
Install size
28.9 MB
Created

Readme

Source

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

FAQs

Last updated on 13 Oct 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc