Skip to content

Amit152505/Initial-simple-WireGuard-install-rotation-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

WireGuard Simple

Minimal repo to install WireGuard on a single Ubuntu instance and rotate server keys.

Steps (summary)

  1. Launch an Ubuntu 22.04 or 20.04 EC2 instance (t2.micro / t3.micro) with a security group that allows:
  • SSH from your IP (port 22)
  • UDP 51820 from clients (or restrict to known IP ranges)
  1. Copy scripts/install-wireguard.sh to the instance and run: sudo bash install-wireguard.sh

  2. Note the server public key printed by the script. Generate client configs on the server (example shown in the script) or use wg locally.

  3. To rotate server keys later, copy scripts/wg-rotate.sh to the instance and run: sudo bash wg-rotate.sh

About

Minimal repo to install WireGuard on a single Ubuntu instance and rotate server keys.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages