View previous topic :: View next topic |
Author |
Message |
chub
Joined: 10 Apr 2018 Posts: 3
|
Posted: Tue Apr 10, 2018 9:21 am Post subject: feature request - execute external script or daisy chain |
|
|
Hi, I would like to request miniupnpd to execute an external script that also passes on variables for the script to use. My intention for this method is, so that I can pass on or forward or even daisy chain more upnp servers. e.g.
[Client Request] -> [LAN] -> [miniupnpd] -> [huawei cdc_ether LTE router (UPnP)]. This is not permanent, can also change to pppd, for those devices that still supports it, later on, then miniupnpd stays in place and configuration changes, based on scripts that get activated by which one happens to be the default router at the time.
It would be nice to be able to daisy chain (support upstream UPnP servers) or call external script to perhaps do this from a scripting point of view.
Any thoughts? |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1585
|
|
Back to top |
|
 |
chub
Joined: 10 Apr 2018 Posts: 3
|
Posted: Wed Apr 11, 2018 2:39 pm Post subject: |
|
|
Please excuse my ignorance, but I don't see any mention in the man page for calling external commands when an event takes place.
the version that I have on arch linux machine is:
community/miniupnpd 2.0.20170421-2
surely this will then be documented? I don't see any reference to calling external commands based on events, like adding/removing requests on this link: https://github.com/miniupnp/miniupnp/tree/ix2015
Do you perhaps have any examples that I can use? |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1585
|
Posted: Wed Apr 11, 2018 2:45 pm Post subject: |
|
|
calling scripts is not supported in the main branch of miniupnpd.
But it has already been implemented in the past in another branch (ie a fork).
You can see how that was implemented in this branch if you need to make yourself a version of miniupnpd which calls scripts.
Calling scripts is not supported in master branch because it would be a major source for security issues.
Miniupnpd was first developped because other open source alternatives relied on system() calls. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
chub
Joined: 10 Apr 2018 Posts: 3
|
Posted: Wed Apr 11, 2018 2:50 pm Post subject: |
|
|
Thank you for the reply. |
|
Back to top |
|
 |
|