Run the scripts in the following order:
- clean.sh
- generate_openvpn_config.sh <common_name>
- generate_ca.sh
- generate_new_client.sh <client_name>
- sudo run_openvpn_server.sh
Some of the following commands may need to be executed on the Host:
- If encountering this in the logs:
run the following:
iptables v1.8.4 (legacy): can't initialize iptables table `nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded.
sudo modprobe ip_tables echo 'ip_tables' | sudo tee -a /etc/modules