How could configure authfile when using remote socks
tangr opened this issue · comments
tangr commented
HI,
chisel version: chisel_1.7.7_linux_amd64
server runs:
chisel-server server --reverse --socks5 -p 28080 --authfile users.json2
users.json2:
{
"root:toor": [
""
],
"foo:bar": [
"^0.0.0.0:3000$"
],
"foo:bar2": [
"^0.0.0.0:3000$",
"^socks$"
],
"ping:pong": [
"^0.0.0.0:[45]000$",
"^example.com:80$",
"^R:0.0.0.0:7000$"
]
}
client runs:
chisel-client client --auth foo:bar2 127.0.0.1:28080 socks
failed error logs:
> 2024/06/05 15:11:26 client: Connecting to ws://127.0.0.1:28080
> 2024/06/05 15:11:26 client: tun: proxy#127.0.0.1:1080=>socks: Listening
> 2024/06/05 15:11:26 client: Connection error: server: access to ':' denied
> 2024/06/05 15:11:26 client: Give up
so how could I configure the authfile correctly when use socks proxy?
thx