Skip to main content

Greyproxy Configuration

Greyproxy ships with a sensible default configuration embedded in the binary. To customize, pass a YAML config file with -C:

greyproxy serve -C greyproxy.yml

Example Configuration

greyproxy:
addr: ":43080" # Dashboard and API
db: "./greyproxy.db" # SQLite database

services:
- name: http-proxy
addr: ":43051"
handler:
type: http
listener:
type: tcp

- name: socks5-proxy
addr: ":43052"
handler:
type: socks5
listener:
type: tcp

- name: dns-proxy
addr: ":43053"
handler:
type: dns
listener:
type: udp

Default Ports

ServicePortDescription
Dashboard/API43080Web UI and REST API
HTTP Proxy43051HTTP/HTTPS proxy
SOCKS5 Proxy43052SOCKS5 proxy (used by greywall)
DNS Proxy43053DNS proxy and cache

Full Configuration Reference

See greyproxy.yml in the repository for a complete annotated example with all available options.

For underlying proxy and tunnel configuration options, refer to the GOST documentation — greyproxy is built on GOST v3.