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 

Lease Duration Support

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation
View previous topic :: View next topic  
Author Message
MikeMcr



Joined: 20 Dec 2009
Posts: 5

PostPosted: Thu Dec 31, 2009 1:53 pm    Post subject: Lease Duration Support Reply with quote

Does miniupnpd support lease durations? I see quite a few warnings in my syslog from miniupnpd such as:

NewLeaseDuration=14400

Not sure why its a warning? Is miniupnpd supposed to automatically remove the port forward after the lease expires? I can see no evidence that it does.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Thu Dec 31, 2009 3:25 pm    Post subject: Re: Lease Duration Support Reply with quote

MikeMcr wrote:
Does miniupnpd support lease durations? I see quite a few warnings in my syslog from miniupnpd such as:

NewLeaseDuration=14400

Not sure why its a warning? Is miniupnpd supposed to automatically remove the port forward after the lease expires? I can see no evidence that it does.

LeaseDuration is currently ignored by miniupnpd. Most upnp clients dont use that parameter. I'm very curious to know which software does. What is your setup ???

Anyway, miniupnpd provides a way to "clean up" unused rules. set the clean_ruleset_threshold and clean_ruleset_interval option in the .conf file.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
MikeMcr



Joined: 20 Dec 2009
Posts: 5

PostPosted: Thu Dec 31, 2009 3:39 pm    Post subject: Re: Lease Duration Support Reply with quote

miniupnp wrote:
LeaseDuration is currently ignored by miniupnpd. Most upnp clients dont use that parameter. I'm very curious to know which software does. What is your setup ???

Anyway, miniupnpd provides a way to "clean up" unused rules. set the clean_ruleset_threshold and clean_ruleset_interval option in the .conf file.

I think it is the PS3 with a description of "EA Tunnel". I can't be sure because my syslog is only set to log warnings or errors so all I can see is the LeaseDuration entries (you may want to include the IP etc in the warning).

Yes, I've been playing with the "clean up" feature.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Sun Jan 02, 2011 10:23 pm    Post subject: Reply with quote

The version 2 of the UPnP IGD specification http://upnp.org/specs/gw/igd2/ makes the LeaseDuration support mandatory. So I'll have to implement proper support for it.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Wagnard



Joined: 07 Apr 2010
Posts: 4

PostPosted: Thu Feb 16, 2012 10:35 pm    Post subject: Reply with quote

Anything on this feature?
Is it still planned?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Thu Feb 16, 2012 11:16 pm    Post subject: Reply with quote

Wagnard wrote:
Anything on this feature?
Is it still planned?

It is implement since miniupnpd-1.6
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Wagnard



Joined: 07 Apr 2010
Posts: 4

PostPosted: Sat Feb 18, 2012 8:48 am    Post subject: Reply with quote

yeah you are right my bad for not ready change-log correctly.

Maybe my problem is somewhere else.
I'm using windows 7 and it forward a port with upnp named "Teredo"

With miniupnpd, each time the win7 machine is reboot, win7 re-open another "teredo" port on another port #.

This behavior is not happening with my default upnp firmware.

This is a little annoyance I saw from a long time with many different router firmware that use miniupnpd.

Do you have an idea of the cause of this? a missing feature?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Sat Feb 18, 2012 8:17 pm    Post subject: Reply with quote

I don't know why win7 is opening another port mapping at each reboot...
but the "automatic rules cleaning" feature of miniupnpd could be usefull to you.
Have look at the clean_ruleset_threshold and clean_ruleset_interval options in your miniupnpd.conf file.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Wagnard



Joined: 07 Apr 2010
Posts: 4

PostPosted: Mon Feb 20, 2012 1:16 am    Post subject: Reply with quote

Yeah I can work around with your parameters.

still wondering tho why i got this issue with miniupnpd only.

Are all kind of lease supported? i don't know if a specified app can give his own lease.

Ill try to find out.
Thanks for your time and useful answer, its appreciated.
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 Compilation/Installation 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.