System Administration

Slides:



Advertisements
Similar presentations
Module 13: Implementing ISA Server 2004 Enterprise Edition: Site-to-Site VPN Scenario.
Advertisements

Enabling Secure Internet Access with ISA Server
What all is there Inside the Apache web server. These slides are part of study material of LAMP course. Course conducted by Prof Rocky Jagtiani – Technical.
Module 5: TLS and SSL 1. Overview Transport Layer Security Overview Secure Socket Layer Overview SSL Termination SSL in the Hosted Environment Load Balanced.
Michelle J. Gosselin, Jennifer Schommer Guanzhong Wang.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 13: Administering Web Resources.
Module 5: Configuring Access to Internal Resources.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
Apache : Installation, Configuration, Basic Security Presented by, Sandeep K Thopucherela, ECE Department.
Network File System CIS 238. NFS (Network File System) The most commercially successful and widely available remote file system protocol Designed and.
Joshua Caltagirone-Holzli
Remote Disk Access with NFS
APACHE SERVER By Innovationframes.com »
Virtual Hosts The apache server can handle multiple “web sites” at a time – a web service provider company may have multiple different sites to offer (see.
Linux Operations and Administration
Managing Client Access
Basics of the HTTP Protocol and Apache Web Server Brandon Checketts.
Configuring a Web Server. Overview Overview of IIS Preparing for an IIS Installation Installing IIS Configuring a Web Site Administering IIS Troubleshooting.
Access Gateway Operation
Network Protocols. Why Protocols?  Rules and procedures to govern communication Some for transferring data Some for transferring data Some for route.
Chapter 10 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Explain how the functions of the application layer,
MCSE Guide to Microsoft Exchange Server 2003 Administration Chapter Four Configuring Outlook and Outlook Web Access.
An introduction to Apache. Different Types of Web Servers Apache is the default web server for may Unix servers. IIS is Microsoft’s default web server.
1 Network File Sharing. 2 Module - Network File Sharing ♦ Overview This module focuses on configuring Network File System (NFS) for servers and clients.
1 COP 4343 Unix System Administration Unit 15: file server – ftp – nfs.
Apache, PHP, MySQL Installation and configuration Web Programming with PHP,TITAS PROJECTIICT,BUET.
System Administration NFS & Web Servers. NFS SERVER.
Implementing ISA Server Publishing. Introduction What Are Web Publishing Rules? ISA Server uses Web publishing rules to make Web sites on protected networks.
Web Services CSCI N321 – System and Network Administration Copyright © 2007,2008 by Scott Orr and the Trustees of Indiana University.
IT:Network:Apps.  Microsoft Web Server ◦ Used by ~ 50% of Fortune 500 companies  Comes with Server OS  Expandable  Easy to use.
SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.
New SA Training Topic 8: File System Access  Our organization uses a variety of services for accessing files on remote systems  WWW  FTP  CIFS/SMB.
Set 13: Web Servers (configuration and security) (Chapter 21) IT452 Advanced Web and Internet Systems.
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG 11 Kigali, Rwanda May 2010 Dorcas Muthoni Courtesy: Hervey Allen.
User authentication, passwords
Apache HTTP mod_ftp William A. Rowe, Jr. ASF Member, httpd and APR projects Sr. Software Engineer, Covalent Technologies.
Single Sign-on with Kerberos 1 Chris Eberle Ryan Thomas RC Johnson Kim-Lan Tran CS-591 Fall 2008.
Simplify and Strengthen Security with Oracle Application Server Allan L Haensgen Senior Principal Instructor Oracle Corporation Session id:
Module 4 Planning and Deploying Client Access Services in Microsoft® Exchange Server 2010 Presentation: 120 minutes Lab: 90 minutes After completing.
Module 11: Implementing ISA Server 2004 Enterprise Edition.
Hands On Networking Network Applications Ram P Rustagi, ISE Dept Kundan Kumar, MCA Dept Manini Sahoor, MCA Dept Ravi Teja, MCA Dept Sourav.
The Inter-network is a big network of networks.. The five-layer networking model for the internet.
Web Hosting Herng-Yow Chen. Outline How different web site can be “ virtually hosted ” on the same server, and how this affects HTTP How to make web sites.
Sys Admin Course NFS and SAMBA Fourie Joubert. Sys Admin Course NFS NFS is the Network File System It allows Linux systems to share a file system, or.
Module 6: Managing Client Access. Overview Implementing Client Access Servers Implementing Client Access Features Implementing Outlook Web Access Introduction.
1 Linux Networking and Security Chapter 5. 2 Configuring File Sharing Services Configure an FTP server for anonymous or regular users Set up NFS file.
Network File System Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved NFS.
Integrating and Troubleshooting Citrix Access Gateway.
1 Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG X Cairo, Egypt May 2009 Hervey Allen.
NFS Network File System. NFS (Network File System) Network file systems allow us to share files between users on different systems, often with different.
Distributed File Systems Objectives –to understand Unix network file sharing Contents –Installing NFS –How To Get NFS Started –The /etc/exports File –Activating.
CITA 310 Section 9 Securing the Web Environment (Textbook Chapter 10)
1 Chapter Overview Creating Web Sites and FTP Sites Creating Virtual Directories Managing Site Security Troubleshooting IIS.
Web Technology – Web Server Setup : Chris Uriarte Meeting 4: Advanced Topics, Continued: Securing the Apache Server and Apache Performance Tuning Rutgers.
CITA 310 Section 5 Virtual Hosts and Virtual Directories (Selected Topics from Textbook Chapter 6)
IBM Http Server Basic Administration. CONTENTS Web server IHS How does IHS differ from Apache Basic configurations Advanced Configurations Performance.
Network File System Peter DSouza. NFS  Allows machines to mount a disk partition on a remote machine as if it were a local drive  Other systems similar.
VIRTUAL SERVERS Chapter 7. 2 OVERVIEW Exchange Server 2003 virtual servers Virtual servers in a clustering environment Creating additional virtual servers.
Web Server Administration Chapter 6 Configuring a Web Server.
Apache Configuration. Application Install IBM HTTP Server is Apache.
2B3309 Server Security Lars Noodén ( ) Web Server Configuration.
NWCLUG 04/06/2010 Jared Moore L A M P.
NAT、DHCP、Firewall、FTP、Proxy
Apache web server Quick overview.
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess
Affinity Depending on the application and client requirements of your Network Load Balancing cluster, you can be required to select an Affinity setting.
Unix System Administration
CIT 470: Advanced Network and System Administration
APACHE WEB SERVER.
Designing IIS Security (IIS – Internet Information Service)
Presentation transcript:

System Administration NFS & Web Servers

NFS Server

File System Operations Create file / directory Remove file / directory List directory Open file Read from file Write to file …

NFS Network file system File system ops over network RPC-based IP-based authorization Traffic not encrypted

From 鳥哥的Linux私房菜

Remote Procedure Call From SGI IRIX Network Programming Guide

RPC – Port mapper List which port has what service “portmap” or “rpcbind” List services: rpcinfo -p

NFS Server Debian Package: nfs-kernel- server NFS server is implemented in kernel. The package is for support utilities. Configuration: /etc/exports See exports(5) manpage Show exported paths exportfs showmount exportfs 只能在server上用 showmount 可以在任何有portmapper的機器上執行。可以查遠端機器的設定。

/etc/exports /home 192.168.1.0/24(ro) Path Client IP (modifier) 目錄 分享對象 (權限)

Client IPs IPs (192.168.1.1) IP networks (192.168.1.0/24) Hostnames (www.csie.ntu.edu.tw) Wildcards (*.csie.ntu.edu.tw) Hostname determined via reverse DNS lookup

Modifiers rw / ro sync / async root_squash / no_root_squash all_squash [more in exports(5) manpage] rw: 可讀寫 ro: 只能讀取 sync: 寫入時須等待伺服器將資料寫進硬碟 async: 寫入時只要伺服器收到資料就算完成 (反應速度比較快) root_squash: 用 root 存取時,會當做另一個使用者 (通常是 nobody, 可用 anonuid / anongid 指定) no_root_squash: root 還是 root all_squash: 任何人都當做 anonuid 指定的使用者

NFS Client Debian Package: nfs-common Configuration: /etc/fstab NFS client is implemented in kernel. The package is for support utilities. Configuration: /etc/fstab

/etc/fstab # local /dev/sda1 / ext4 rw # nfs nfs:/home /home nfs rw

NFS mount options fg / bg hard / soft intr / nointr (No use after 2.6.25) rsize= & wsize= See nfs(5) manpage fb / bg: 掛載時要等掛載完成,還是可以丟到背景慢慢等 hard / soft: 如過伺服器斷線,執行 I/O 的時候會一直重試還是回傳錯誤 intr / nointr: 執行I/O可否被 signal 中斷。 2.6.25 之後無效,只能用 SIGKILL 把程式砍掉。 rsize, wsize: NFS 一次讀寫的最大傳輸量

Automount Automatically mount filesystem when accessed Unmount after some time unused Implemented in kernel Package: autofs , autofs5

Web Servers

HTTP Hypertext Transfer Protocol Request Response Header Response Body

HTTP (cont.) Other binary protocols exist SPDY QUIC Multiplexing streams through a single TCP connection. QUIC Optimized for mobile devices Over UDP SSL handshake improvement

Apache HTTP Server Oldest(?) open source web server Most popular according to Netcraft Very versatile CGI/FastCGI/WSGI/PSGI/Rack/… mod_perl / mod_python / mod_ruby Many 3rd party modules Protocols for web frameworks/applications: WSGI => Python PSGI => Perl Rack => Ruby mod_perl / mod_python / mod_ruby: embed language interpreter in web server

Lighttpd Lightweight HTTP(S) server Single process event driven Early solution to C10k problem CGI, FastCGI, SCGI support Little new development

Nginx Web server Reverse proxy Load balancing Single process event driven FastCGI / SCGI / uWSGI No CGI High performance static file serving

Multi-Processing Module prefork 1 process per request worker worker thread pool 1 thread per connection Event event driven with worker thread pool 1 thread per request More info see http://serverfault.com/questions/38352 6/how-do-i-select-which-apache-mpm- to-use

Apache Packages Debian meta-package MPM 3rd party modules apache2 apache2-mpm-* 3rd party modules libapache2-mod-*

Basic Configuration # What port to use Listen 80 # My name ServerName nasa.csie.ntu.edu.tw # Run as User www-data Group www-data # PID PidFile /var/run/apache2.pid # log ErrorLog /var/log/apache2/error.log

Serving Configuration # Where is / DocumentRoot /var/www/base # Permissions for /var/www/base <Directory /var/www/base> Options None Order allow,deny Allow from all </Directory>

Virtual Hosts Serving many sites with 1 server IP-based virtual hosts 1 website per IP Port-based virtual hosts 1 website per port Name-based virtual hosts Many websites per IP/port Differentiate with “Host” header

Name-based Virtual Host NameVirtualHost * <VirtualHost *> DocumentRoot /var/www/www ServerName www.csie.ntu.edu.tw <Directory /var/www/www> Options None Order allow,deny Allow from all </Directory> </VirtualHost>

HTTP Authentication 401 Unauthorized mod_auth htpasswd Basic Digest Password sent in plaintext Digest Challenge / Response mod_auth mod_auth* Many backends htpasswd Manage Apache basic password files

HTTP Authentication <Location /locked> # Use basic authentication AuthType Basic # Name to show in dialog AuthName “Restricted” # Use htpasswd file based AuthBasicProvider file # Path to password file AuthUserFile /etc/apache/users.pw # Any user is good Require valid-user </Location>

URL Rewrite Rewrite a URL internally Redirect Regex Conditional Make pretty URLs to user Map old URL to new Redirect Regex Conditional Enable mod_rewrite

URL Rewrite # Load mod_rewrite LoadModule rewrite_module modules/mod_rewrite.so # Enable rewrite RewriteEngine On # rewrite rule # Redirect /blog?p=N to /new/blog/N RewriteRule ^/blog?p=(\d+) /new/blog/$1 [R]

FastCGI 2.2: mod_fastcgi or mod_fcgid 2.4: mod_proxy, mod_proxy_fcgi Run PHP with FastCGI if you can php-fpm – FastCGI Process Manager

PHP FastCGI for Apache 2.2 # Load modules LoadModule fastcgi_module modules/mod_fastcgi.so # Associate an alias for the 'fake' fcgi call. Alias /php5.fcgi /var/www/php5.fcgi # Assign the 'fake' fcgi to an 'external' FastCGI Server FastCGIExternalServer /var/www/php5.fcgi -flush -host 127.0.0.1:9000 # Create the handler mappings to associate PHP files with a call to '/php5.fcgi' AddType application/x-httpd-fastphp5 .php Action application/x-httpd-fastphp5 /php5.fcgi

PHP FastCGI for Apache 2.4 # Load modules LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so # Pass PHP file to FastCGI handler ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/var/www/$1

Homework Explain the “secure/insecure” options in /etc/exports in you own words. What security issues may incur when using “insecure” option? In early times, running a website over SSL requires a dedicated IP address. Describe why and how it is solved by using SNI (Server Name Indication). Describe what “TLS_ECDH_ECDSA_WITH_AES_256_GCM _SHA384” in TLS 1.2 cipher suite means.