Linux open ports, linux open ports

Source: Internet
Author: User

Linux open ports, linux open ports

In Linux, the server cannot be connected when software access is installed. In this case, check whether the corresponding port is enabled. For example, after svn is installed, unable to connect:

When the svn service is started, you Can use commands on the server to check out the files, but the files cannot be checked out on other computers. The following prompt is displayed: "svn: Can't connect to host '*. *. *.. I checked the firewall and saw that port 3690 was not open to the outside world. I fixed the problem by modifying the configuration file: Modify as follows:

[Root @ nb home] #More/etc/sysconfig/iptables# Firewall configuration written by system-config-firewall # Manual customization of this file is 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 22-j ACCEPT-A INPUT-m state -- state NEW-m tcp-p tcp -- dport 80-j ACCEPT-A INPUT-m state -- state NEW-m tcp-p tcp -- dport 8080-j ACCEPT-A INPUT-m state -- state NEW-m tcp-p tcp -- dport 3306-j ACCEPT-A INPUT-m state -- state NEW-m tcp-p tcp -- dport 8009-j ACCEPT-A INPUT-m state -- state NEW -m tcp-p tcp -- dport 8081-j ACCEPT-A input-m state -- state NEW-m tcp-p tcp -- dport 3690-j ACCEPT-A input-j REJECT -- reject-with icmp-host-prohibited-a forward-j REJECT -- reject-with icmp-host-prohibitedCOMMIT [root @ nb home] #/Etc/init. d/iptables restartIptables: clear firewall rules: [OK] iptables: Set the chain to policy ACCEPT: filter [OK] iptables: uninstalling module: [OK] iptables: Application Firewall Rules: [OK]




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.