ginuerzh / gost

GO Simple Tunnel - a simple tunnel written in golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FreeBSD port .. cannot use dns?

bcookatpcsd opened this issue · comments

# ./gost-freebsd-amd64-2.11.5 -L=http://10.20.245.10:3127
2024/02/07 13:48:42 route.go:695: http://10.20.245.10:3127 on 10.20.245.10:3127
^C
# ./gost-freebsd-amd64-2.11.5 -L=10.20.245.10:3127
2024/02/07 13:48:46 route.go:695: auto://10.20.245.10:3127 on 10.20.245.10:3127
^C
 # drill www.google.com @10.20.48.247
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 36690
;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;; www.google.com.      IN      A

;; ANSWER SECTION:
www.google.com. 300     IN      A       216.239.38.120

;; AUTHORITY SECTION:

;; ADDITIONAL SECTION:

;; Query time: 0 msec
;; SERVER: 10.20.48.247
;; WHEN: Wed Feb  7 13:49:17 2024
;; MSG SIZE  rcvd: 48
# ./gost-freebsd-amd64-2.11.5 -L=10.20.245.10:3127?dns=172.16.48.247
./gost-freebsd-amd64-2.11.5: No match.
# ./gost-freebsd-amd64-2.11.5 -L=10.20.245.10:3127?dns=172.16.48.247:53
./gost-freebsd-amd64-2.11.5: No match.
# ./gost-freebsd-amd64-2.11.5 -L=10.20.245.10:3127?dns=172.16.48.247:53/udp
./gost-freebsd-amd64-2.11.5: No match.

https://gost.run/en/reference/configuration/cmd/

Handle special characters in command line scheme

Zsh in macOS does not support ? and &, you have to use "" to quote them,otherwise you'll get warnings in Terminal: "zsh: no matches found: ..."。

./gost-freebsd-amd64-2.11.5 -L "http://10.20.245.10:3128?dns=172.16.48.247"