Linux OPS Practice-November 8, 2015-November 17 course Assignments (exercise) Summary

Source: Internet
Author: User
Tags wordpress forum nginx reverse proxy

Linux OPS Practice-November 8, 2015-November 17 course Assignments (exercise) Summary

I. Homework (exercise) content:

First, Iptables class work

Premise: Input and output default policy is drop;

1. The Web server that restricts the local host is not allowed to access in Monday; the rate of new requests cannot exceed 100 per second; The Web server contains the admin string and the page is not allowed; The Web server only allows the response message to leave the unit;

2, during the working hours, that is, Monday to Friday 8:30-18:00, open the local FTP service to the 172.16.0.0 network host access, the number of data download requests per minute not more than 5;

3, open the local SSH service to the host in 172.16.x.1-172.16.x.100, X is your seat number, the new request to establish the rate of one minute not more than 2, only allow the response message through its service port to leave the unit;

4, reject the TCP flag bit all 1 and all 0 of the message access to the machine;

5, allow the native ping other host, but not open the other host ping this machine;

Summary and application of Linux iptables

Second, control VSFTPD only allow host access in the 172.16.0.0/255.255.0.0 network, except 172.16.100.3; the access attempts that were denied are recorded in the/var/log/tcp_wrapper.log log file;

vsftpd Virtual user, Extended Application Tcp_wrapper experiment Summary of Linux

Iii. Script programming classes (array exercises)

1. Write a script: Define an array whose elements are the names of all files that end with. Log in the/var/log directory; Displays the number of rows per file;

2, write a script, generate 10 random numbers, and according to the order from small to large;

3, write a script, can randomly select a classmate from all the students to answer questions; further: can accept a parameter, as the number of students to select;

Bash Shell basic features three (array)

Four, sudo practice

1, authorized CentOS users can run the FDISK command to complete Disk Management, and use MKFS or MKE2FS to achieve file system management;

2, authorized Gentoo users can run the logical volume management of related commands

the sudo of Linux

V. VSFTPD and Pam Classes

1, realize the VSFTPD function based on virtual user authentication;

2, the virtual user's account and password information stored in MySQL.

vsftpd Virtual user, Extended Application Tcp_wrapper experiment Summary of Linux

Vi. Advanced Application Class (Intermediate class selected, Advanced Class will do)

1, altogether 3 servers, please arrange the allocation of resources rationally;

2, through the Nginx reverse proxy to achieve the load balance of the LNMP architecture, back-end service content for the WordPress forum, request access to any one backend Web server, all can obtain consistent and up-to-date data;

3, back-end Nginx and PHP separation.

(Pending update) ...


This article is from the "10,000-hour Law" blog, be sure to keep this source http://daisywei.blog.51cto.com/7837970/1713249

Linux OPS Practice-November 8, 2015-November 17 course Assignments (exercise) Summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.