Linux network programming no route to host solution "consolidate data"(2013-05-13 21:38:12)
reproduced
Tags: net iptables it |
Category: Linux |
Resources
http://1413570.blog.51cto.com/1403570/792861
http://2614223.blog.51cto.com/2604223/764757
In the vmvare with two MySQL, found with MySQL not connected to MySQL server, with telnet login MySQL 3306 port, found incredibly is no route to host;
[[Email protected] ~]$ telnet 192.168.2.48 3306
Trying 192.168.2.48 ...
Telnet:connect to address 192.168.2.48:no route to host
Telnet:unable to connect-to-remote host:no route to host
Feel very difference, it is estimated that the virtual machine installed a problem, the virtual machine in the firewall to clear a bit, found feasible.
[email protected] ~]$ sudo iptables-f
After the installation of VSFTPD today, the basic configuration is OK, local access to the other server access, prompting Ftp:connect:No route to host this problem, first of all, and VSFTPD service configuration is irrelevant, because you are already able to access the local , the first consideration is whether the firewall adds 21 ports, with the command iptables-l--line-num Discovery has been added, in addition, only consider the firewall is less FTP module, resulting in errorEdit Vi/etc/sysconfig/iptables-configAdd a line: iptables_modules= "Ip_nat_ftp ip_conntrack_ftp" after restarting Iptables[[email protected] ~]# service IPTABLES restartflushing firewall rules: [OK]setting chains to policy accept:filter [OK]unloading iptables modules: [OK] ]applying iptables Firewall rules: [OK]loading additional iptables modules:ip_nat_ftp ip_conntrack_ftp [OK]ok, module Already loaded and then access the FTP service is OK ...
Linux network programming no route to host solution