Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CentOS 7.0 Close firewall is enabled by default iptables firewall     - Cobbler remotely install CentOS system (Linux)

- CentOS 6.5 start ActiveMQ being given to solve (Server)

- Use window.name + iframe cross-domain access to data Detailed (Programming)

- Linux processes in memory and memory cgroup statistics (Linux)

- Use Vagrant up a local development environment tutorials (Server)

- Linux Command Study Notes (Linux)

- Ceph cluster disk is no workaround for the remaining space (Server)

- How to add two-factor authentication for Linux systems SSH (Linux)

- How to back up Debian system backupninja (Linux)

- Ubuntu upgrade to Linux Kernel 4.2.3 Kernel (Linux)

- Ubuntu 12.04 / 14.04 users to install software LyX document processing (Linux)

- Shell array: Define Shell array, the array length (Programming)

- Actual SSH port forwarding (Linux)

- Using Android Studio integrated development environment to build Android (Linux)

- MySQL script incremental backups (innobackupex) (Database)

- CentOS 6.5 three ways to configure the IP address (Linux)

- CentOS7 virtual machine settings, and bridging problems (Linux)

- Recover Ubuntu 14.04 wakes up from standby in case mouse keyboard appears dead (Linux)

- Getting Started with Linux: Learn how to install and access CentOS 7 Remote Desktop on a VPS (Server)

- To install Git on Ubuntu systems (Server)

  CentOS 7.0 Close firewall is enabled by default iptables firewall
  Add Date : 2018-11-21      
  Operating system environment: CentOS Linux release 7.0.1406 (Core) 64 Wei
CentOS 7.0 is the default firewall as a firewall, iptables firewall to step here.

1, closed firewall:
systemctl stop firewalld.service # Stop firewall
systemctl disable firewalld.service # prohibit firewall boot
firewall-cmd --state # view the default firewall status (closed display notrunning, display running after opening)

2, iptables firewall (iptables here has been installed, configured below)
vi / etc / sysconfig / iptables # edit the firewall configuration file
# Sampleconfiguration for iptables service
# You can edit thismanually or use system-config-firewall
# Please do not askus to add additional ports / services to this default configuration
* Filter
-A INPUT -p icmp -jACCEPT
-A INPUT -p tcp -mstate --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -jACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 8080-j ACCEPT
-A INPUT -j REJECT - reject-with icmp-host-prohibited
-A FORWARD -jREJECT --reject-with icmp-host-prohibited
:! Wq # Save and exit

Note: As used herein, ports 80 and 8080 for example. *** Add to some of the general - above or below "-A INPUT -p tcp -m state --state NEW -m tcp dport 22 -j ACCEPT" line, remember not to add to the last row, otherwise the firewall does not restart effect.
systemctlrestart iptables.service # final restart firewall configuration to take effect
systemctlenable iptables.service # firewall boot
- Ubuntu 14.04.02 LTS startup items erroneous writing / dev / sda1 (win 7 loader) Repair (Linux)
- Oracle delete table space prompted ORA-00604 and ORA-38301 (Database)
- Install Ubuntu 14.04 and Windows 8 / 8.1 dual-boot in UEFI mode (Linux)
- Linux iptables: basic principles and rules (Linux)
- Android memory optimization of the disk cache (Linux)
- Installation and Configuration OpenVPN server and client on Ubuntu 15.04 (Server)
- Cobbler automatic mass deployment of CentOS 6 and CentOS 7 (Linux)
- rpm package specify the installation path (Linux)
- Vim useful plugin: vundle (Linux)
- Analysis JavaBean (Programming)
- Nagios (centreon) monitoring LVS (Server)
- 10 practical Java programming technology (Programming)
- Set up MySQL master and slave servers under Ubuntu 14.04 (Server)
- Linux raw socket (Programming)
- Why learn and use C language (Programming)
- Linux pwd command learning experience (Linux)
- Slow update statement Performance Analysis (Database)
- Linux modify environment variables method (Linux)
- 32-bit and 64-bit integer in PHP and MySQL range (Database)
- Use smem visual display Linux memory usage (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.