OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: guest15389 on March 11, 2017, 01:57:10 pm

Title: [SOLVED] UPNP Lifetime
Post by: guest15389 on March 11, 2017, 01:57:10 pm
Seems like these settings are missing from the config as my devices just register forever and never go away:

Code: [Select]
# PCP
# Configure the minimum and maximum lifetime of a port mapping in seconds
# 120s and 86400s (24h) are suggested values from PCP-base
#min_lifetime=120
#max_lifetime=86400

Is it possible to add the default settings in? I modified my config to add those in and seems to be working as expected.
Title: Re: UPNP Lifetime
Post by: franco on March 11, 2017, 03:58:13 pm
Hi Animosity022,

Good idea, can't be wrong. Here's the commit:

https://github.com/opnsense/plugins/commit/5d5804

You can add this to your box via:

# opnsense-patch -c plugins 5d5804

I think this will land in 17.1.3 if you let me know it works as expected.


Cheers,
Franco
Title: Re: UPNP Lifetime
Post by: guest15389 on March 11, 2017, 04:01:24 pm
I patched and I can see the changes in the config file.

I'll do some testing and give it 24 hours to make sure things remove as expected.

Thanks for the quick fix.
Title: Re: UPNP Lifetime
Post by: franco on March 11, 2017, 04:03:42 pm
No, thank you for helping to improve OPNsense. :)
Title: Re: UPNP Lifetime
Post by: guest15389 on March 12, 2017, 05:21:09 am
I missed one more setting to actually remove the ruleset:

If you can add the line

Code: [Select]
# clean process work interval in seconds. default to 0 (disabled).
# a 600 seconds (10 minutes) interval makes sense
clean_ruleset_interval=600

I made the change on my config and it's fully working as I would expect now.
Title: Re: UPNP Lifetime
Post by: franco on March 12, 2017, 11:20:58 am
Alright, full commit for 17.1.3 is here:

https://github.com/opnsense/plugins/commit/071ba27f


Thank you,
Franco