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