add socks5 udp relay

This commit is contained in:
ginuerzh
2021-11-07 23:39:35 +08:00
parent e8f040cbdf
commit 16f34d3e94
39 changed files with 728 additions and 131 deletions

View File

@ -54,7 +54,7 @@ services:
type: tcp
metadata:
keepAlive: 15s
chain: chain-socks4
# chain: chain-socks5
# bypass: bypass01
chains:
@ -129,6 +129,22 @@ chains:
dialer:
type: tcp
metadata: {}
- name: chain-socks5
hops:
- name: hop01
nodes:
- name: node01
addr: ":1081"
url: "http://gost:gost@:8081"
# bypass: bypass01
connector:
type: socks5
metadata:
# notls: true
auth: gost:gost
dialer:
type: tcp
metadata: {}
bypasses:
- name: bypass01

View File

@ -4,6 +4,7 @@ import (
// Register connectors
_ "github.com/go-gost/gost/pkg/connector/http"
_ "github.com/go-gost/gost/pkg/connector/socks/v4"
_ "github.com/go-gost/gost/pkg/connector/socks/v5"
_ "github.com/go-gost/gost/pkg/connector/ss"
// Register dialers