Replies: 3 comments 6 replies
-
nft 可以用get element 测试set中是否存在ip ,太好了 可维护性 上升 sudo nft get element inet mangle sstp_white {223.5.5.5} [18:34:04]
table inet mangle {
set sstp_white {
type ipv4_addr
flags interval
elements = { 223.4.0.0/14 }
}
}
sudo nft get element inet mangle sstp_white {1.1.1.1} [18:34:08]
Error: Could not process rule: No such file or directory
get element inet mangle sstp_white {1.1.1.1}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
Beta Was this translation helpful? Give feedback.
0 replies
-
快不少?我觉得是错觉(欢迎用实测数据打我脸哈),目前 ss-tproxy 规则对于每个“连接”,实际上只会有一次 ipset 匹配(并记录到连接上),我认为这显著的提高了“大流量”连接的性能,因为 ipset 匹配次数减少了一个数量级。但你这个规则,每个 packet 都会经过 nftset 的匹配,我认为这是性能欠佳的。 |
Beta Was this translation helpful? Give feedback.
5 replies
-
简单测试了一下,代理都能跑1.3+Gbit/s 性能应该都没啥问题,回头再细测一下 使用的虚拟机 测试的,没有连接公网 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
目前就是可以使用,但是sstp_white.ips可维护性不太行,回头研究下怎么比较方便的动态更新这个ips
想折腾的可以参考下。
另外我的dns 是自己写的dns ,上游使用 https://1.1.1.1/dns-query 和 https://223.5.5.5/dns-query 因此不需要做dns的重定向(dns监听udp 53)
顺便说一下,我使用systemd-networkd 当作dhcp server
刚用一天 效果还行,有啥问题我继续更新
Beta Was this translation helpful? Give feedback.
All reactions