Daze is a tool to help you link to the Internet.
Compile or Download daze:
$ git clone https://github.com/mohanson/daze $ cd daze # On Linux or macOS $ ./cmd/develop.sh # On Windows $ ./cmd/develop.ps1
Build results will be saved in directory
bin. You can just keep this directory, all other files are not required.
Daze is dead simple to use:
# server port # you need a machine that can access the Internet, and enter the following command: $ daze server -l 0.0.0.0:1081 -k $PASSWORD # client port # use the following command to link your server(replace $SERVER with your server ip): $ daze client -s $SERVER:1081 -k $PASSWORD # now, you are free to visit Internet $ curl -x socks5://127.0.0.1:1080 google.com
Daze forces any TCP/UDP connection to follow through proxy like SOCKS4, SOCKS5 or HTTP(S) proxy. It can be simply used in browser, take Firefox as an example: Open
Connection Settings ->
Manual proxy configuration ->
SOCKSv5 Host=127.0.0.1 and
Daze can work well on Windows, Linux and macOS. In additional, it can also work on Android, just it will be a bit complicated.
GOOS=linux GOARCH=arm64 go build -o daze github.com/mohanson/daze/cmd/daze
wget, they are both possible.
daze client -l 127.0.0.1:1080 ...in the background.
Daze use a RULE file to custom your own rules(optional). RULE has the highest priority in routers, so that you should carefully maintain it. This is a RULE document located at "./rule.ls", use
daze client -r ./rule.ls to apply it.
L a.com R b.com B c.com
Glob is supported, such as
Daze also use a CIDR(Classless Inter-Domain Routing) file to routing addresses. CIDR file has lower priority than RULE files, located at "./rule.cidr". When a IP address is in the CIDR file, daze will use the local network to establish the connection instead of using a proxy.
You can find all the information here by using
daze server -h and
daze client -h.