Time:2014-12-19 01:17Source:CsdnAuthor:Big Wisdom ReportClick:5,639 playsWould like to do some firewall policy. The firewall policy is written in the/etc/sysconfig/iptables file. But I found that I did not have this file.Cd/etc/sysconfig/[[email
Note: The basic operation of the firewall command:Querying firewall Status:[[Email protected] ~]# service iptables statusTo stop the firewall:[[Email protected] ~]# service iptables Stop To start the firewall:[[Email protected] ~]# service iptables
124. *. * This ip segment is very disgusting, it is recommended to block # iptables-F # iptables-PINPUTACCEPT # iptables-POUTPUTACCEPT # iptables-PFORWARDACCEPT # iptables-AFORWARD-s124.115.0.0/24-jDROP # iptables on the server
124. 115. *. * This
Iptables-F # Allow packets to enter iptables-AINPUT-ptcp from port 22? Dport22-jACCEPT # The packet that allows access from port 22 returns iptables-AOUTPUT-ptcp? Sport22-mstate? StateESTABLISHED-jACCEPTiptables-AOUTPUT-pudp? Dport5
Iptables-F
#
Iptables-F # Allow packets from port 22 to enter iptables-AINPUT-ptcp -- dport22-jACCEPT # Allow packets from port 22 to return iptables-AOUTPUT-ptcp -- sport22-mstate -- stateESTABLISHED-jACCEPTiptables-AOUTPUT- pudp -- dp
Iptables-F
# Allow
To enable port 80 access in CentOS firewall settings, we add port 80 as an example: [root @ centoshttpd] #/sbin/iptables-IINPUT-ptcp -- the dport80-jACCEPT saves [root @ centoshttpd] #/etc/rc. d/init. d/iptablessaveiptables: set
Enable port 80
in the Rhel/centos System, the default FTP software is vsftp, the following is the installation configuration process. server:balichvm(192.168.171.51)1),yum install vsftpd Package[email protected] ~]# Yum install vsftpd2), start vsftpd
Iptables is just a Linux firewall management tool, located in/sbin/iptables. The real firewall function is NetFilter, which is the internal structure of implementing packet filtering in the Linux kernel. The iptables contains 4 tables and 5 chains.
SELINUXThere are two ways to turn off SELinux: Temporarily turn off the SELinux firewall and SELinux will open after the next reboot. #setenforce 0 #getenforce#查看临时关闭selinux的状态命令永久关闭selinux#vi/etc/selinux/config#修改selinux的配置文件Change
Understanding Firewalls
Concept
Role
Firewall category on Linux
Packet filtering mechanism NetFilter
Program Control mechanism TCP Wrappers
General network Cabling
Ability to use
CI server: 192.168.4.221Root User ActionsRecommended to update the operating system before installation# Yum UpdateRestart after update is complete# RebootInstalling Apache# Yum install httpd Httpd-devel# Service Httpdstart# Chkconfig Httpdon# vi/
Background:It should be very easy to build a pptp vpn Server. However, many of my friends have turned to me for help after reading some articles and have taken many detours.Therefore, I think it is necessary to write an article to explain it. After
How Linux firewalls Open specific portsIptables is a firewall under Linux and is also the service name.Service iptables Status View firewall stateService iptables start to turn on the firewallService iptables Stop shutting down the firewallService
Linux Operations Phase III (VII) NFS configuration1, server-side software: Install Nfs-utils and Portmap (Rpcbind)Nfs-utils: Offers two NFS daemons kits for RPC.NFSD and RPC.MOUNTDPortmap:nfs can actually be seen as an RPC server program, and to
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.