Build your own Lightweight Webserver - Hands-on I - Information Network I. Marius Georgescu. Internet Engineering Laboratory. 17 Apr

Similar documents
HOW TO SECURELY CONFIGURE A LINUX HOST TO RUN CONTAINERS

Using RDP with Azure Linux Virtual Machines

Ixia Developer KVM over CentOS deployment and configuration steps:

Configuring a Palo Alto Firewall in AWS

Redhat OpenStack 5.0 and PLUMgrid OpenStack Networking Suite 2.0 Installation Hands-on lab guide

Safari O Reilly CLASS PREPARATION

DC/OS on Google Compute Engine

Start the Ubuntu Linux VM in VirtualBox. In the VM X Window session, logon as the default user osboxes.

NVIDIA Licensing Information

Cisco Modeling Labs OVA Installation

Zenoss Resource Manager Upgrade Guide

Some Details. Network Startup Resource Center

Install and Configure FindIT Network Manager and FindIT Network Probe on a VMware Virtual Machine

Lab #9: Basic Linux Networking

Jackson State University Department of Computer Science CSC / Computer Security Fall 2013 Instructor: Dr. Natarajan Meghanathan

How To Start Mysql Using Linux Command Line Client In Ubuntu

MULTI FACTOR AUTHENTICATION USING THE NETOP PORTAL. 31 January 2017

ssh and handson Matsuzaki maz Yoshinobu 1

Prerequisites: Students must be proficient in general computing skills but not necessarily experienced with Linux or Unix. Supported Distributions:

Providing HTTP Service on a Port

Bergmans Mechatronics LLC. LabSocket. User Guide. LabSocket-Basic System. (Evaluation Version) May Copyright 2014 Bergmans Mechatronics LLC

This is a guide about using Putty on Windows with OpenSSH on Linux. You would learn about how to:

BR*Tools Studio 7.10 for Oracle Multi-instance Server Standalone Part 2: Server, Database Instances and their Users

Linux Systems Security. Access Control and Authentication NETS1028 Fall 2016

Deployment Guide for Nuage Networks VSP

Deployment Guide for Nuage Networks VSP

CSCI 350 Virtual Machine Setup Guide

What is Secure. Authenticated I know who I am talking to. Our communication is Encrypted

Zenoss Resource Manager Upgrade Guide

Install latest version of Roundcube (Webmail) on CentOS 7

Setting up the Apache Web Server

OPENSTACK CLOUD RUNNING IN A VIRTUAL MACHINE. In Preferences, add 3 Host-only Ethernet Adapters with the following IP Addresses:

Preparing Your Google Cloud VM for W4705

Ubuntu Set Static Ip Address Command Line

VIRTUAL GPU LICENSE SERVER VERSION , , AND 5.1.0

Authenticating and Importing Users with AD and LDAP

Reset the Admin Password with the ExtraHop Rescue CD

Table of Contents 1 V3 & V4 Appliance Quick Start V4 Appliance Reference...3

Cryptography Application : SSH. Cyber Security & Network Security March, 2017 Dhaka, Bangladesh

Red Hat Enterprise Linux 7 Getting Started with Cockpit

Cryptography - SSH. Network Security Workshop May 2017 Phnom Penh, Cambodia

Red Hat Enterprise Linux Atomic Host 7 Getting Started with Cockpit

Linux Administration

Cryptography - SSH. Network Security Workshop. 3-5 October 2017 Port Moresby, Papua New Guinea

SmartCash SmartNode Setup Guide V1.2 Windows 10 13/01/2018 By (Jazz) yoyomonkey Page 1

EASYLAMP REDHAT V1.0 DOCUMENT OWNER: OUDHUIS, JONATHAN INGRAM MICRO CLOUD EUROPE

GIT. A free and open source distributed version control system. User Guide. January, Department of Computer Science and Engineering

HOW-TO-GUIDE: demonstrating Fabric Attach using OpenVSwitch

Illustrated Steps to create greggroeten.net with AWS

Cloud Computing. Luigi Santangelo Department of Computer Engineering University of Pavia

Configure 802.1x - PEAP with FreeRadius and WLC 8.3

Zenoss Resource Manager Upgrade Guide

CS 716: Introduction to communication networks. Instructor: Sridhar Iyer Demo by: Swati Patil IIT Bombay

Building a 64-bit CentOS 7 Workstation using Oracle Virtual Box

Authenticating and Importing Users with Active Directory and LDAP

Authenticating and Importing Users with AD and LDAP

pulsarvmlite v Installation and Usage

CIS 76 Ethical Hacking Building an open source Pentest Sandbox, carrying out a Remote Code Execution exploit, and Remediating the RCE vulnerability.

ELE409 SPRING2018 LAB0

1. Download the latest version of the Kali Linux 64 bit ISO image:

StoneLock Gateway Installation Manual. v.1.4

Expedition. Hardening Guide Version Palo Alto Networks, Inc.

The Balabit s Privileged Session Management 5 F5 Azure Reference Guide

iridium Server for Raspberry Pi

Plexxi Control Installation, Upgrade and Administration Guide Releases 2.3.x, 2.4.x, 3.0.x, 3.1.0

LECTURE 7. Readings: - SSH: The Definitive Guide; D.J. Barret et al.; O Reilly Lecture outline: - SSH. Marco Spaziani Brunella, Manuel Campo

SmartCash SmartNode Setup Guide v1.2. Windows 10. Date: 13/01/2018. By (Jazz) yoyomonkey

LAB-5: NAT64/DNS64. Lab Environment. Configure the IPv6 only client: Open the GNS3 project file: The lab topology has:

Programming Tools. Computer Organization Tools. Most of the programming assignments will require using the C language.

Article Number: 602 Rating: Unrated Last Updated: Tue, Jan 2, 2018 at 5:13 PM

Cloud Computing II. Exercises

Linux. Computer networks - Administration 1DV202. fredag 30 mars 12

Installing Cisco VTS on a VMware Environment, page 6 Installing the Virtual Topology Forwarder, page 9 Verifying VTS Installation, page 14

#Uncomment the second line to enable any form of FTP write command. #write_enable=yes

VIRTUAL GPU LICENSE SERVER VERSION AND 5.1.0

Creating a Virtual Network with Virt-manager

Apache Hadoop Installation and Single Node Cluster Configuration on Ubuntu A guide to install and setup Single-Node Apache Hadoop 2.

Linux Network Administration

Apache Manual Install Ubuntu Php Mysql. Phpmyadmin No >>>CLICK HERE<<<

DogeCash Masternode Setup Guide Version 1.2 (Ubuntu 16.04)

Dragonframe License Manager User Guide Version 1.3.1

Active Fabric Manager for Microsoft Cloud Platform System Installation Guide for AFM-CPS 2.2(0.0)

Bitnami Apache Solr for Huawei Enterprise Cloud

Comodo Dome Data Protection Software Version 3.8

OpenFlow Configuration Lab

Comodo Dome Firewall Central Manager Software Version 1.2

Services, logging, accounting Todd Kelley CST8177 Todd Kelley 1

SSH. What is Safely 6/19/ June 2018 PacNOG 22, Honiara, Solomon Islands Supported by:

Ftp Command Line Manual Windows Example Port 22

It is possible to use OpenDLP in an agentless mode, but the agent shifts the processing to the host instead of the server.

Symantec Security Information Manager FIPS Operational Mode Guide

Lab4 Embedded Linux. Introduction

Two factor authentication for Apache using mod_auth_xradius

Plexxi Control Installation, Upgrade and Administration Guide Releases 2.3.x, 2.4.x, 3.0.x, 3.1.0

a. puppet should point to master (i.e., append puppet to line with master in it. Use a text editor like Vim.

EECS 1710 SETTING UP A VIRTUAL MACHINE (for EECS labs)

L.A.M.P. Stack Part I

Install Apache, PHP And MySQL On CentOS 7 (LAMP)

SmartCash SmartNode SCRIPT Setup Guide v2.2. Windows 10. Date: 20/02/2018. By (Jazz) yoyomonkey

Image Management Service. User Guide. Issue 03. Date

Transcription:

Build your own Lightweight Webserver - Hands-on I - Information Network I Marius Georgescu Internet Engineering Laboratory 17 Apr. 2015 iplab Prerequisites Prerequisites Download and Install VirtualBox Windows [download link] OS X [download link] Linux [download link] Download the ready-made CentOS VM image (User: in1 Pass: info2015) [local download link] *Windows users only: Download and install Cygwin For the Download site choose one of the JP mirrors e.g. ftp://ftp.iij.ad.jp Make sure the libssh2, openssh packages are installed 2 / 13

Import VM Import VM Choose the [previously] downloaded VM image Start the Import appliance on VirtualBox 3 / 13 Apache Server Install Apache Server Start the terminal application Run the command to install the Apache daemon: $ sudo yum -y install httpd 4 / 13

Apache Server Configure Apache Server Run the following commands: Start the terminal application and edit the following file with the vi text editor (gedit is an alternative) as shown in the screenshot: $ sudo vi /etc/httpd/conf/httpd.conf $ sudo gedit /etc/httpd/conf/httpd.conf to add the httpd to the startup: $ sudo systemctl enable httpd to start the http daemon: $ sudo systemctl start httpd to check if http is running: $ sudo systemctl status httpd 5 / 13 QnA1 QnA1 6 / 13

Check the client-server functionality Change the NIC settings *Mac users: Everyone: After shutting down the VM, in the main VirtualBox window choose the Preferences Menu Shut down the VM and go to the VM Settings menu In the Network Tab add new Host-only network In the Network tab choose Host-only Adapter Set it up to act as DHCP server 7 / 13 Check the client-server functionality Test client-server connection Check the reachability of the Webserver: Confirm the IP address of the server with the ifconfig command: Use ping to check reachability Check that the Apache server is running using the Browser on your host (Windows / Mac / Linux ) machine. 8 / 13

QnA2 QnA2 9 / 13 Remote connectivity Test Secure SHell (SSH) Connection Test SSH from MAC / Linux hosts: $ ssh in1@192.168.56.101 Test SSH from Windows Hosts using the Cygwin console: $ ssh in1@192.168.56.101 10 / 13

Remote connectivity Securing OpenSSH Use SSH Public Key Authentication: Using the terminal / Cygwin console create a public/private key pair with the command: $ ssh-keygen -t rsa Copy the public rss key to the remote server with the command: $ scp /.ssh/id_rsa.pub in1@192.168.56.101: /.ssh/authorized_keys Disable the SSH password authentication by editing the sshd_config file as shown in the screenshot: $ sudo vi /etc/ssh/sshd_config Restart the ssh daemon using: $ systemctl restart ssh Other recommended security measures can be found in the CentOS official documentation [link] 11 / 13 Hello World!!! Hello World!!! Using an SSH connection from the host machine add an index.html file as shown in the screenshot $ sudo vi /var/www/html/index.html Connect to the Webserver using the host machine browser. You should see: 12 / 13

QnA3 QnA3 13 / 13