Posts

Showing posts with the label EC2

Configure Automatic Update on Amazon EC2 Server

While deploying EC2 server, one of the features tech operation stuff want is auto updates. We can configure such services in EC2 virtual server. First install yum-cron using the command below: sudo yum install yum-cron Next, we need to configure the conf file. Use the following command to open the config file:  sudo nano /etc/yum/yum-cron.conf The configuration sample are as follows:  # configure to apply type of update, apply update, email update_cmd = default update_messages = yes download_updates = yes apply_updates = yes random_sleep = 120 emit_via = email email_from = root@localhost email_to = emailladdress@domain.com email_host = localhost To start yum-cron and configure the service to start when system reboots using the following command: sudo systemctl start yum-cron.service sudo systemctl enable yum-cron.servic For older system, we might need to use the following command: sudo service yum-cron start sudo chkconfig yum-cron on ***...

Configuring OpenVPN on AWS EC2

Image
This tutorial focus on configuring OpenVPN on Amazon AWS EC2. We will not be going through the process of creating an Amazon account. For details about Amazon AWS please refer to the main site  https://aws.amazon.com/ . Update: 18 Aug 2018 A lot of changes happened in the span of few months. Openvpn is not in AWS AMI repo anymore. We need to install the latest version of Openvpn frpm EPEL and the configuration is very different. Thus we decided to create another version in a new post . If you are still using an old image of AWS and you have already installed Openvpn then the following setting may still work. Acknowledgement We would like to shout-out to Paul Bischoff for his post on "How to make your own free VPN with Amazon Web Services" .   He has recently updated the post for easy-rsa configuration. He made it easy for installing and configuring easy-rsa. However, we did not follow his openvpn configuration. For configuration we refer to openvpn HOWTO articl...