savoirfairelinux / opendht

OpenDHT: a C++17 Distributed Hash Table implementation
GNU General Public License v3.0
1.03k stars 172 forks source link

Limit the set of UDP ports to use? #414

Open petterreinholdtsen opened 5 years ago

petterreinholdtsen commented 5 years ago

At work, incoming UDP packages with port below 50000 is blocked. The ones above 50000 is open do allow for SIP and other real time audio and video protocols.

What about adjusting opendht to restrict the range of ports used, to allow it to work also in such constrained environment?

aberaud commented 5 years ago

Hi, OpenDHT works using a single UDP port, which can be configured. When using dhtnode use the -p argument to set the port to bind, when using dhtrunner the port to bind is passed to run().

petterreinholdtsen commented 5 years ago

[Adrien Béraud]

Hi, OpenDHT works using a single UDP port, which can be configured. When using dhtnode use the -p argument to set the port to bind, when using dhtrunner the port to bind is passed to run().

Thanks. Note, this request is about changing the default port selection to increase the chance of getting OpenDHT to work out of the box. :)

Happy hacking Petter Reinholdtsen

aberaud commented 5 years ago

Thanks to the suggestion, Do you know if this kind of port restriction is common ?

petterreinholdtsen commented 5 years ago

[Adrien Béraud]

Thanks to the suggestion, Do you know if this kind of port restriction is common ?

I do not know how common, but I know several large sites and company networks where such port restriction is in place.

-- Happy hacking Petter Reinholdtsen

ghenry commented 2 years ago

Still a requirement?

Thanks.

petterreinholdtsen commented 2 years ago

[Gavin Henry]

Still a requirement?

Did someone change the default set of UDP ports? The site I know about is still blocking UDP ports. I have not tried to use Jami there for a long time, as it just did not work. Is there a point in trying again?

-- Happy hacking Petter Reinholdtsen

ghenry commented 2 years ago

The listening ports?

petterreinholdtsen commented 2 years ago

The non-working version? -- Happy hacking Petter Reinholdtsen