Linux Study notes seven week three lessons (March 21)

Source: Internet
Author: User

10.11 Linux Network related

Ifconfig-a can display the disabled or down network card;

Start the network card #ifup ens33; Disable the network card #ifdown Ens33;

Nic configuration file/etc/sysconfig/network-script/ifcfg-ens33

Copy Create virtual network adapter profile, #cd /etc/sysconfig/network-script/

#cp Ifcfg-ens33 ifcfg-ens33\:0

#vi!$

10.12 Firewalld and NetFilter

Getenforce View firewall status;


10.13 NETFILTER5 Table 5 Chain Introduction

View NetFilter instructions, #man netfilter;


10.14 iptables Syntax

Rules Save directory,/etc/sysconfig/iptables

-a add added;

-I insert insertion;

-D Delete delete;

-Z Zero 0;

Show rule serial number #iptables-nvl--line-numbers

Delete the first rule #iptables-d INPUT 1

-p policy Default rule; #iptables-p input drop causes disconnection; #iptables-P input ACCEPT;


Extensions (SELinux understands)

1. SELinux Tutorial Http://os.51cto.com/art/201209/355490.htm

2.selinux PDF ebook Http://pan.baidu.com/s/1jGGdExK


Linux Study notes seven week three lessons (March 21)

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.