Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] 希望增加 ipset 删除功能 #771

Open
davinci66 opened this issue Dec 12, 2023 · 1 comment
Open

[Feature request] 希望增加 ipset 删除功能 #771

davinci66 opened this issue Dec 12, 2023 · 1 comment

Comments

@davinci66
Copy link

希望添加的功能

目前逻辑:

需要代理的ip加入ipset gfwlist
然后重定向到代理端口

iptables -t nat -I PREROUTING -p tcp -m set --match-set gfwlist dst -j REDIRECT --to-ports 3333
iptables -t nat -I OUTPUT -p tcp -m set --match-set gfwlist dst -j REDIRECT --to-ports 3333

自定义强制直连ip

强制直连ip

  • tag: "ip-force-direct"
    type: ip_set
    args:
    files:
    - "./ip_force_direct.txt"

如果一开始这个ip自动判断为代理,加入了gfwlist
后期我想直连,加入文件ip_force_direct.txt
但是因为这个ip已经在gfwlist里了,即使我加了逻辑,实际这个ip最终还是会被重定向

所以要强制直连,必须从gfwlist里删除

wiki里没看到 ipset 可以删除

能否增加删除功能,或有其他解决方案?

@ljcbaby
Copy link

ljcbaby commented Jan 5, 2024

这个项目并没有处理iptables/ipset的相关代码吧。
插件里的 ip_set 和 iptables/ipset 是两回事。

我的问题,wiki还不够熟悉。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants