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

Protocol "telnet" not supported or disabled in libcurl #361

Closed
norve opened this issue Mar 9, 2021 · 7 comments
Closed

Protocol "telnet" not supported or disabled in libcurl #361

norve opened this issue Mar 9, 2021 · 7 comments
Labels
area/packages Issues related to the package maintainence. good first issue Get started with Flatcar contribution with this issue. kind/enhancement Enhancement of an existing component.

Comments

@norve
Copy link

norve commented Mar 9, 2021

Prior to the last release, it used to be possible to run, for example:
curl -v telnet://towel.blinkenlights.nl:23 to open a telnet/socket connection. Right now it errors the following message:

* Protocol "telnet" not supported or disabled in libcurl
* Closing connection -1
curl: (1) Protocol "telnet" not supported or disabled in libcurl

This was a nice to have feature as there aren't any other tools on the system for quickly troubleshooting TCP connectivity issues.

Please re-add telnet support in libcurl.

@margamanterola
Copy link
Contributor

We use curl directly from Gentoo without changes. When we updated curl to the latest version, the curl ebuild file changed from always enabling telnet, to conditionally enabling telnet (and other protocols) depending on USE flags: flatcar-archive/portage-stable@d42ea09#diff-87c1bc20b512568d3faf0582bc9289e7bf81d8febdb4da8741ac8c78fe6e9a5fL178

Whether a protocol is enabled or not depends on the protocol. e.g. ftp is enabled by default, while telnet is not. We would need to enable the telnet USE flag for curl if we want telnet support.

@oliwer
Copy link

oliwer commented May 25, 2021

There is a better tool than curl for this: ncat.

ncat towel.blinkenlights.nl 23

@sayanchowdhury sayanchowdhury added kind/enhancement Enhancement of an existing component. good first issue Get started with Flatcar contribution with this issue. area/packages Issues related to the package maintainence. labels Jul 2, 2021
@tormath1
Copy link
Contributor

tormath1 commented Jul 6, 2021

since it's a good first issue, let's bring some elements to work on this:

equery-amd64-usr u net-misc/curl
...
 - - telnet           : Enable Telnet protocol support
emerge-amd64-usr -pv net-misc/curl
  • Once emerged, we can build the image by following the step of the developer-guides
  • we can boot the new instance and SSH into it to validate that the issue is actually solved
  • changes can be committed and pushed to a feature branch in order to be reviewed by the flatcar-maintainers

useful links:

@peanutduck
Copy link

@tormath1, I would like to work on this issue

@sayanchowdhury
Copy link
Member

@peanutduck Feel free to start working on the issue. The steps mentioned above should help you understand the issue and get started. For any more queries, join our Matrix channel.

@dongsupark
Copy link
Member

@sayanchowdhury
Copy link
Member

The fix is merged now and will be available in the next Alpha release flatcar-archive/coreos-overlay#1099

@dongsupark dongsupark moved this from In Progress to Ready to release 2021-07-21 in Flatcar Container Linux Releases Planning Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packages Issues related to the package maintainence. good first issue Get started with Flatcar contribution with this issue. kind/enhancement Enhancement of an existing component.
Projects
None yet
Development

No branches or pull requests

7 participants