Strange problem: Telnet cannot connect to the normal open port of another server

Source: Internet
Author: User

Problem Description:

One server (known as a) opened Port 11211 as a memcache server, but another server (called B) could not call A's memcache and the display could not connect.

Investigation:

    1. Try to connect the 11211 port of connection A with Telnet on B first, time out.

    2. Swap with another machine to telnet A to port 11211, normal.

    3. Using B to Telnet to the open port of another machine is also normal.

    4. Other ports with B telnet A, such as 22, are not normal.

    5. With a Telnet b open port, also normal.

So, the problem seems to be a problem with only B telnet a.

Later thought on a grab a packet to see, respectively, with B telnet A and another can telnet to a machine telnet A, observe the two on a grab packet results, found that the results are not the same

B telnet A:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/E2/wKiom1WKfxLB1HZdAAGDRkCDRgo056.jpg "title=" QQ picture 20150624180040.jpg "alt=" Wkiom1wkfxlb1hzdaagdrkcdrgo056.jpg "/>

When other machines telnet A:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/E2/wKiom1WKf6biTALkAAEpE7Tmw6Q942.jpg "title=" QQ picture 20150624181111111.jpg "alt=" Wkiom1wkf6bitalkaaepe7tmw6q942.jpg "/>

You can see that the Telnet request for B has reached a, but a does not give B the corresponding normal condition, so B will show a timeout.

Although know the problem is where, but still no train of thought, finally suspected of the kernel network-related configuration, that is, the/etc/sysctl.conf configuration, compared to B and other machines of the file, found that B configuration in a few lines of configuration

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/E2/wKiom1WKgLSy_9PDAAZSNFXr6EI537.jpg "title=" QQ picture 20177777777.jpg "alt=" Wkiom1wkglsy_9pdaazsnfxr6ei537.jpg "/>

Then in B's/etc/sysctl.conf added these configuration, sysctl-p to take effect, and then try to telnet a, even succeeded.


Said so much, although the problem solved, but with my current skill level, or can not precisely know which configuration item played a key role, so still a little depressed.

You have to be knowledgeable!

Strange problem: Telnet cannot connect to the normal open port of another server

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.