OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • [SOLVED] UPNP Lifetime
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] UPNP Lifetime  (Read 3226 times)

guest15389

  • Guest
[SOLVED] UPNP Lifetime
« 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.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13618
  • Karma: 1170
    • View Profile
Re: UPNP Lifetime
« Reply #1 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
Logged

guest15389

  • Guest
Re: UPNP Lifetime
« Reply #2 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.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13618
  • Karma: 1170
    • View Profile
Re: UPNP Lifetime
« Reply #3 on: March 11, 2017, 04:03:42 pm »
No, thank you for helping to improve OPNsense. :)
Logged

guest15389

  • Guest
Re: UPNP Lifetime
« Reply #4 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.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13618
  • Karma: 1170
    • View Profile
Re: UPNP Lifetime
« Reply #5 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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • [SOLVED] UPNP Lifetime
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2