MiniUPnPd Web Installer - Available For Testing

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Author Message
edrikk
DD-WRT User


Joined: 31 Oct 2009
Posts: 186
Location: Canada

PostPosted: Sat Dec 26, 2009 16:24    Post subject: Reply with quote
Great! I will check when I get home in a few hours!

Good job as always autobot!
Sponsor
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Sat Dec 26, 2009 16:32    Post subject: Reply with quote
edrikk wrote:
Great! I will check when I get home in a few hours!

Good job as always autobot!


You can ignore the PM I sent edrikk, I changed the main download as others are indeed having problems. Use the script at the beginning of the thread as always, just wanted to make sure you understood.

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
MikeMcr
DD-WRT User


Joined: 28 Aug 2009
Posts: 54

PostPosted: Sat Dec 26, 2009 16:36    Post subject: Reply with quote
autobot wrote:
You can ignore the PM I sent edrikk, I changed the main download as others are indeed having problems


Hi autobot

What compile options are causing problems? I noticed you have reverted to an earlier compile?
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Sat Dec 26, 2009 16:41    Post subject: Reply with quote
I'm in another state currently and left my laptop at home, I can't really get at it right now MikeMcr. I didn't actually change anything, the author of MiniUPnP changed the code and I haven't had a chance to diff it out and see what he did. If you need the other version I can PM it to you.

It may be that people aren't using the firewall script and this is what is what is causing issue's.

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
edrikk
DD-WRT User


Joined: 31 Oct 2009
Posts: 186
Location: Canada

PostPosted: Sat Dec 26, 2009 18:00    Post subject: Reply with quote
Strange... Just retried with the old executable you've put up on Google, and the same result.

Call of Duty: WM2 is the only issue I have encountered though. It just doesn't connect to their servers.

The PS3 sees the UPNP server though. I will wait till late tonight to see whether I see the behaviour of PS3 no longer reporting UPNP as available as well.


Maybe we need a config file? I recall Tomato had a secure mode flag set to enabled, etc. But I don't know what miniupnpd defaults to if the config is not present.


I took the tomato router out again, but if I reproduce the above, I will hook up Tomato again, and try to run dd-wrt with its config file. Probably not though... I'm really leaning towards some compile time parameters based on this post on the miniupnp forums.

I just don't know what compile switches Tomato uses... I'll try to download the sources to look it up.


Last edited by edrikk on Sat Dec 26, 2009 18:07; edited 2 times in total
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Sat Dec 26, 2009 18:04    Post subject: Reply with quote
If it was working before, then it must be a DD-WRT issue as the miniupnpd is the same known good version from a few days ago.

You can try a configuration file, may work....I am out of town and can't do anything to help really.

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
edrikk
DD-WRT User


Joined: 31 Oct 2009
Posts: 186
Location: Canada

PostPosted: Sat Dec 26, 2009 18:06    Post subject: Reply with quote
autobot wrote:
If it was working before, then it must be a DD-WRT issue as the miniupnpd is the same known good version from a few days ago.


I wish I could remember if I played this game with the old version or not... My memory is fuzzy around that. Sad
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Sat Dec 26, 2009 18:14    Post subject: Reply with quote
Example configuration, you need to edit it to suit your configuration.

Code:

ext_ifname=vlan0
listening_ip=192.168.1.1
enable_upnp=yes
port=5050
enable_natpmp=yes
secure_mode=yes
upnp_forward_chain=MINIUPNPD
upnp_nat_chain=MINIUPNPD
system_uptime=yes


Save it as /tmp/upnp.conf and run

Code:
 
./miniupnpd -f /tmp/upnp.conf

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
edrikk
DD-WRT User


Joined: 31 Oct 2009
Posts: 186
Location: Canada

PostPosted: Sat Dec 26, 2009 18:15    Post subject: Reply with quote
btw. Autobot.

Here is the config.h as used by Tomato 1.27 firmware. Are you using the same settings for your build? (I know you're not home, so this check will probably be later on your part). :)

Code:

/* MiniUPnP Project
 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
 * (c) 2006-2008 Thomas Bernard
 * generated by ./genconfig.sh on Mon Jan 26 10:08:47 PST 2009 */
#ifndef __CONFIG_H__
#define __CONFIG_H__

#define UPNP_VERSION   "20090126"
#define USE_NETFILTER 1
#define OS_NAME      "Tomato"
#define OS_VERSION   "Tomato"
#define OS_URL      "http://www.polarcloud.com/tomato/"

/* syslog facility to be used by miniupnpd */
#define LOG_MINIUPNPD       LOG_DAEMON

/* Uncomment the following line to allow miniupnpd to be
 * controlled by miniupnpdctl */
/*#define USE_MINIUPNPDCTL*/

/* Comment the following line to disable NAT-PMP operations */
#define ENABLE_NATPMP

/* Uncomment the following line to enable generation of
 * filter rules with pf */
/*#define PF_ENABLE_FILTER_RULES*/

/* Uncomment the following line to enable caching of results of
 * the getifstats() function */
/*#define ENABLE_GETIFSTATS_CACHING*/
/* The cache duration is indicated in seconds */
#define GETIFSTATS_CACHING_DURATION 2

/* Uncomment the following line to enable multiple external ip support */
/* note : Thas is EXPERIMENTAL, do not use that unless you know perfectly what you are doing */
/*#define MULTIPLE_EXTERNAL_IP*/

/* Comment the following line to use home made daemonize() func instead
 * of BSD daemon() */
#define USE_DAEMON

/* Uncomment the following line to enable lease file support */
/*#define ENABLE_LEASEFILE*/

/* Define one or none of the two following macros in order to make some
 * clients happy. It will change the XML Root Description of the IGD.
 * Enabling the Layer3Forwarding Service seems to be the more compatible
 * option. */
/*#define HAS_DUMMY_SERVICE*/
#define ENABLE_L3F_SERVICE

/* Experimental UPnP Events support. */
/*#define ENABLE_EVENTS*/

/* include interface name in pf and ipf rules */
#define USE_IFNAME_IN_RULES

#endif
edrikk
DD-WRT User


Joined: 31 Oct 2009
Posts: 186
Location: Canada

PostPosted: Sat Dec 26, 2009 18:18    Post subject: Reply with quote
And the makefile:

Code:

# $Id: Makefile.linux,v 1.43 2009/01/29 19:57:21 nanard Exp $
# MiniUPnP project
# http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
# Author : Thomas Bernard
# for use with GNU Make

include ../common.mak

#CFLAGS = -Wall -O -D_GNU_SOURCE -g -DDEBUG
CFLAGS = -Wall -Os -D_GNU_SOURCE

CFLAGS += -I../iptables/include
LDFLAGS = -L../iptables -liptc

RM = rm -f
INSTALL = install
STRIP = strip

INSTALLPREFIX ?= $(PREFIX)/usr
SBININSTALLDIR = $(INSTALLPREFIX)/sbin
ETCINSTALLDIR = $(PREFIX)/etc/miniupnpd

BASEOBJS = miniupnpd.o upnphttp.o upnpdescgen.o upnpsoap.o \
           upnpreplyparse.o minixml.o \
         upnpredirect.o getifaddr.o daemonize.o upnpglobalvars.o \
           options.o upnppermissions.o minissdp.o natpmp.o \
           upnpevents.o

LNXOBJS = linux/getifstats.o
NETFILTEROBJS = netfilter/iptcrdr.o

ALLOBJS = $(BASEOBJS) $(LNXOBJS) $(NETFILTEROBJS)

LIBS = -liptc

ifdef IPTABLESPATH
CFLAGS := $(CFLAGS) -I$(IPTABLESPATH)/include/
LDFLAGS := $(LDFLAFGS) -L$(IPTABLESPATH)/libiptc/
LIBS = $(IPTABLESPATH)/libiptc/libiptc.a
endif

TESTUPNPDESCGENOBJS = testupnpdescgen.o upnpdescgen.o

EXECUTABLES = miniupnpd testupnpdescgen testgetifstats \
              testupnppermissions miniupnpdctl testgetifaddr

.PHONY:   all clean install depend genuuid

all:   $(EXECUTABLES)

clean:
   $(RM) $(ALLOBJS)
   $(RM) $(EXECUTABLES)
   $(RM) testupnpdescgen.o testgetifstats.o
   $(RM) testupnppermissions.o
   $(RM) miniupnpdctl.o

#   install:   miniupnpd genuuid
#   
#      $(INSTALL) -d $(SBININSTALLDIR)
#      $(INSTALL) miniupnpd $(SBININSTALLDIR)
#      $(INSTALL) -d $(ETCINSTALLDIR)
#      $(INSTALL) netfilter/iptables_init.sh $(ETCINSTALLDIR)
#      $(INSTALL) netfilter/iptables_removeall.sh $(ETCINSTALLDIR)
#      $(INSTALL) --mode=0644 miniupnpd.conf $(ETCINSTALLDIR)
#      $(INSTALL) -d $(PREFIX)/etc/init.d
#      $(INSTALL) linux/miniupnpd.init.d.script $(PREFIX)/etc/init.d/miniupnpd

# genuuid is using the uuidgen CLI tool which is part of libuuid
# from the e2fsprogs
genuuid:
   sed -i -e "s/^uuid=[-0-9a-f]*/uuid=`(genuuid||uuidgen) 2>/dev/null`/" miniupnpd.conf

miniupnpd:   $(BASEOBJS) $(LNXOBJS) $(NETFILTEROBJS)

testupnpdescgen:   $(TESTUPNPDESCGENOBJS)

testgetifstats:   testgetifstats.o linux/getifstats.o

testupnppermissions:   testupnppermissions.o upnppermissions.o

testgetifaddr:   testgetifaddr.o getifaddr.o

miniupnpdctl:   miniupnpdctl.o

#   config.h:   genconfig.sh
#      ./genconfig.sh

depend:   config.h
   makedepend -f$(MAKEFILE_LIST) -Y \
   $(ALLOBJS:.o=.c) $(TESTUPNPDESCGENOBJS:.o=.c) \
   testgetifstats.c 2>/dev/null

# DO NOT DELETE

miniupnpd.o: config.h upnpglobalvars.h upnppermissions.h miniupnpdtypes.h
miniupnpd.o: upnphttp.h upnpdescgen.h miniupnpdpath.h getifaddr.h upnpsoap.h
miniupnpd.o: options.h minissdp.h upnpredirect.h daemonize.h upnpevents.h
miniupnpd.o: natpmp.h commonrdr.h
upnphttp.o: config.h upnphttp.h upnpdescgen.h miniupnpdpath.h upnpsoap.h
upnphttp.o: upnpevents.h
upnpdescgen.o: config.h upnpdescgen.h miniupnpdpath.h upnpglobalvars.h
upnpdescgen.o: upnppermissions.h miniupnpdtypes.h upnpdescstrings.h
upnpsoap.o: config.h upnpglobalvars.h upnppermissions.h miniupnpdtypes.h
upnpsoap.o: upnphttp.h upnpsoap.h upnpreplyparse.h upnpredirect.h getifaddr.h
upnpsoap.o: getifstats.h
upnpreplyparse.o: upnpreplyparse.h minixml.h
minixml.o: minixml.h
upnpredirect.o: config.h upnpredirect.h upnpglobalvars.h upnppermissions.h
upnpredirect.o: miniupnpdtypes.h upnpevents.h netfilter/iptcrdr.h commonrdr.h
getifaddr.o: getifaddr.h
daemonize.o: daemonize.h config.h
upnpglobalvars.o: config.h upnpglobalvars.h upnppermissions.h
upnpglobalvars.o: miniupnpdtypes.h
options.o: options.h config.h upnppermissions.h upnpglobalvars.h
options.o: miniupnpdtypes.h
upnppermissions.o: config.h upnppermissions.h
minissdp.o: config.h upnpdescstrings.h miniupnpdpath.h upnphttp.h
minissdp.o: upnpglobalvars.h upnppermissions.h miniupnpdtypes.h minissdp.h
minissdp.o: codelength.h
natpmp.o: config.h natpmp.h upnpglobalvars.h upnppermissions.h
natpmp.o: miniupnpdtypes.h getifaddr.h upnpredirect.h commonrdr.h
upnpevents.o: config.h upnpevents.h miniupnpdpath.h upnpglobalvars.h
upnpevents.o: upnppermissions.h miniupnpdtypes.h upnpdescgen.h
linux/getifstats.o: getifstats.h config.h
netfilter/iptcrdr.o: netfilter/iptcrdr.h commonrdr.h config.h
netfilter/iptcrdr.o: upnpglobalvars.h upnppermissions.h miniupnpdtypes.h
testupnpdescgen.o: config.h upnpdescgen.h
upnpdescgen.o: config.h upnpdescgen.h miniupnpdpath.h upnpglobalvars.h
upnpdescgen.o: upnppermissions.h miniupnpdtypes.h upnpdescstrings.h
testgetifstats.o: getifstats.h

autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Sat Dec 26, 2009 18:33    Post subject: Reply with quote
You say that you can't connect to MW2 servers, have you actually looked to see if the ports are being opened?

I think this could be holiday related traffic.

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
edrikk
DD-WRT User


Joined: 31 Oct 2009
Posts: 186
Location: Canada

PostPosted: Sat Dec 26, 2009 18:45    Post subject: Reply with quote
autobot wrote:
You say that you can't connect to MW2 servers, have you actually looked to see if the ports are being opened?

I think this could be holiday related traffic.



Yeah, that's what I thought initially as well... But then:

1) When switching over to Tomato (right away), it works (right away).
2) The iptables -L MINIUPNPD is showing that the ports are open!


I'm starting to wonder if the initial set of iptables rules that the script sets up is complete or not... So I'm looking through the tomato code.. in specific router/rc/firewall.c

I'm **really** not even close to being good with iptable rules, but at first glance I see that Tomato may have some rules that we don't?

Code:
      if (nvram_get_int("upnp_enable") & 3) {
         ipt_write(":upnp - [0:0]\n");
         if (wanup) {
            // ! for loopback (all) to work
            ipt_write("-A PREROUTING -d %s -j upnp\n", wanaddr);
         }
         else {
            ipt_write("-A PREROUTING -i %s -j upnp\n", wanface);
         }
      }

.... <SNIP> .....


      ipt_write(
         ":upnp - [0:0]\n"
         "-A FORWARD -i %s -j upnp\n",
         wanface);



firewall.c
 Description:

Download
 Filename:  firewall.c
 Filesize:  17.97 KB
 Downloaded:  2204 Time(s)

autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Sat Dec 26, 2009 18:48    Post subject: Reply with quote
Well there is another known iptables rule for miniupnpd, I'm headed to the store now so I will find it and post when I get back.
_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
edrikk
DD-WRT User


Joined: 31 Oct 2009
Posts: 186
Location: Canada

PostPosted: Sat Dec 26, 2009 18:49    Post subject: Reply with quote
You're quick Autobot! Smile I just updated my previous post, and saw a response!
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Sat Dec 26, 2009 19:34    Post subject: Reply with quote
Yes I'm on a blackberry, good email capabilities.
_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next Display posts from previous:    Page 5 of 8
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
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
You can attach files in this forum
You can download files in this forum