Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
miniupnp wiki for gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
divined
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 165

PostPosted: Thu Feb 02, 2012 6:50 am    Post subject: miniupnp wiki for gentoo Reply with quote

Morning everybody

I`d been using for several years the linux-igd upnpd. Recently, i got a warning from portage that it has been deprecated.

So I got rid of it and installed the miniupnpd. Unfortunately, I don`t seem to be able to start it.

Code:

/etc/init.d/miniupnpd start
 * Use of the opts variable is deprecated and will be
 * removed in the future.
 * Please use extra_commands, extra_started_commands or extra_stopped_commands.
 * Not starting iptables.  First create some rules then run:
 * /etc/init.d/iptables save
 * ERROR: iptables failed to start
 * ERROR: cannot start miniupnpd as iptables would not start


Is there any wiki I can use, to get me started. I googled it but found nothing gentoo specific.
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Thu Feb 02, 2012 8:15 am    Post subject: Reply with quote

miniupnpd seems to require iptables, which has not been setup.

assuming, that you do no want any iptables (firewall) running on that system, could try /etc/init.d/iptables save && /etc/init.d/iptables start?

V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
divined
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 165

PostPosted: Fri Feb 03, 2012 5:50 am    Post subject: Reply with quote

Nonetheless, i`m running shorewall & shorewall6 which if i`m correct, is just a frontend for iptables.
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Fri Feb 03, 2012 2:43 pm    Post subject: Reply with quote

nyes. shorewall is a frontend to netfilter (or even iptables).

but miniupnpd explicitly wants iptables.
Code:
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-init.d,v 1.3 2011/10/17 12:03:01 gurligebis Exp $

depend() {
        need net iptables
        use minissdpd
}
...


maybe you can try to replace iptables with firewall in the miniupnpd init-script, to force it to use any firewall (or at least shorewall). If it works, you could file a bug against it.

just some idea
V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
divined
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 165

PostPosted: Sat Feb 04, 2012 10:17 am    Post subject: Reply with quote

ok. I got it working by changing the init script to firewall, as you suggested.

Code:

depend() {
        need net firewall
        use minissdpd
}


Works fine now. Seems some sort of bug for me.
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Tue Feb 07, 2012 1:30 pm    Post subject: Reply with quote

divined wrote:
ok. I got it working by changing the init script to firewall, as you suggested.

Code:

depend() {
        need net firewall
        use minissdpd
}


Works fine now. Seems some sort of bug for me.
So you wrote a bugreport did you? ;-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum