Linux Open port

Source: Internet
Author: User

Linux system often occurs when the installation of software access, the server is not connected, this time it is necessary to check the appropriate port is open, for example, after installing SVN, not connected:

The SVN service is started and can be checked out using commands on the server, but it cannot be checked out on other computers, always prompting:"Svn:can ' t connect to host ' *.*.*.* ': Because the connecting party did not reply correctly or connected after a period of time"on the Internet to find a half-day to say what did not start service or anything, nonsense, no service to play eggs ah. I check the firewall to see that port 3690 is not open to the outside, by modifying the configuration file to solve the problem:Modify the following:

[[email protected] home]# More/etc/sysconfig/iptables# Firewall configuration written by System-config-firewall# Manual Customization of this file are not recommended.*Filter:INPUT ACCEPT[0:0]:FORWARD ACCEPT[0:0]:OUTPUT ACCEPT[0:0]-A INPUT-m State--State established,related-J ACCEPT-A INPUT-p ICMP-J ACCEPT-A INPUT-I lo-J ACCEPT-A INPUT-m State--State NEW-m TCP-p TCP--Dport A -J ACCEPT-A INPUT-m State--State NEW-m TCP-p TCP--Dport the -J ACCEPT-A INPUT-m State--State NEW-m TCP-p TCP--Dport8080 -J ACCEPT-A INPUT-m State--State NEW-m TCP-p TCP--Dport3306 -J ACCEPT-A INPUT-m State--State NEW-m TCP-p TCP--Dport8009 -J ACCEPT-A INPUT-m State--State NEW-m TCP-p TCP--Dport8081 -J ACCEPT -A INPUT -m State -StateNEW -m TCP -P-TCP --dport 3690 -J ACCEPT -A INPUT-J REJECT--Reject- withICMP-Host-prohibited-A FORWARD-J REJECT--Reject- withICMP-Host-prohibitedCOMMIT[[email protected] home]# /etc/init.d/iptables restart iptables: Clear firewall Rules: [OK]iptables: Set the chain as a policyACCEPT:Filter[OK]iptables: Uninstalling module: [OK]iptables: Apply firewall rules: [OK]




Linux Open port

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.