Article Title: Modify iptables in Linux and cancel the 8080 access restriction. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
After JBoss is installed, enter the address http://xx.190.xx. 25: 8080/iNMS31Web on the client and find that the default port 8080 is inaccessible.
By default, the Linux Firewall disables port 8080. Therefore, to access port 8080, you can disable the firewall and enable the firewall to open port 8080.
To open port 8080, follow these steps:
1. Modify the/etc/sysconfig/iptables file and add the following line:
-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 8080-j ACCEPT
2. Restart the firewall. There are two methods to restart the firewall.
A) It takes effect after restart
Enable: chkconfig iptables on
Close: chkconfig iptables off
B) It takes effect immediately and becomes invalid after restart.
Enable: service iptables start
Disable: service iptables stop
Access from the client again. Successful!
Appendix: iptables Introduction
Iptables-static Firewall
Iptables is complex and integrated into the Linux kernel. You can use iptables to filter data packets that come in and out of your computer. Use the iptables command to set your rules to keep your computer network secure-which data is allowed to pass, which cannot pass, and which data is recorded (log ).