Skip to content

Instantly share code, notes, and snippets.

View bitcoinvps's full-sized avatar
VPNrouter.homes: Secure your home network w/ VPN router gateway

Bitcoinvps.Cloud bitcoinvps

VPNrouter.homes: Secure your home network w/ VPN router gateway
View GitHub Profile
{
"type": "shadowtls",
"tag": "shadowtls-in",
"listen": "::",
"listen_port": 8443,
"handshake": {
"server": "www.wikimedia.org",
"server_port": 443
},
"detour": "trojan-in"
cat <<EOF > /etc/systemd/system/sing-box.service
[Unit]
Description=sing-box Service
Documentation=https://sing-box.sagernet.org/
After=network.target nss-lookup.target
Wants=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/sing-box run -c /etc/sing-box/config.json
Restart=always
{
"log": {},
"dns": {},
"inbounds": [],
"outbounds": [],
"route": {},
"experimental": {}
}
"log": {
"disabled": false,
"level": "error",
"output": "box.log",
"timestamp": true
}
"dns": {
"servers": [],
"rules": [],
"final": "",
"strategy": "",
"disable_cache": false,
"disable_expire": false
}
"dns": {
"servers": [{
"tag": "local",
"address": "217.218.127.127",
"detour": "direct"
},
{
"tag": "shecan",
"address": "https://free.shecan.ir/dns-query",
"address_resolver": "local",
{
"inbounds": [{
"type": "inbound1"
}, {
"type": "inbound2"
}, {
"type": "inbound3"
}, {
"type": "inbound4"
}, {
{
"type": "direct",
"tag": "direct_ipv4",
"domain_strategy": "ipv4_only"
},
{
"type": "direct",
"tag": "direct_ipv6",
"domain_strategy": "ipv6_only"
}, {
"route": {
"geoip": {
"path": "geoip.db",
"download_url": "https://raw.githubusercontent.com/CHIZI-0618/v2ray-rules-dat/release/geoip.db",
"download_detour": "direct"
},
"geosite": {
"path": "geosite.db",
"download_url": "https://github.com/yangchuansheng/sing-geosite/releases/latest/download/geosite.db",
"download_detour": "direct"