Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conmand susceptible to telnet option negotiation loops #9

Closed
GoogleCodeExporter opened this issue Mar 17, 2015 · 4 comments
Closed
Labels
Milestone

Comments

@GoogleCodeExporter
Copy link

GoogleCodeExporter commented Mar 17, 2015

What steps will reproduce the problem?

conmand was observed using ~15% of the CPU while its consoles were in a quiescent state. conmand was configured with 16 consoles connecting to a new Appro GreenBlade via telnet. Investigation of the network traffic revealed a telnet option negotiation loop between conmand and the GreenBlade. (packet capture attached)

What is the expected output? What do you see instead?

After conmand responds to the DO BINARY command with WONT BINARY, it should
consider that option state as disabled and ignore subsequent DONT BINARY commands that simply confirm this option state. Instead, conmand replies with another WONT BINARY, which elicits another DONT BINARY ad infinitum.

What version of the software are you using? On what operating system?

conman-0.2.7
Linux 2.6.32-131.0.13.1chaos+2.gae8d65b.ch5.x86_64
Red Hat Enterprise Linux Server release 6.1 (Santiago)

Please provide any additional information below.

Selected output from running conmand in the foreground with debug enabled:

Connecting to <gb1:7001> for [foo].
Opened [foo] telnet: fd=8 host=gb1 port=7001 state=2.
INFO: Console [foo] connected to <gb1:7001>
Sent telnet cmd DO SUPPRESS GO AHEAD to console [foo].
Sent telnet cmd DO ECHO to console [foo].
Opened [foo] telnet: fd=8 host=gb1 port=7001 state=3.
Read 18 bytes from [foo].
Received telnet cmd WILL SUPPRESS GO AHEAD from console [foo].
Received telnet cmd WILL ECHO from console [foo].
Received telnet cmd DONT ECHO from console [foo].
Received telnet cmd DO BINARY from console [foo].
Sent telnet cmd WONT BINARY to console [foo].
Received telnet cmd WILL SUPPRESS GO AHEAD from console [foo].
Received telnet cmd WILL ECHO from console [foo].
Read 3 bytes from [foo].
Received telnet cmd DONT BINARY from console [foo].
Sent telnet cmd WONT BINARY to console [foo].
Read 3 bytes from [foo].
Received telnet cmd DONT BINARY from console [foo].
Sent telnet cmd WONT BINARY to console [foo].
Read 3 bytes from [foo].
Received telnet cmd DONT BINARY from console [foo].
Sent telnet cmd WONT BINARY to console [foo].
...

conmand.telnet.opt.loop.pcap.gz

Original issue reported on code.google.com by chris.m.dunlap on 18 May 2011 at 1:38

@dun dun added bug and removed auto-migrated labels May 16, 2015
@dun dun added this to the 0.2.8 milestone May 16, 2015
@dun dun self-assigned this May 16, 2015
@dun dun removed their assignment Jun 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants