Friends who often use CentOS may encounter the same problems as me. The firewall is turned on and the 80 port is inaccessible, and the friend who just started learning CentOS can refer to it.Friends who often use CentOS may encounter the same
Getting started with Linux: Enable the port on CentOS or RHEL Firewall
Q: I am running a web page or file server on CentOS and want to remotely access the server. Therefore, I need to change the firewall rules to allow access to a TCP port on the
Linux If the firewall is just installed when we commonly used port is not added, that is, can not access, then how to add the common port to the firewall through the state, the following we take 80 port as an example. Recently I was learning Linux.
I've been learning Linux lately. Build a LNMP environment. Everything is fine during the test. And then reboot Linux. Access to the Web site cannot be opened again. The final reason is that there are no rules to add port 80 to the firewall. The
If you want to provide services on the server, the enterprise-class Linux distributions, such as CentOS or RHEL, contain built-in powerful firewalls, and their default firewall rules are very stringent. Therefore, if you install any custom services (
Recently I was learning Linux. Build a LNMP environment. Everything is fine during the test. Then restart Linux. Visiting the website again cannot be opened. The final reason is that there are no rules to join port 80 in the firewall. Here's how:It
1. Iptables configuration file & para;The default configuration file in RHEL/CentOS/Fedora Linux is:/Etc/sysconfig/iptables-the system executes the script to activate the firewall function by reading the file.2. Basic operation: Display the default
CentOS Study Notes-firewall iptables, centosiptablesLinux Firewall: iptables
Iptables is a packet filtering software, and more than 2.6 of the Linux kernel is this software. This Section selects the Linux private dish of laruence-Chapter 9 server
We add port 80 as an example: [root @ centoshttpd] #/sbin/iptables-IINPUT-ptcp -- dport80-jACCEPT save [root @ centoshttpd] #/etc/rc. d/init. d/iptablessaveiptables: save the firewall rule to/etc/sysconfig. The following is an example of adding port
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.