Giter VIP home page Giter VIP logo

whitelist's Introduction

节点加白

效果

可以降低被恶意使用/BOT扫描的概率,同时降低被墙概率.

原理

使用Python自动监视网络连接,并使用iptables作为防火墙控制放行端口

食用方法

使用root权限 (sudo -i) 执行

 bash <(curl -Ls https://ghproxy.com/github.com/heinu123/whitelist/blob/main/install.sh)

简介

默认安装在 /usr/whitelist

文件介绍

web.py 是 主要监听 的 py文件

autowhite.py 是 IPTABLES 配置文件

config.py 是 配置文件 ,可以手动修改认证端口,账号密码等

logs.py 是 日志目录 ,记录认证IP,结束后会生成一个 ip.csv 的文件,可以批量查询IP.

其他补充

屏蔽测速网站

iptables -A OUTPUT -m string --string "fast.com" --algo bm -j DROP
iptables -A OUTPUT -m string --string "speedtest.net" --algo bm -j DROP
iptables -A OUTPUT -m string --string "speedtest.com" --algo bm -j DROP
iptables -A OUTPUT -m string --string "speedtest.cn" --algo bm -j DROP
iptables -A OUTPUT -m string --string "test.ustc.edu.cn" --algo bm -j DROP
iptables -A OUTPUT -m string --string "10000.gd.cn" --algo bm -j DROP
iptables -A OUTPUT -m string --string "db.laomoe.com" --algo bm -j DROP
iptables -A OUTPUT -m string --string "jiyou.cloud" --algo bm -j DROP
iptables -A OUTPUT -m string --string "ovo.speedtestcustom.com" --algo bm -j DROP

日志查看

nohup 可以直接查看日志(Python)

cat /usr/whitelist/iplog.out

如何关闭

Python后台监听采用nohup

如果要关闭监听

Step1

关闭python监听进程

请使用

ps -ef|grep python

查看进程号

杀掉进程python3

kill -9 进程号

Step2

清除iptables进程

iptables -F

补充&预告

后期会修改前端认证页面(高情商:简约 低情商:简陋)

以后会放一个redis版本,更为方便

Aries会补充快捷命令,支持快捷命令修改端口,账号密码等.

参考项目

UFWFORNODE: https://github.com/AriesEDGE/ufwfornode

IPTABLES: https://linux.die.net/man/8/iptables

开发&感谢

排名不分先后

Telegram

黑弩

@heinu1 https://t.me/heinu1

Aries

@aries_init https://t.me/aries_init

UniOreoX

@UniOreoX https://t.me/unioreox

觉得项目不错不妨给我点个小小的Star (ฅ'ω'ฅ).

感谢大家!

whitelist's People

Contributors

ariesedge avatar heinu123 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.