github.com/mholt/caddy-l4@v0.0.0-20241104153248-ec8fae209322/integration/caddyfile_adapt/gd_handler_socks.caddytest (about) 1 { 2 layer4 { 3 :1080 { 4 @s5 socks5 5 route @s5 { 6 socks5 { 7 commands CONNECT 8 commands ASSOCIATE 9 credentials account1 password1 account2 password2 10 credentials account3 password3 11 } 12 } 13 route { 14 echo 15 } 16 } 17 } 18 } 19 ---------- 20 { 21 "apps": { 22 "layer4": { 23 "servers": { 24 "srv0": { 25 "listen": [ 26 ":1080" 27 ], 28 "routes": [ 29 { 30 "match": [ 31 { 32 "socks5": {} 33 } 34 ], 35 "handle": [ 36 { 37 "commands": [ 38 "CONNECT", 39 "ASSOCIATE" 40 ], 41 "credentials": { 42 "account1": "password1", 43 "account2": "password2", 44 "account3": "password3" 45 }, 46 "handler": "socks5" 47 } 48 ] 49 }, 50 { 51 "handle": [ 52 { 53 "handler": "echo" 54 } 55 ] 56 } 57 ] 58 } 59 } 60 } 61 } 62 }