Arhiv za november, 2015

centos7关闭防火墙

 

1. Disable Firewalld Service.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl mask firewalld

2. Stop Firewalld Service.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl stop firewalld

3. Install iptables service related packages.

[root@rhel-centos7-tejas-barot-linux ~]# yum -y install iptables-services

4. Make sure service starts at boot:

[root@rhel-centos7-tejas-barot-linux ~]# systemctl enable iptables

# If you do not want ip6tables, You can skip following command.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl enable ip6tables

5. Now, Finally Let’s start the iptables services.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl start iptables

# If you do not want ip6tables, You can skip following command.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl start ip6tables

Firewalld Service is now disabled and stop, You can use iptables.

 

 

关闭 selinux

vi/etc/selinux/config

#SELINUX=enforcing
SELINUX=disabled

Komentarji

Iftop

iftop有什么用?

iftop可以用来监控网卡的实时流量(可以指定网段)反向解析IP显示端口信息等详细的将会在后面的使用参数中说明

namestitev Iftop

namestitev 1、Prevesti in namestiti

Če lahko zbere in namestite Iftop na uradni spletni strani, da prenesete najnovejši paket izvorne。

Pred namestitvijo nastajanje okolje, potrebno za osnovne potrebe, ki so bili nameščeni,Na primer, da、gcc、autoconf 等。Namestitev Iftop morali namestiti tudi libpcap in libcurses。

Potrebna za namestitev odvisnosti na CentOS:

yum install flex byacc libpcap ncurses ncurses-devel libpcap-devel

Potrebna za namestitev odvisnosti na Debian:

apt-get install flex byacc libpcap0.8 libncurses5

Prenos Iftop

wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz

tar zxvf Iftop-0.17.tar.gz

CD Iftop-0.17

./konfiguracijo

Znamka && make install

Komentarji

网卡补丁

http://ftp.colocall.net/pub/elrepo/elrepo/el6/x86_64/RPMS/

Komentarji