wirebox icon indicating copy to clipboard operation
wirebox copied to clipboard

need full help doc

Open liuxyon opened this issue 5 years ago • 4 comments

i want to try this, but idk how do it, what's command for intsall ,uninstall config and show etc?

liuxyon avatar Apr 12 '20 15:04 liuxyon

idk how do it

https://github.com/foxcpp/wirebox#installation--configuration

foxpy avatar Apr 12 '20 17:04 foxpy

It is work-in-progress so don't expect everything to work smooth and well.

First, familiarize yourself with how Wireguard works: https://wireguard.com. Install userspace wireguard tools for use in key generation.

Install Go toolchain (https://golang.org) then run this command to compile server binary:

env GO111MODULE=on go get github.com/foxcpp/wirebox/cmd/wboxd@master

It will be placed in $HOME/go/bin directory.

Take example configuration from here: https://github.com/foxcpp/wirebox/blob/master/cmd/wboxd/wboxd.example.toml. Change necessary values to fit your needs. Run the server executable as root, using -config option to specify the path to the configuration file, like that: sudo wboxd -config /path/to/configuration/file.toml

For the client, the installation procedure is mostly similar.

env GO111MODULE=on go get github.com/foxcpp/wirebox/cmd/wbox@master

Example configuration is here: https://github.com/foxcpp/wirebox/blob/master/cmd/wbox/wbox.example.toml.

Run wbox executable with -config path/to/client/config on the client machine. Client will configure the Wireguard tunnel and exit.

In general, you are supposed to create a keypair for each client and for the server, put the public key of each client in the text file one per-line and put a path to the this file in server configuration in authorized-keys option. Then put the public key of the server into client configuration along with clients private key, add public IP address of the server there too, using the port-low value of server in config-endpoint.

foxcpp avatar Apr 12 '20 18:04 foxcpp

I know normal wireguard use, if i try use this wirebox, then clients user user like andriod wireguard how
do it? what's need setup in config file? [Interface] Address = [Peer] AllowedIPs =

liuxyon avatar Apr 24 '20 16:04 liuxyon

README.md:

Both client & server are Linux-only now.

Auto-configuration will not work with Android Wireguard client, as you may have noticed.

If you leave wboxd to do dynamic IP assignment, you need to run it with -debug so it will print assigned addresses for each client. Then use wg utility to get per-client listen port and use it in Endpoint together with server address. AllowedIPs is set as usual, what you have accessible via that interface.

foxcpp avatar Apr 24 '20 19:04 foxcpp