123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- services:
- - name: service-0
- addr: ":8080"
- interface: eth0
- admission: admission-0
- bypass: bypass-0
- resolver: resolver-0
- hosts: hosts-0
- handler:
- type: http
- auth:
- username: user
- password: pass
- auther: auther-0
- chain: chain-0
- retries: 1
- metadata:
- foo: bar
- bar: baz
- listener:
- type: tcp
- auth:
- username: user
- password: pass
- auther: auther-0
- chain: chain-0
- tls:
- certFile: cert.pem
- keyFile: key.pem
- caFile: ca.pem
- metadata:
- abc: xyz
- def: 456
- forwarder:
- nodes:
- - name: target-0
- addr: 192.168.1.1:1234
- - name: target-1
- addr: 192.168.1.2:2345
- selector:
- strategy: rand
- maxFails: 1
- failTimeout: 30s
- chains:
- - name: chain-0
- selector:
- strategy: round
- maxFails: 1
- failTimeout: 30s
- hops:
- - name: hop-0
- - name: hop-1
- interface: 192.168.1.2
- selector:
- strategy: rand
- maxFails: 3
- failTimeout: 60s
- bypass: bypass-0
- nodes:
- - name: node-0
- addr: ":1080"
- interface: eth1
- bypass: bypass-0
- connector:
- type: socks5
- auth:
- username: user
- password: pass
- metadata:
- foo: bar
- dialer:
- type: tcp
- auth:
- username: user
- password: pass
- tls:
- caFile: "ca.pem"
- secure: true
- serverName: "example.com"
- metadata:
- bar: baz
- hops:
- - name: hop-0
- interface: 192.168.1.2
- selector:
- strategy: rand
- maxFails: 3
- failTimeout: 60s
- bypass: bypass-0
- nodes:
- - name: node-0
- addr: ":1080"
- interface: eth1
- bypass: bypass-0
- connector:
- type: socks5
- auth:
- username: user
- password: pass
- metadata:
- foo: bar
- dialer:
- type: tcp
- auth:
- username: user
- password: pass
- tls:
- caFile: "ca.pem"
- secure: true
- serverName: "example.com"
- metadata:
- bar: baz
-
- tls:
- certFile: "cert.pem"
- keyFile: "key.pem"
- caFile: "ca.pem"
- authers:
- - name: auther-0
- auths:
- - username: user1
- password: pass1
- - username: user2
- password: pass2
- admissions:
- - name: admission-0
- whitelist: false
- matchers:
- - 127.0.0.1
- - 192.168.0.0/16
- bypasses:
- - name: bypass-0
- whitelist: false
- matchers:
- - "*.example.com"
- - .example.org
- - 0.0.0.0/8
- resolvers:
- - name: resolver-0
- nameservers:
- - addr: udp://8.8.8.8:53
- chain: chain-0
- ttl: 60s
- prefer: ipv4
- clientIP: 1.2.3.4
- timeout: 3s
- - addr: tcp://1.1.1.1:53
- - addr: tls://1.1.1.1:853
- - addr: https://1.0.0.1/dns-query
- hostname: cloudflare-dns.com
- hosts:
- - name: hosts-0
- mappings:
- - ip: 127.0.0.1
- hostname: localhost
- - ip: 192.168.1.10
- hostname: foo.mydomain.org
- aliases:
- - foo
- - ip: 192.168.1.13
- hostname: bar.mydomain.org
- aliases:
- - bar
- - baz
- log:
- output: stderr
- level: debug
- format: json
- profiling:
- addr: ":6060"
- api:
- addr: ":18080"
- pathPrefix: /api
- accesslog: true
- auth:
- username: user
- password: pass
- auther: auther-0
- metrics:
- addr: :9000
- path: /metrics
|