Coder Social home page Coder Social logo

来源IP白名单功能增加 about gost HOT 6 CLOSED

steamsv avatar steamsv commented on September 23, 2024
来源IP白名单功能增加

from gost.

Comments (6)

ginuerzh avatar ginuerzh commented on September 23, 2024

https://latest.gost.run/concepts/admission/
看看是否满足

from gost.

steamsv avatar steamsv commented on September 23, 2024

老大,我的想法是这样的,因为ip数量较多,大概上千个,而且是不断变动的。
我目前的方案是使用ipset iptables,设置每个ip的有效期,通过http api 提交ip到ipset,这样旧的就会被删除,而存在的就一直刷新有效期。

目前想到的适合gost的方案是,通过http api把ip提交到redis,gost定时获取redis里面的ip,并热更新,或者gost自带有效期设置;或者ip白名单放在文件里面,gost去获取热更新

from gost.

ginuerzh avatar ginuerzh commented on September 23, 2024

目前可以通过动态配置来更新ip列表,后面会支持redis

from gost.

cod1ingcoding avatar cod1ingcoding commented on September 23, 2024

用redis这类太重了, 用命令行如果来源太多,又不好书写,还是用iptables+ipset是最优雅的。

from gost.

ginuerzh avatar ginuerzh commented on September 23, 2024

已增加对外部文件和redis的支持:
https://latest.gost.run/concepts/admission/#_4

from gost.

perk67h6ins avatar perk67h6ins commented on September 23, 2024

已增加对外部文件和redis的支持: https://latest.gost.run/concepts/admission/#_4

只能拒绝吗?匹配转发那块不能热更新?

from gost.

Related Issues (20)

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.