Classic document: Linux Network Security Configuration Basics

Source: Internet
Author: User
Article Title: Classic document: basic explanation of Linux Network Security Configuration. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Linux security configuration steps

I. Disk partitioning

◆ 1. If the system is newly installed, consider the security of Disk Partitions:

(1) the root directory (/), user directory (/home), temporary directory (/tmp), And/var directory should be separated to different disk partitions;

(2) the disk space of the partitions where the directories are located should be fully taken into account to avoid system crashes due to insufficient partition space for some reasons;

◆ 2. For the partitions in the/tmp and/var directories, the program with the suid attribute is not required in most cases, so the nosuid attribute should be added for these partitions;

Method 1:Modify the/etc/fstab file and add the nosuid attribute word. For example:

/Dev/hda2/tmp ext2 exec, dev, nosuid, rw 0 0

Method 2:If you are not familiar with the operations on the/etc/fstab file, we recommend that you use the linuxconf program.

* Run the linuxconf program;

* Select "Access local drive" under "File systems ";

* Select the disk partition for which the attribute needs to be modified;

* Select "No setuid programs allowed;

* Select other options as needed;

* Exit normally. (The system will usually prompt you to re-mount the partition)

Ii. Installation

1. Too many software packages should not be installed on non-tested hosts. This reduces the possibility of security vulnerabilities caused by software packages.

2. For non-test hosts, do not select a non-essential service when selecting a host to start the service. Such as routed and ypbind.

Iii. Security Configuration and Enhancement

Kernel upgrade. Upgrade to 2.2.16 or later.

Upgrade the GNU libc shared library. (Warning: you cannot try it easily if you have no experience. Can be suspended .)

Disable dangerous network services. Echo, chargen, shell, login, finger, NFS, RPC, etc.

Disable non-essential network services. Talk, ntalk, pop-2, etc.

Security Configuration and upgrade of Common Network Services

Make sure that the version used by the network service is the latest and safest version.

Cancel anonymous FTP access

Unless necessary suid Program

Use tcpwrapper

Use ipchains Firewall

Syslogd

[1] [2] [3] [4] [5] [6] [7] [8] Next page

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.