[SOLVED] UPNP Lifetime

Started by guest15389, March 11, 2017, 01:57:10 PM

Previous topic - Next topic
Seems like these settings are missing from the config as my devices just register forever and never go away:


# 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.

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

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.

No, thank you for helping to improve OPNsense. :)

I missed one more setting to actually remove the ruleset:

If you can add the line


# 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.