Wireguard Temporary Configuration

Aus xinux.net
Zur Navigation springen Zur Suche springen

Configuration

schnubbel
  • cd /etc/wireguard
  • ip link add wg0 type wireguard
  • ip addr add 10.84.252.45/24 dev wg0
  • wg set wg0 private-key ./private.key
  • ip link set wg0 up
  • wg set wg0 listen-port 50002 peer ULq8e5vYRa2s4phsRBkzOvRC8g819xM0/44rII6wqTg= preshared-key psk.key allowed-ips 10.83.33.0/24 endpoint 10.84.252.45:50002
gustavo
  • cd /etc/wireguard
  • ip link add wg0 type wireguard
  • ip addr add 10.84.252.33/24 dev wg0
  • wg set wg0 private-key ./private.key
  • ip link set wg0 up
  • wg set wg0 listen-port 50002 peer 80uEKK7oq3/T51TvUV5HrdwvGhd8WgEM630pz0lqTj8= preshared-key psk.key allowed-ips 10.83.45.0/24 endpoint 10.84.252.33:50002