OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: GurliGebis on January 26, 2017, 09:23:18 pm

Title: [SOLVED] miniupnpd does not start automatically
Post by: GurliGebis on January 26, 2017, 09:23:18 pm
I have two OPNsense VM's configured, but for some reason, on none of them does miniupnpd start automatically.

In the config file, the only mention of it is this section:

Code: [Select]
  <installedpackages>
    <miniupnpd>
      <config>
        <enable>1</enable>
        <enable_upnp>1</enable_upnp>
        <enable_natpmp>1</enable_natpmp>
        <ext_iface>wan</ext_iface>
        <download/>
        <upload/>
        <overridewanip/>
        <permuser1/>
        <permuser2/>
        <permuser3/>
        <permuser4/>
        <iface_array>lan</iface_array>
      </config>
    </miniupnpd>
  </installedpackages>

Am I missing something, or how do I get it to autostart?
Title: Re: miniupnpd does not start automatically
Post by: franco on January 26, 2017, 10:35:38 pm
Did you.... install the plugin? It's in the notes. ;)


Cheers,
Franco
Title: Re: miniupnpd does not start automatically
Post by: GurliGebis on January 26, 2017, 10:53:49 pm
Indeed I did - it starts fine if I click the play button.
But on every restart, it is back in the stopped state :D
Title: Re: miniupnpd does not start automatically
Post by: franco on January 26, 2017, 10:55:04 pm
Ok, odd, let me check that real quick.

On second thought I know why.
Title: Re: miniupnpd does not start automatically
Post by: GurliGebis on January 26, 2017, 11:01:57 pm
Something related to it being moved to a module, and therefor not registering correctly as a boot service?
Or the order of things, so modules is loaded after boot services has run?
Title: Re: miniupnpd does not start automatically
Post by: franco on January 26, 2017, 11:06:05 pm
This: https://github.com/opnsense/plugins/commit/a0742c37

Applies from the console...

# opnsense-patch -c plugins a0742c37

We removed the backwards-compat for the plugin_configure() calls, which left a few stranded on boot. Many thanks for the report!


Cheers,
Franco
Title: Re: miniupnpd does not start automatically
Post by: GurliGebis on January 26, 2017, 11:12:39 pm
That seems to fix it :)
Title: Re: [SOLVED] miniupnpd does not start automatically
Post by: franco on January 26, 2017, 11:35:13 pm
Hooray, and just in time for 17.1. 8)