UPnP needs a restart almost every day.



  • I know everyone on here is familiar with PS4 NAT types. PS4 likes NAT type 2. UPnP works great for this except I nearly have to restart it once a day. UPnP seems to stop working. And sometimes just "restarting" the service doesn't work. Have to completely disable and re-enable the the service.

    I'm running 2.4.3-RELEASE-p1 and I had this issue with previous versions too. I even tried doing a clean install.

    Anyone else had this issue?

    I'd be happy to create a script for a cron job to run once in the night that restarts the UPnP service but I can't seem to find what actually start, stops,restarts the service. I know the daemon is miniupnpd but that actual service isn't running so I don't know what is.

    Any help is always appreciated.



  • What do your logs say?


  • Netgate Administrator

    It should be:

    [2.4.5-DEVELOPMENT][admin@5100.stevew.lan]/root: ps -auxww | grep upnp
    root    94638   0.0  0.1  9464  5520  -  Is   14:30       0:00.00 /usr/local/sbin/miniupnpd -f /var/etc/miniupnpd.conf -P /var/run/miniupnpd.pid
    

    The easiest thing here is probably to add it to the Service Watchdog package.
    0_1541342195104_Selection_504.png

    Steve



  • @stephenw10 said in UPnP needs a restart almost every day.:

    ps -auxww | grep upnp

    Yea it shows its running. It just stops doing its thing. I will try the Service Watchdog, didn't know about that. Thanks for the help! Sorry for the late response, been moving into a new house! busy. :-)


  • Netgate Administrator

    Hmm, if it's still running then the watchdog package probably won't do much as it only does anything if it sees it not running.
    Easy enough to test though.

    Steve