howtos/add_external_hardware_to_vpn.md

33 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2020-08-24 16:14:09 +01:00
# Add external servers to vpn
2020-08-25 11:09:45 +01:00
- In the Fedora Infra Ansible repo edit the file **roles/batcave/files/allows**.
2020-08-24 16:14:09 +01:00
Under the correct section add **require ip** ***<server_ip>***
- When this change is pushed run the batcave ansible playbook on the batcave.
2020-08-25 11:09:45 +01:00
You will need sysadmin-main access for this
2020-08-24 16:14:09 +01:00
- Create openvpn and 2fa certificates for the new server.
This requires sysadmin main access
> * https://pagure.io/fedora-infra/howtos/blob/main/f/generate_2fa_keys.md
> * https://pagure.io/fedora-infra/howtos/blob/main/f/generate_openvpn_keys.md
2020-08-24 16:14:09 +01:00
- In the dns repo on batcave edit the file master/168.192.in-addr.arpa
Add the new host to one of the unused adresses.
2020-08-25 11:09:45 +01:00
Ensure the hostname ends in .vpn.fedoraproject.org.
Don't forget to update the serial before saving.
2020-08-24 16:14:09 +01:00
- Also edit the master/vpn.fedoraproject.org file to add the server with
the new 192.168.*.* address created in the previous step to the required section
2020-08-25 11:09:45 +01:00
Don't forget to update the serial before saving.
2020-08-24 16:14:09 +01:00
- When the above edits are done follow the instructions in the DNS sysadmin sop
2020-08-24 16:14:09 +01:00
about signing and pushing new dns chnages.
> https://docs.fedoraproject.org/en-US/infra/sysadmin_guide/dns/
2020-08-24 16:14:09 +01:00
- Finally in the Fedora Infra Ansible repo add a new file
2020-08-25 11:09:45 +01:00
**roles/openvpn/server/files/ccd/*<server_name>*** with the new 192.168.*.* address.
2020-08-24 16:14:09 +01:00
View one of the existing files in the repo for a sample of formatting.
This change will be run when the server is provisioned.