Wireguard and it's utilities, wg, wg-quick, and wg-quick@.service must be installed on the system hosting
the guard server.
Run the server
When you run the wireguard server it will automatically create its own wireguard tunnel
that the server binds to. This makes the server secure to manage across your network.
Use the --address flag to manage this server.
> sudo guard server
INFO[0000] tunnel created tunnel=guard0
INFO[0000] created guard0 tunnel
{
"id": "guard0",
"listen_port": "10100",
"address": "10.199.199.1/32",
"public_key": "37uzie/EZzzDpRbVTUOtuVXwhht/599pdhseh9MJ7QE=",
"endpoint": "127.0.0.1"
}
> sudo wg
interface: guard0
public key: 37uzie/EZzzDpRbVTUOtuVXwhht/599pdhseh9MJ7QE=
private key: (hidden)
listening port: 10100
Create a new tunnel
To create a new tunnel specify the address and the endpoint for the tunnel.
The last argument is used as the tunnel ID and interface name on the server.
To create a new peer and have all the keys generated for you use the peers new command.
The peer configuration will be output to stdout that you can copy and paste into your client.
No comments:
Post a Comment