Category: Linux Tutorials

  • Linux IPSec Site-to-Site VPN: AWS VPC & Vyatta Firewall

    In this tutorial, we will use the Site-to-Site VPN scenario with the modification and one of the customer site that is using Vyatta firewall, which is also acting as gateway for LAN plus the vpn gateway while from the AWS side, we are using the exact same Ubuntu Linux router. Please review the previous tutorial before starting this tutorial, […]

  • Automated installation of LAMP stack on Ubuntu Server

    In this tutorial, I’ll show you that how we can install the LAMP stack on Ubuntu Server interactively. First create the script : vi lamp.sh Copy and Paste the following code into it (Modify the MySQL root Password,as per your requirement): #!/bin/bash #Instructions to use this script # #chmod +x SCRIPTNAME.sh # #sudo ./SCRIPTNAME.sh echo […]

  • Linux IPSec Site-to-Site VPN: AWS VPC & Mikrotik Router

    In this tutorial, we will use the Site-to-Site VPN scenario with the modification and one of the customer site that is using Mikrotik router, which is also acting as gateway for LAN plus the vpn gateway while from the AWS side, we are using the exact same Ubuntu Linux router. Please review the previous tutorial before starting this tutorial, […]

  • Site-to-Site VPN between AWS VPC and Customer Site using Linux

    In this tutorial, we will use the previous scenario on AWS side for the creation of site-to-site vpn between AWS VPC and Local site. On Amazon side, we’ll use Ubuntu 14.04 LTS, which will act as gateway for private subnet(s) plus the vpn gateway, while on the Local site, we’ll use the CentOS 6.5, which will perform […]

  • Add a Custom NAT instance in AWS VPC

    In this tutorial, I am assuming that you have already created VPC with Public and Private subnets In the above scenario, we’ll create a micro instance inside the public subnet with an IP 10.100.10.0/24, which will act as the gateway for all the instance(s) inside the private subnet (10.100.20.0/24). Also, please create the separate Security […]

  • Installing the Amazon EC2 Command Line Interface Tools on Ubuntu

    This tutorial will explain that how to install Amazon EC2 Command Line Interface Tools on an Ubuntu. Enable the awstools PPA : sudo apt-add-repository ppa:awstools-dev/awstools Update the apt packages: sudo apt-get update Install the pip and python package: sudo apt-get install python-setuptools python-pip Then install the newest available version of AWS tools:  sudo apt-get install […]

  • How to Resize the Root Partition in Linux on Amazon EC2

    Check the Root Partition size before resize: df -h The current root partition size is ~8 GB. After that, stop your instance: sudo poweroff Go to Volumes on the left-hand EC2 navigation control panel.Right-click on the volume you want to resize and select Create Snapshot. Note: Make sure you also check the availability zone. Fill out the […]

  • InterVLAN Routing with Internet Access on Ubuntu

    Scenario: Router: Ubuntu Server with 1 network card. Clients:  WindowsXP in VLAN10,Windows7 in VLAN20. Internet: Internet Router on VLAN30 Switch: Cisco 2960 Cisco 2960 Switch Configuration: interface FastEthernet0/12 description CONNECTED TO UBUNTU ROUTER switchport mode trunk ! ! interface FastEthernet0/1 description WINXP switchport access vlan 10 switchport mode access ! ! interface FastEthernet0/2 description Win7 switchport access vlan 20 switchport […]

  • {Workaround}how to get access to the server, when Amazon EC2 private key lost

    1. Login to your AWS Management Console. 2. Select  EC2 from the Services | set your Region in the drop-down list | Click the Instances link in left side bar. 3. Right click on the instance name. The Instance Management context menu will appear. Select Create Image. 4. Enter the name and description. This is for your use, not […]

  • OpenVPN server on CentOS 6.4 behind NAT

    This tutorial describes that how to configure the OpenVPN Server in CentOS 6.4 and clients in Windows XP/7. I am taking the scenario of SOHO network, which is protected by Firewall, we’ll implement the OpenVPN on internal CentOS 6.4 server to access the internal SOHO network (Server and PCs) through the internet from anywhere securely. Before […]