tech:homelab:sing-box
差别
这里会显示出您选择的修订版和当前版本之间的差别。
tech:homelab:sing-box [2024/04/09 07:01] – 创建 温婕莺 | tech:homelab:sing-box [2024/04/09 12:24] (当前版本) – 温婕莺 | ||
---|---|---|---|
行 37: | 行 37: | ||
===== 配置Sing-Box ===== | ===== 配置Sing-Box ===== | ||
- | 婕莺使用TUN模式,当然此模式不好的地方在于慢。但是方便,后续可能会再换。 | + | 婕莺使用TUN模式,当然此模式不好的地方在于慢和ssh无法使用,不过婕莺也尝试了Tproxy配置,配了一天还是放弃了。 |
+ | 配置主要分为2步: | ||
+ | - 修改防火墙 | ||
+ | - 修改Sing-Box配置 | ||
+ | |||
+ | <code text> | ||
+ | config zone | ||
+ | option name ' | ||
+ | option forward ' | ||
+ | option output ' | ||
+ | option input ' | ||
+ | option mtu_fix ' | ||
+ | option device ' | ||
+ | list network ' | ||
+ | |||
+ | config forwarding | ||
+ | option name ' | ||
+ | option dest ' | ||
+ | option src ' | ||
+ | | ||
+ | config interface ' | ||
+ | option proto ' | ||
+ | option device ' | ||
+ | </ | ||
+ | |||
+ | <code text> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | 然后重启OpenWRT的firewall。启动Sing-Box,结束。 |
/app/www/public/data/attic/tech/homelab/sing-box.1712646066.txt.gz · 最后更改: 2024/04/09 07:01 由 温婕莺