#!/bin/bash

# NOTA(vasco): vamos ter q fazer isto mil vezes 
sudo yum install -y epel-release
sudo yum install -y openvpn iptables-services
sudo systemctl stop firewalld
sudo systemctl disable firewalld
sudo systemctl mask firewalld
sudo systemctl enable iptables
sudo iptables -F

CA_DIR="/etc/pki/CA"
sudo mkdir -p "${CA_DIR}/newcerts"
sudo touch "${CA_DIR}/serial"
sudo cp ca.crt $CA_DIR

sudo mkdir -p /etc/openvpn/server
sudo mkdir -p /etc/openvpn/client
