Netgate SG-1000 microFirewall

Author Topic: miniupnpd installation.  (Read 11551 times)

0 Members and 1 Guest are viewing this topic.

Offline xtlosx

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
miniupnpd installation.
« on: August 25, 2007, 07:44:41 am »
This is what I get when I try to install miniupnpd, and access upnpd through services.. any ideas?


Fatal error: Cannot redeclare upnp_action() (previously declared in /etc/inc/services.inc:1272) in /usr/local/pkg/miniupnpd.inc on line 13

Offline rsw686

  • Sr. Member
  • ****
  • Posts: 520
  • Karma: +0/-0
    • View Profile
    • The Reptile File
Re: miniupnpd installation.
« Reply #1 on: August 25, 2007, 11:01:59 am »
What version of pfSense are you using. If you downloaded if in the past couple of months it already has UPnP (miniupnpd). You can configure it through the services -> upnp menu.

Offline xtlosx

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: miniupnpd installation.
« Reply #2 on: August 27, 2007, 04:31:33 pm »
I actually get that same message when going to status -> uPNP....


which is why I am so confused.....

Offline rsw686

  • Sr. Member
  • ****
  • Posts: 520
  • Karma: +0/-0
    • View Profile
    • The Reptile File
Re: miniupnpd installation.
« Reply #3 on: August 27, 2007, 04:37:29 pm »
Right that would happen if you installed the package when upnp was already in the base install. The package and base install use the same menu locations and files. Although the code was moved around some to make it work with the livecd thus the redeclaration errors. You could try uninstalling the package then updating your pfsense install to restore the files. You might just have to backup your config and reinstall pfsense.

Offline xtlosx

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: miniupnpd installation.
« Reply #4 on: August 28, 2007, 10:40:46 am »
ya, I don't care about upnp that much, I just used the static ports option for NAT, and xbox live sees it as open!


Offline Nostradamus

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: miniupnpd installation.
« Reply #5 on: September 01, 2007, 09:16:58 pm »
Hi.

Hmm.. can somebody please remover miniupnpd package from Package Manager?
I tried to install that, and now i have to install hole pfSense again... argggg

Code: [Select]
Fatal error: Cannot redeclare upnp_action() (previously declared in /etc/inc/services.inc:1272) in /usr/local/pkg/miniupnpd.inc on line 13
1.2-RELEASE
built on Fri Mar 7 18:49:15 EST 2008
Intel Celeron 1100 Mhz
512MB PC-100
Segate 20GB HD
eth0: Intel 82801BA/BAM/CA/CAM 10/100 (WAN)
eth1: 3Com 3c905C-TX/TX-M 10/100 (LAN)

Offline rsw686

  • Sr. Member
  • ****
  • Posts: 520
  • Karma: +0/-0
    • View Profile
    • The Reptile File
Re: miniupnpd installation.
« Reply #6 on: September 01, 2007, 09:42:30 pm »
My thought was it was going to be removed when 1.2 was officially released since 1.0.1 doesn't include UPnP. I'm just not sure why you would install it since it is already in the base install.

Offline Nostradamus

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: miniupnpd installation.
« Reply #7 on: September 01, 2007, 09:54:36 pm »
My thought was it was going to be removed when 1.2 was officially released since 1.0.1 doesn't include UPnP. I'm just not sure why you would install it since it is already in the base install.

Hi.

hehe, you know... noobs always try everything :D :D But i'm back in business now... Fast install, hehe
I learn one more thing today, hehe
 
1.2-RELEASE
built on Fri Mar 7 18:49:15 EST 2008
Intel Celeron 1100 Mhz
512MB PC-100
Segate 20GB HD
eth0: Intel 82801BA/BAM/CA/CAM 10/100 (WAN)
eth1: 3Com 3c905C-TX/TX-M 10/100 (LAN)

Offline PeeZee

  • Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: miniupnpd installation.
« Reply #8 on: September 05, 2007, 07:38:56 am »
Hmm, I seem to have the same problem, only worse.


I was running a 1.0.1 install (very stable for quite a while) and today decided to upgrade to 1.2-RC2.
Unfortunately I had miniupnp installed on the 1.0.1 install.

The upgrade went very smooth, but since uPnP is included in the 1.2 release I now had 2 (!) entries in the web gui about upnp (one said upnp from the base install and the other miniupnp from the package)

Ok, tried removing the package, went smooth, no errors, only the problem now got worse since I still have the 2 web gui entries but now they both point to an error 404...

Shouldn't there be a big warning somewhere "Remove miniupnp package before upgrading to 1.2" ?

Offline rsw686

  • Sr. Member
  • ****
  • Posts: 520
  • Karma: +0/-0
    • View Profile
    • The Reptile File
Re: miniupnpd installation.
« Reply #9 on: September 05, 2007, 08:07:51 am »
Hmm, I seem to have the same problem, only worse.


I was running a 1.0.1 install (very stable for quite a while) and today decided to upgrade to 1.2-RC2.
Unfortunately I had miniupnp installed on the 1.0.1 install.

The upgrade went very smooth, but since uPnP is included in the 1.2 release I now had 2 (!) entries in the web gui about upnp (one said upnp from the base install and the other miniupnp from the package)

Ok, tried removing the package, went smooth, no errors, only the problem now got worse since I still have the 2 web gui entries but now they both point to an error 404...

Shouldn't there be a big warning somewhere "Remove miniupnp package before upgrading to 1.2" ?

Backup your config and remove the miniupnpd menu section from the <installedpackages> section. Restore your config. Then reinstall the upgrade to restore the miniupnpd files.

Offline PeeZee

  • Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: miniupnpd installation.
« Reply #10 on: September 05, 2007, 09:21:07 am »
Backup your config and remove the miniupnpd menu section from the <installedpackages> section. Restore your config. Then reinstall the upgrade to restore the miniupnpd files.

Thanks, that worked

But I still think there should be a warning somewhere :-)

Offline Nostradamus

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: miniupnpd installation.
« Reply #11 on: September 05, 2007, 09:28:13 am »
Backup your config and remove the miniupnpd menu section from the <installedpackages> section. Restore your config. Then reinstall the upgrade to restore the miniupnpd files.

Thanks, that worked

But I still think there should be a warning somewhere :-)

Hi.

Here : http://forum.pfsense.org/index.php/topic,6047.0.html

1.2-RELEASE
built on Fri Mar 7 18:49:15 EST 2008
Intel Celeron 1100 Mhz
512MB PC-100
Segate 20GB HD
eth0: Intel 82801BA/BAM/CA/CAM 10/100 (WAN)
eth1: 3Com 3c905C-TX/TX-M 10/100 (LAN)

Offline PeeZee

  • Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: miniupnpd installation.
« Reply #12 on: September 05, 2007, 10:13:06 am »
Hi.

Here : http://forum.pfsense.org/index.php/topic,6047.0.html


I understand the fact that I shouldn't try to install the miniupnp package in a 1.2 branch release.
But I didn't see any warning whatsoever that I should not perform a firmware upgrade when I have the miniupnp package installed because it will mess things up.
You have to first manually remove the miniupnp package before upgrading the firmware

Anyway, it's solved for me now, but I can imagine that in the future there will be a lot of users that upgrade to 1.2-RC2 or later and will hit the same problem.
« Last Edit: September 05, 2007, 10:15:33 am by PeeZee »