In Linux, modify iptables to cancel the 8080 access restriction.

Source: Internet
Author: User
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 ).

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.