mirror of
https://github.com/fosrl/newt.git
synced 2025-05-13 05:30:39 +01:00
6 lines
No EOL
236 B
Bash
6 lines
No EOL
236 B
Bash
ip link add dev wg0 type wireguard
|
|
ip addr add 192.168.4.1/24 dev wg0
|
|
ip link set up dev wg0
|
|
wg set wg0 private-key ./key
|
|
wg set wg0 listen-port 51820
|
|
wg set wg0 peer 3QfirSdDVihYCAz66t6DTAtFtsh+9WVVu7ItlL750hI= allowed-ips 192.168.4.28 |