pradt2 / always-online-stun

A list of publicly available STUN servers, refreshed every hour.
MIT License
521 stars 45 forks source link

Add support for RFC5780 #17

Open muink opened 5 months ago

muink commented 5 months ago

stunserver.stunprotocol.org supports NAT behavior test over udp/tcp, but can't find any other equivalent replacement on the internet. I guess it's a needle in a haystack. If possible, hope to provide a list of servers that support RFC5780. Thank you.

pradt2 commented 4 months ago

Hi, providing a list of servers that are fully compliant to the RFC5780 would be a significant task, as there are a lot of behaviours to test to ensure 100% compliance.

However, a much more manageable task would be to test for servers that support enough of the RFC5780 spec to conduct a NAT behaviour test. I will look into this in the coming days/weeks.

muink commented 2 months ago

I wrote a simple script to filter out servers supporting RFC5780 from a list. https://github.com/muink/rfc5780-stun-server

pradt2 commented 2 months ago

Apologies for the wait here. I'll get this done today

pradt2 commented 2 months ago

I added valid_nat_testing_* lists. See the updated README for details. Let me know if this works for you.

muink commented 2 months ago
stun.freeswitch.org:3478
stun.antisip.com:3478
stun.nextcloud.com:3478
stun.dcalling.de:3478
stun.sonetel.com:3478

I randomly selected several servers, but none of them support nat behavior testing. 😿

pradt2 commented 2 months ago

Very interesting, let me investigate further!

pradt2 commented 2 months ago

@muink I just tested all the hosts you mention above using stuntman, and they all work fine with the 'full' testing option, which includes the NAT mapping and filtering tests.

What tool/library/testing methods do you use?

muink commented 2 months ago

Stuntman or NatTypeTester image Sorry, I forgot to mention that they do not support testing under TCP.