View previous topic :: View next topic |
Author |
Message |
pavel.stratil Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 23 Oct 2005 Posts: 134
|
Posted: Sun Dec 10, 2006 2:29 am Post subject: upnp problem |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
pavel.stratil Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 23 Oct 2005 Posts: 134
|
Posted: Mon Dec 11, 2006 7:02 pm Post subject: Re: upnp problem |
|
|
bump ... anyone any hints please? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Niarbeht n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Jan 2007 Posts: 8 Location: Placerville, California
|
Posted: Wed Jan 10, 2007 9:15 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|