mnpp
Joined: 18 Aug 2018 Posts: 1
|
Posted: Sat Aug 18, 2018 1:04 am Post subject: Create port mapping using STUN protocol |
|
|
Github issue: https://github.com/miniupnp/miniupnp/issues/322
Please add support for miniupnpd to process STUN requests to create port mappings.
When miniupnpd receives a STUN "Binding" request, it could create a port mapping and return the public IP:port in the "Binding" response. This would be similar to a STUN server, the difference is that the service would run on the LAN interface serving LAN clients only. It effectively turns a STUN-like service into a port mapping service like PCP/NAT-PMP/UPnP.
This would be useful to people who use SIP VoIP clients because many clients (both software and hardware) only support STUN which does not work with certain types of NAT (e.g. symmetric NAT), these NAT problems can be solved by creating port mappings mentioned above.
STUN standard is defined in RFC 5389, which should be enough to create port mappings.
Optionally there is also an experimental standard RFC 5780 which adds support for "NAT Behavior Discovery", that requires the server to have 2 IP addresses and 2 ports, I think 2 private LAN IPs should work which is relatively easy to configure on a router running custom firmware/software like OpenWrt |
|