Quick and simple Wireguard-to-Wireguard router, useful during CTFs where only a limited number of VPN profiles are provided by the organizers.
- An Hetzner account
- ansible
- A domain with DNS managed on Cloudflare
- Copy
config.sample.yml
toconfig.yml
and edit as appropriate - Place one of the organizers-provided vpn profiles in
ctf.conf
, make sure to remove anyDNS =
entries because those break the playbook for an unknown reason. ansible-playbook playbooks/setup.yml
- Distribute to your teammates the profiles in
credentials/client
ansible-playbook playbooks/teardown.yml
- TTL reset isn't done because ansible iptables module doesn't offer a clean way to do that
wg_generator.py
is kinda nice and reusable, you're free tostealuse it- I'm a total ansible n00b, you're free to shame me if you feel the need to do so
Stuff may break, your computer might explode and your Hetzner account could be used for mining if you run this playbook without double triple checking if everything looks good. No guarantees are provided etc etc 500 word of unreadable legalese were supposed to go here.