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

Proxy support in miniupnpd #299

Open
pali opened this issue May 7, 2018 · 7 comments
Open

Proxy support in miniupnpd #299

pali opened this issue May 7, 2018 · 7 comments

Comments

@pali
Copy link
Contributor

pali commented May 7, 2018

Now some ISPs which put end IPv4 users behind Carrier-Grade NATs started supporting PCP.

So if end user with his own IPv4 router (which does NAT for his own local network) wants to use PCP support from ISP, then he needs to run something like PCP proxy on his router.

I would suggest to implement PCP proxy in miniupnpd. When client from internal network ask for port forwarding then miniupnpd would try to request for port forwarding via external interface to upstream ISP network.

This would also allow to connect one miniupnpd router behind another miniupnpd router with working IPv4 address forwarding.

@pali
Copy link
Contributor Author

pali commented May 7, 2018

When you consider adding such proxy support, it would be nice to have ability to proxy UPnP client requests to upstream PCP. Because e.g. Windows systems supports only UPnP IGD.

@miniupnp miniupnp added this to the miniupnpd_2.2 milestone Mar 9, 2019
@wellloaded
Copy link

This is a great idea and I have been looking for something similar for long time. There's a legacy, now unsupported, project that does that as an external package.
https://github.com/tomaszmrugalski/portproxy

So yes I would absolutely love to have this feature built in miniupnpd too!

@pali
Copy link
Contributor Author

pali commented Mar 23, 2020

@miniupnp: Do you have any plans for implementing this functionality? It looks like that more people are interested in it and due to higher usage of CG-NATs and DS-Lite, such proxy support would be the only possible way how to use miniupnpd on IPv4 networks without public IPv4 address.

@miniupnp miniupnp modified the milestones: miniupnpd_2.2, miniupnpd_2.3 Jun 20, 2020
@miniupnp
Copy link
Owner

I need to implement https://tools.ietf.org/html/rfc6970

@professor-jonny
Copy link

my ISP provided router some how passes upnp requests upstream to my ISP's CG-NAT device.

my ISP's router is tag locked so that the sim card will only work in specific devices where the first 9 digits if the IMEI number must match what is stored in the sim or it will not operate.

From what I understand UPNP reuests are forwarded upstream as outbount NAT PCP upstream and ports are opened dynamically on the stock router, any therfore any downstream NAT device means that UPNP will fail to operate.

If miniupnpd could be updated to forward upnp requests to an upstream device it would be awesome.

@masx200
Copy link

masx200 commented Dec 19, 2023

https://github.com/phillipberndt/upnprd/

@professor-jonny
Copy link

https://github.com/phillipberndt/upnprd/

It would be nice if this could somehow be bundled in with miniupnpd and somehow integrated so requests could be forwarded up stream if it detects an upstream upnp device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants