miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

feature request - execute external script or daisy chain

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Feature Request
View previous topic :: View next topic  
Author Message
chub



Joined: 10 Apr 2018
Posts: 3

PostPosted: Tue Apr 10, 2018 9:21 am    Post subject: feature request - execute external script or daisy chain Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1451

PostPosted: Wed Apr 11, 2018 2:27 pm    Post subject: Reply with quote

I think that was done in this branch : https://github.com/miniupnp/miniupnp/tree/ix2015
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
chub



Joined: 10 Apr 2018
Posts: 3

PostPosted: Wed Apr 11, 2018 2:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1451

PostPosted: Wed Apr 11, 2018 2:45 pm    Post subject: Reply with quote

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.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
chub



Joined: 10 Apr 2018
Posts: 3

PostPosted: Wed Apr 11, 2018 2:50 pm    Post subject: Reply with quote

Thank you for the reply.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Feature Request All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.