Files
fscarmen 4f29ea5c92 v1.3.16 feat: support bind_interface for multi-NIC servers
- Add bind_interface option in sb -d menu to bind outbound traffic to a specific NIC
- Change v2rayN Hysteria2 Realm config from Finalmask field to ProtoExtraObj

v1.3.16 feat: 支持指定网络出口,多网卡绑定

- sb -d 菜单新增「指定网络出口」选项,可为出站流量绑定特定网卡
- v2rayN 的 Hysteria2 Realm 配置从 Finalmask 字段改为 ProtoExtraObj
2026-07-15 23:06:26 +00:00

97 lines
4.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 使用说明 / Usage:
# 1. 复制此文件并重命名为 config.conf / Copy this file and rename it to config.conf
# 2. 根据需要修改配置参数 / Modify the configuration parameters as needed
# 3. 执行安装命令 / Run the installation command:
# bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/sing-box/main/sing-box.sh) -f config.conf
# 配置文件说明 / Configuration Description:
# 语言选项 / Language option:
# c 为中文 / c for Chinese
# e 为英文 / e for English
LANGUAGE=''
# 协议选择 / Protocol selection:
# a 为全部协议,也可以选择 b-m 的任意组合
# a for all protocols, or choose any combination from b-m
# b: VLESS + Reality
# c: Hysteria2
# d: Tuic V5
# e: ShadowTLS
# f: Shadowsocks
# g: Trojan
# h: VMESS + WebSocket
# i: VLESS + WebSocket + TLS
# j: VLESS + H2 + Reality
# k: VLESS + gRPC + Reality
# l: AnyTLS
# m: NaiveProxy
CHOOSE_PROTOCOLS=''
# 起始端口号,其他协议会依次递增 / Starting port number, other protocols will increment sequentially
START_PORT=''
# Nginx 端口号,用于 WebSocket 协议 / Nginx port number for WebSocket protocol
PORT_NGINX=''
# 服务器 IP 地址,支持 IPv4 或 IPv6 / Server IP address, supports IPv4 or IPv6
SERVER_IP=''
# CDN 域名,用于优化线路 / CDN domain name for line optimization
CDN=''
# UUID,用于节点识别和认证 / UUID for node identification and authentication
UUID_CONFIRM=''
# 是否启用订阅功能 / Enable subscription function: true or false
SUBSCRIBE=''
# 是否启用 Argo 隧道 / Enable Argo Tunnel: true or false
# 如果为 true,则使用 Argo Tunnel 回源,固定域名需要填写 ARGO_DOMAIN 与 ARGO_AUTH,临时隧道无需填写
# If true, use Argo Tunnel for origin connection. For fixed domain, fill in ARGO_DOMAIN and ARGO_AUTH. For temporary tunnel, leave them empty
# 如果为 false,则需要填写 VMESS_HOST_DOMAIN 和 VLESS_HOST_DOMAIN
# If false, fill in VMESS_HOST_DOMAIN and VLESS_HOST_DOMAIN
ARGO=''
# VMESS + WebSocket 域名配置,当 ARGO='false' 时必填
# VMESS + WebSocket domain configuration, required when ARGO='false'
VMESS_HOST_DOMAIN=''
# VLESS + WebSocket + TLS 域名配置,当 ARGO='false' 时必填
# VLESS + WebSocket + TLS domain configuration, required when ARGO='false'
VLESS_HOST_DOMAIN=''
# Argo 域名设置,当 ARGO='true' 时必填,如果使用临时隧道,则无需填写
# Argo domain settings, required when ARGO='true'. Leave empty if using temporary tunnel
ARGO_DOMAIN=''
# Argo 认证信息,可以是 JsonToken 和 API 方式,当 ARGO='true' 时必填,如果使用临时隧道,则无需填写
# Argo authentication information can be provided as JSON, Token, or API credentials. Required when ARGO='true'. Leave empty if using temporary tunnel
ARGO_AUTH=''
# 端口跳跃范围,用于 Hysteria2 协议,格式为 起始端口:结束端口
# Port hopping range for Hysteria2 protocol, format: start_port:end_port
PORT_HOPPING_RANGE=''
# 是否启用 Hysteria2 Realm / Enable Hysteria2 Realm: true or false
# 适用于回国或者没有公网入口的机器;有公网入口时不建议使用
# Useful for China-back routing or machines without public inbound access; not recommended when the server already has a public inbound IP/port
HY2_REALM=''
# 是否启用 Hysteria2 Realm 的 WARP 辅助打洞 / Enable WARP-assisted hole punching for Hysteria2 Realm: true or false
# 适用于 NAT 严格环境,如对称 NAT;设为 true 时会自动启用 HY2_REALM
# Useful for strict NAT environments such as symmetric NAT. Setting this to true automatically enables HY2_REALM
HY2_WARP=''
# Reality 的私钥, 留空则随机生成
# Reality private key. Random generation if left empty
REALITY_PRIVATE=''
# 节点名称,支持 emoji 表情
# Node name, emoji supported
NODE_NAME_CONFIRM=''
# 指定网络出口,绑定到指定网卡 / Bind network interface to a specific network adapter
# 例如 / e.g. BIND_INTERFACE=eth0
# 留空则不指定 / Leave empty to not specify
BIND_INTERFACE=''