GithubHelp home page GithubHelp logo

ssh3 bind only ipv6 about ssh3 HOT 4 OPEN

vaminakov avatar vaminakov commented on July 30, 2024
ssh3 bind only ipv6

from ssh3.

Comments (4)

starcraft66 avatar starcraft66 commented on July 30, 2024 1

Usually, binding to :: binds both address families, there must be something else going wrong.

from ssh3.

francoismichel avatar francoismichel commented on July 30, 2024

Hmm, I cannot reproduce the problem, even on ipv4-only hosts, and I added an integration test for both ipv4 and ipv6.

Could you provide me with exact commands to reproduce the problem and client/server logs with both -v and the SSH3_LOG_LEVEL=debug environment variable set ?

Thanks !

from ssh3.

vaminakov avatar vaminakov commented on July 30, 2024

With debug:

10:49AM INF Server started, listening on 0.0.0.0:444/ssh3

~ # netstat -tulpan | grep 444
udp6 0 0 :::444 :::* 3748226/./ssh3-serv

10:50AM INF Server started, listening on [::]:444/ssh3

~ # netstat -tulpan | grep 444
udp6 0 0 :::444 :::* 3748327/./ssh3-serv

10:50AM INF Server started, listening on 127.0.0.1:444/ssh3

~ # netstat -tulpan | grep 444
udp 0 0 127.0.0.1:444 0.0.0.0:* 3748446/./ssh3-serv

So it listening ipv4 only when bind localhost in ipv4 (127.0.0.1). When binding 0.0.0.0, it still listening ipv6 only. Later i'll try to compile server with another environment and let you know about result.

from ssh3.

francoismichel avatar francoismichel commented on July 30, 2024

ssh3-server passes the -bind arg to quic-go, that itself interprets the address the same way as net.Dial.

When 0.0.0.0 is passed, then it listens on every IP of the system, including both IPv4 and IPv6 addresses.
I checked on my Fedora system, netstat lists it as udp6 but the server responds requests towards both [::1]:444 and 127.0.0.1:444.

So there might be a wierd behaviour in Arch or something wrong on the ssh3 client instead of the server. Could you provide me the verbose output of the unsuccessful client connection ?

Thank you !

from ssh3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.