Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
upnp problem
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
pavel.stratil
Tux's lil' helper
Tux's lil' helper


Joined: 23 Oct 2005
Posts: 134

PostPosted: Sun Dec 10, 2006 2:29 am    Post subject: upnp problem Reply with quote

Hi, i followed this guide http://gentoo-wiki.com/HOWTO_Setup_UPnP_with_IPTables and emerged
Code:

[ebuild  N    ] net-misc/upnp-1.3.1  USE="-debug -doc" 717 kB
[ebuild  N    ] net-firewall/iptables-1.3.5-r4  USE="ipv6 -extensions -imq -l7filter -static" 187 kB
[ebuild  N    ] net-misc/linux-igd-9999  0 kB [1]

everything fine till starting the upnp daemon
Code:

localhost files # /etc/init.d/upnpd start
 * Service upnpd starting
/etc/linuxigd/upnpd.conf: line 8: iptables_location: command not found
/etc/linuxigd/upnpd.conf: line 17: debug_mode: command not found
/etc/linuxigd/upnpd.conf: line 25: insert_forward_rules: command not found
/etc/linuxigd/upnpd.conf: line 34: forward_chain_name: command not found
/etc/linuxigd/upnpd.conf: line 40: prerouting_chain_name: command not found
/etc/linuxigd/upnpd.conf: line 46: upstream_bitrate: command not found
/etc/linuxigd/upnpd.conf: line 52: downstream_bitrate: command not found
/etc/linuxigd/upnpd.conf: line 62: duration: command not found
/etc/linuxigd/upnpd.conf: line 66: description_document_name: command not found
/etc/linuxigd/upnpd.conf: line 75: xml_document_path: command not found
SIOCADDRT: File exists                                                    [ !! ] * ERROR:  upnpd failed to start


the /etc/init.d/upnpd may not accept the conf file properly.. but i cant really tell, so here is the upnpd init.d file:

Code:

#!/sbin/runscript

depend() {
        need net
}

checkconfig() {
        source /etc/linuxigd/upnpd.conf
        if [ "$INTERFACE" = "" -o "$OUTERFACE" = "" ] ; then
                ewarn "You need to configure /etc/conf.d/upnpd and /etc/linuxigd/upnpd.conf"
                return 1
        fi
        return 0
}

start() {
        checkconfig || exit
        ebegin "Starting upnpd"
        /sbin/route add -net 239.0.0.0 netmask 255.0.0.0 $INTERFACE
        start-stop-daemon --start \
                --exec /usr/bin/upnpd -- $OUTERFACE $INTERFACE
        eend $?
}

stop() {
        ebegin "Stopping upnpd"
        /sbin/route del -net 239.0.0.0 netmask 255.0.0.0 $INTERFACE
        start-stop-daemon --stop --exec /usr/bin/upnpd
        eend $?
}


i have my lan on eth1 so my /etc/conf.d/upnp.d is as follows:

Code:

INTERFACE="eth1"
OUTERFACE="ppp1"


could anyone help me with this please?
Back to top
View user's profile Send private message
pavel.stratil
Tux's lil' helper
Tux's lil' helper


Joined: 23 Oct 2005
Posts: 134

PostPosted: Mon Dec 11, 2006 7:02 pm    Post subject: Re: upnp problem Reply with quote

bump ... anyone any hints please?
Back to top
View user's profile Send private message
Niarbeht
n00b
n00b


Joined: 10 Jan 2007
Posts: 8
Location: Placerville, California

PostPosted: Wed Jan 10, 2007 9:15 pm    Post subject: Reply with quote

Gargh!

I had to dig through my spam filtered messages on my crappy Yahoo mail to find the activation e-mail since someone on these forums decided to clean out accounts of people who don't check here every five seconds...

Rants aside, the solution to your problem is rather simple. I thought I had put a note about it in the wiki, guess I'll have to check.

Go into your /etc/linuxigd/upnpd.conf file and make sure that there are NO spaces, that's NO WHITESPACE, NADA, ZILCH around the = signs.

Like so: (1)
iptables_location="/sbin/iptables"

As opposed to: (2)
iptables_location = "/sbin/iptables"

If yours looks like example 2, then that's your problem. All instances in that file where some variable gets set, you need to fix it so the equals sign does NOT have spaces to either side.

Sidenote:
I haven't yet gotten this to fully work right. I've got it so upnpd can start, but nothing seems to map anything. Azureus CLAIMS it does, but when I check the router's iptables with iptables -L, nothing new is there. Gargh.

So if anyone out there ACTUALLY knows how to get all this to work, PLEASE tell us. Quit leaving us in the dark.
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