*配置笔记

这里记录一下不借助GUI界面的*安装配置

下载

*有两个版本, 开源的普通版是以 x.x.x 这样的版本命名的, 闭源的高级版是以年月日这样的版本命名的. 下载开源的普通版
https://github.com/Dreamacro/*

安装

解压即可

配置

配置文件的详细说明
https://github.com/Dreamacro/*/wiki/configuration
以及第三方的说明
https://ssrvps.org/archives/5718

配置文件的例子

# HTTP(S) and SOCKS5 server on the same port
mixed-port: 1090

# Set to true to allow connections to the local-end server from
# other LAN IP addresses
allow-lan: false

# This is only applicable when `allow-lan` is `true`
# '*': bind all IP addresses
# 192.168.122.11: bind a single IPv4 address
# "[aaaa::a8aa:ff:fe09:57d8]": bind a single IPv6 address
bind-address: '*'

# * router working mode
# rule: rule-based packet routing
# global: all packets will be forwarded to a single endpoint
# direct: directly forward the packets to the Internet
mode: rule

# * by default prints logs to STDOUT
# info / warning / error / debug / silent
log-level: debug

# When set to false, resolver won't translate hostnames to IPv6 addresses
ipv6: false

# RESTful web API listening address
external-controller: 127.0.0.1:9090

# Static hosts for DNS server and connection establishment (like /etc/hosts)
#
# Wildcard hostnames are supported (e.g. *.*.dev, *.foo.*.example.com)
# Non-wildcard domain names have a higher priority than wildcard domain names
# e.g. foo.example.com > *.example.com > .example.com
# P.S. +.foo.com equals to .foo.com and foo.com
hosts:
  # '*.*.dev': 127.0.0.1
  # '.dev': 127.0.0.1
  # 'alpha.*.dev': '::1'

proxies:
  # vmess
  # cipher support auto/aes-128-gcm/chacha20-poly1305/none
  - name: "vmess1"
    type: vmess
    server: cdn-cn.123.cn
    port: 19083
    uuid: a381baf6-1122-3676-a364-8a90219e8b22
    alterId: 0
    cipher: auto
    network: ws
    ws-path: /aaff

  - name: "vmess2"
    type: vmess
    server: cdn-cn.123.cn
    port: 19049
    uuid: a381baf6-1122-3676-a364-8a90219e8b22
    alterId: 0
    cipher: auto
    network: ws
    ws-path: /ddefg

  - name: "vmess3"
    type: vmess
    server: cdn-cn.123.cn
    port: 19050
    uuid: a381baf6-1122-3676-a364-8a90219e8b22
    alterId: 0
    cipher: auto
    network: ws
    ws-path: /cat

  - name: "vmess4"
    type: vmess
    server: cdn-cn.123.cn
    port: 19042
    uuid: a381baf6-1122-3676-a364-8a90219e8b22
    alterId: 0
    cipher: auto
    network: ws
    ws-path: /dog

proxy-groups:
  # select is used for selecting proxy or proxy group
  # you can use RESTful API to switch proxy is recommended for use in GUI.
  - name: "group1"
    type: select
    # disable-udp: true
    proxies:
      - vmess1
      - vmess2

  - name: "group2"
    type: url-test
    proxies:
      - vmess1
      - vmess2
      - vmess3
      - vmess4
    # tolerance: 150
    lazy: true
    url: 'http://www.gstatic.com/generate_204'
    interval: 300

proxy-providers:


rules:
  - DOMAIN-SUFFIX,google.com,group1
  - DOMAIN-SUFFIX,qq.com,REJECT
  - DOMAIN-SUFFIX,cnblogs.com,DIRECT
  - IP-CIDR,127.0.0.0/8,DIRECT
  - IP-CIDR,192.168.0.0/16,DIRECT
  - IP-CIDR,10.0.0.0/8,DIRECT
  - MATCH,group2

运行

*-windows-amd64.exe -f .\config.yaml
上一篇:树莓派4b配置*


下一篇:HomeLede 固件内置 DNS方案说明