This unit provides an introduction on how to setup VPNs on Linux systems.
In this step you will install and start openvpn service on our lab VM. Use the script I wrote for you openvpn server setup for this lab which is based on instructions found in the Ubuntu LTS server docs.
Retrieve and run the script with the server option first to setup your vpn server with openvpn. It is designed to be run on the lab VM I provided for this course.
wget -O ~/vpn-config.sh https://zonzorp.github.io/NETS1028/Labs/vpn-config.sh
chmod +x vpn-config.sh
sudo ./vpn-config.sh -s nets1028-vpnserver
sudo systemctl start openvpn@nets1028-vpnserver
sudo ufw allow 1194/udp
sudo systemd-tty-ask-password-agent --query
systemctl status openvpn@nets1028-vpnserver
sudo cat /var/log/openvpn/openvpn-status.log
sudo ./vpn-config.sh -c nets1028-vpnclient nets1028-vpnserver
Do these steps on the Linux backups server VM created in a previous lab. We will use it as our vpn client to save creating another VM.
sudo apt update
sudo apt install openvpn
scp student@vpn-server-ip-address:/etc/openvpn/nets1028-vpnclient-vpnfiles.tgz .
sudo tar xf nets1028-vpnclient-vpnfiles.tgz -C /etc/openvpn
rm nets1028-vpnclient-vpnfiles.tgz
sudo vi /etc/hosts
sudo ip r add to 172.16.5.0/24 via lab-vm-ip-address
ping -c 3 nets1028-vpnserver
sudo systemctl start openvpn@nets1028-vpnclient
sudo systemd-tty-ask-password-agent --query
systemctl status openvpn@nets1028-vpnclient
sudo cat /var/log/openvpn/openvpn-status.log
Submit one PDF and only one PDF containing screenshots showing the work you did. Everywhere there is a screenshot marker in the instructions above, you must capture enough to show the command(s) you ran and the results of running it/them.