Enhanced: sing-box client

This commit is contained in:
homemade 2024-01-17 23:10:55 +08:00
parent cbb8081c4c
commit 5aa8c403ae
7 changed files with 49 additions and 1 deletions

View File

@ -0,0 +1,31 @@
{
"inbounds": [
{
"type": "mixed",
"listen": "::",
"listen_port": 3446
}
],
"outbounds": [
{
"type": "trojan",
"server": "out.homemade.net.cn",
"server_port": 6443,
"password": "J/f6m2X8-q4P",
"tls": {
"enabled": true,
"server_name": "out.homemade.net.cn",
"insecure": true,
"utls": {
"enabled": true,
"fingerprint": "chrome"
}
},
"multiplex": {
"enabled": false
}
}
]
}

View File

@ -0,0 +1,11 @@
version: "3.8"
services:
sing-box:
image: ghcr.io/sagernet/sing-box
container_name: sing-box
restart: unless-stopped
volumes:
- ./config.json:/etc/sing-box/config.json
network_mode: "host"
command: -D /var/lib/sing-box -C /etc/sing-box/ run

6
out/sing-box-client/out Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
export https_proxy=http://127.0.0.1:3446
export http_proxy=http://127.0.0.1:3446
export all_proxy=socks5://127.0.0.1:3446

View File

@ -1,6 +1,6 @@
{ {
"run_type": "client", "run_type": "client",
"local_addr": "0.0.0.0", "local_addr": "127.0.0.1",
"local_port": 1081, "local_port": 1081,
"remote_addr": "out.homemade.net.cn", "remote_addr": "out.homemade.net.cn",
"remote_port": 6443, "remote_port": 6443,