UPnP and K26 -UPnP not working

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, 9  Next
Author Message
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Tue Dec 08, 2009 2:17    Post subject: Reply with quote
What in the hell? Is there a man page for this program?


Code:
root@Asus:/tmp# vi miniupnpd
^@^@^@^@/etc/miniupnpd.conf^@-f^@^@Error reading configuration file %s
^@^@^@^@Too many listening ips (max: %d), ignoring %s
^@^@yes^@Unknown option in file %s
^@^@Unknown option: %s
^@Option -%c takes one argument.
^@Option -%c takes two arguments.
^@^@^@^@Usage:
        %s [-f config_file] [-i ext_ifname] [-o ext_ip]
                [-a listening_ip] [-p port] [-d] [-L] [-U] [-S] [-N]
                [-u uuid] [-s serial] [-m model_number]
                [-t notify_interval] [-P pid_filename]
                [-B down up] [-w url]

Notes:
        There can be one or several listening_ips.
        Notify interval is in seconds. Default is 30 seconds.
        Default pid file is %s.
        With -d miniupnpd will run as a standard program.
        -L sets packet log in pf and ipf on.
        -S sets "secure" mode : clients can only add mappings to their own ip
        -U causes miniupnpd to report system uptime instead of daemon uptime.
        -B sets bitrates reported by daemon in bits per second.
        -w sets the presentation url. Default is http address on port 80
^@^@^@daemon()^@^@^@^@miniupnpd^@^@^@MiniUPnPd is already running. EXITING^@^@^@http://%s/^@^@Failed to set %s handler. EXITING^@^@^@SIGTERM^@SIGINT^@^@Failed to ignore SIGPIPE signals^@^@^@^@Failed to init redirection engine. EXITING^@^@~D­?ð^D¤?ðH¤?ð~L¤?ðÄ¥?ð ¦?ð~L¦?ðø¦?ðÀ§?ð^\¨?ð| ¨?ð$©?ð¬©?ð^Xª?ð~Dª?ðàª?ð<«?ð8§?ð|§?ð¼¬?ð@­?ð8¬?ð^L¶?ð~\¹?ð~\¹?ð~\¹?ð~\¹?ð~\¹?ð~\¹?ð~\¹?ð~\¹?ð~\¹?ð^D³?ð~\¹?ðIJ?ð~\¹?ð¬´?ð~\¹?ð~\¹?ð$³?ð~\¹?ðä²?ð~\¹?ð~\¹?ð~\¹?ð~\¹?ð~\¹?ð~\¹?ð~\¹?ð~\¹?ð~\¹?ð~\¹?ð~\¹?ð(·?ð~\¹?ð~\¹?ðXµ?ð~\¹?ð~H¹?ð~\¹?ð~\¹?ðD³?ð~\¹?ð~\¹?ð~\¹?ðø±?ð~\¹?ðÜ®?ðð³?ð~\¹?ð~\¹?ð,±?ð~H¯?ðD°?ð~\¹?ðdµ?ðFailed to open socket for HTTP. EXITING

_________________
Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
Sponsor
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Tue Dec 08, 2009 2:46    Post subject: Reply with quote
I gave an example configuration file and an example to run it from the cli. You tried to "read" it with a text editor, that's not going to work. Copy the contents of the above example into a file named miniupnpd.conf and run this in the same directory as miniupnpd

Code:

./miniupnpd -f miniupnpd.conf

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Tue Dec 08, 2009 3:15    Post subject: Reply with quote
Code:
root@Asus:~# vi miniupnpd.conf
root@Asus:~# vi miniupnpd.conf
ext_ifname=vlan0
listening_ip=192.168.1.1
enable_upnp=yes
port=5050
enable_natpmp=yes
secure_mode=yes
upnp_forward_chain=upnp
enable_upnp=yes
port=5050
enable_natpmp=yes
secure_mode=yes
upnp_forward_chain=upnp
upnp_nat_chain=upnp
~
~
~
~
~
~
~
~
~
~
"miniupnpd.conf" 13L, 231C
:wq
root@Asus:~# cd /tmp
root@Asus:/tmp# ls
TwonkyMediaServer-log.txt  disktype.dump   miniupnpd       root
blkid                      dnsmasq.conf    mounted         swaps
blocks                     etc             nas.wl0lan.pid  udhcpc
c                          fdisk           oet             udhcpc.expires
cron.d                     hosts           proftpd         var
crontab                    igmpproxy.conf  resolv.conf     www
ddns                       loginprompt     resolv.dnsmasq
root@Asus:/tmp# ./miniupnpd -f miniupnpd.conf
-bash: ./miniupnpd: Permission denied
root@Asus:/tmp#



Yea... Question

_________________
Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Tue Dec 08, 2009 3:23    Post subject: Reply with quote
You need to create the configuration file in the same directory as the miniupnpd for the example I gave.

You need to make sure your network is vlan0 with ifconfig, and put your proper interface name into the file. This would be your internal network interface.

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Tue Dec 08, 2009 3:30    Post subject: Reply with quote
Ok, did that...I honestly dont understand what it is you're doing here. If this is gonna be a CLI controlled process, then it is useless (at least to me)

Code:
root@Asus:/tmp# vi miniupnp.conf
ext_ifname=vlan1
listening_ip=192.168.1.1
enable_upnp=yes
port=5050
enable_natpmp=yes
secure_mode=yes
upnp_forward_chain=upnp
enable_upnp=yes
port=5050
enable_natpmp=yes
secure_mode=yes
upnp_forward_chain=upnp
upnp_nat_chain=upnp
~
~
~
~
~

"miniupnp.conf" 13L, 231C
:wq


Code:
root@Asus:/tmp# ./miniupnpd -f miniupnpd.conf
-bash: ./miniupnpd: Permission denied

_________________
Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Tue Dec 08, 2009 3:41    Post subject: Reply with quote
Its a daemon that routes all your upnp traffic automatically, no control necessary.

Your problem is the file isn't executable.

Code:

chmod +x miniupnpd
./miniupnpd -f miniupnpd.conf

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Tue Dec 08, 2009 3:46    Post subject: Reply with quote
Well the chmod made it an executable, but now I'm getting this
Code:

root@Asus:/tmp# chmod +x miniupnpd
root@Asus:/tmp# ls
TwonkyMediaServer-log.txt  disktype.dump   miniupnp.conf   resolv.dnsmasq
blkid                      dnsmasq.conf    miniupnpd       root
blocks                     etc             mounted         swaps
c                          fdisk           nas.wl0lan.pid  udhcpc
cron.d                     hosts           oet             udhcpc.expires
crontab                    igmpproxy.conf  proftpd         var
ddns                       loginprompt     resolv.conf     www
root@Asus:/tmp# ./miniupnpd -f miniupnpd.conf
Error reading configuration file miniupnpd.conf
Usage:
 ./miniupnpd [-f config_file] [-i ext_ifname] [-o ext_ip]
  [-a listening_ip] [-p port] [-d] [-L] [-U] [-S] [-N]
  [-u uuid] [-s serial] [-m model_number]
  [-t notify_interval] [-P pid_filename]
  [-B down up] [-w url]

Notes:
 There can be one or several listening_ips.
 Notify interval is in seconds. Default is 30 seconds.
 Default pid file is /var/run/miniupnpd.pid.
 With -d miniupnpd will run as a standard program.
 -L sets packet log in pf and ipf on.
 -S sets "secure" mode : clients can only add mappings to their own ip
 -U causes miniupnpd to report system uptime instead of daemon uptime.
 -B sets bitrates reported by daemon in bits per second.
 -w sets the presentation url. Default is http address on port 80
root@Asus:/tmp#

_________________
Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Tue Dec 08, 2009 4:01    Post subject: Reply with quote
I imagine your optware setup is interfering with port 80, try it like this with the IP adjusted to be the same as your router.

Code:

./miniupnpd -i vlan0 -a 192.168.1.1 -t 50 -w 85 -d


You will be able to see connections and such, to close it hit control + c. Take away the -d to run in the background.

If your running Windows XP you can go to "My Network Places" and you should see "DD-WRT router" along with any other upnp stuff that windows can see. It means it works, you can double click the icon and it will launch the webif to your router. If not make sure in "My Network Places" on the top tab on the left labeled "Network Tasks" make sure the last item says "Hide icons for networked UPnP devices".

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Tue Dec 08, 2009 4:23    Post subject: Reply with quote
Yup, working now!

Code:
root@Asus:/tmp# ./miniupnpd -i vlan0 -a 192.168.1.1 -t 50 -w 80 -d
miniupnpd[15666]: HTTP listening on port 59450
miniupnpd[15666]: HTTP connection from 192.168.1.107:4679
miniupnpd[15666]: HTTP REQUEST : GET /rootDesc.xml (HTTP/1.1)
miniupnpd[15666]: HTTP connection from 192.168.1.107:4681
miniupnpd[15666]: HTTP REQUEST : GET /rootDesc.xml (HTTP/1.1)
miniupnpd[15666]: HTTP connection from 192.168.1.107:4682
miniupnpd[15666]: HTTP REQUEST : GET /L3F.xml (HTTP/1.1)
miniupnpd[15666]: HTTP connection from 192.168.1.107:4683
miniupnpd[15666]: HTTP REQUEST : GET /WANCfg.xml (HTTP/1.1)
miniupnpd[15666]: HTTP connection from 192.168.1.107:4684
miniupnpd[15666]: HTTP REQUEST : GET /WANIPCn.xml (HTTP/1.1)
miniupnpd[15666]: HTTP connection from 192.168.1.107:4685
miniupnpd[15666]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[15666]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetConnectionTypeInfo
miniupnpd[15666]: HTTP connection from 192.168.1.107:4686
miniupnpd[15666]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[15666]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetNATRSIPStatus
miniupnpd[15666]: HTTP connection from 192.168.1.107:4687
miniupnpd[15666]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
miniupnpd[15666]: SOAPAction: urn:schemas-upnp-org:control-1-0#QueryStateVariable
miniupnpd[15666]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address



But i don't have a VLAN0 in my ifconfig, just these. Which one should I use?

Code:
vlan1     Link encap:Ethernet  HWaddr 00:26:18:85:25:C9
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:180193 errors:0 dropped:0 overruns:0 frame:0
          TX packets:383557 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:12667824 (12.0 MiB)  TX bytes:530942136 (506.3 MiB)

vlan2     Link encap:Ethernet  HWaddr 00:03:25:3D:C9:93
          inet addr:173.168.205.65  Bcast:173.168.207.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:355073 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14531 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:29635427 (28.2 MiB)  TX bytes:7672638 (7.3 MiB)

_________________
Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Tue Dec 08, 2009 4:51    Post subject: Reply with quote
I'm no expert, your internal interface...vlan2
_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7647

PostPosted: Tue Dec 08, 2009 4:54    Post subject: Reply with quote
autobot wrote:
I'm no expert, your internal interface...vlan2


Not internal interface. -i denotes your external (WAN) interface, and yes it is vlan2 in this case.

_________________
Kernel panic: Aiee, killing interrupt handler!
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Tue Dec 08, 2009 4:57    Post subject: Reply with quote
LOM wrote:
autobot wrote:
I'm no expert, your internal interface...vlan2


Not internal interface. -i denotes your external (WAN) interface, and yes it is vlan2 in this case.


Thanks I worded it improperly.

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7647

PostPosted: Tue Dec 08, 2009 5:19    Post subject: Reply with quote
I do also notice from Mastermans log that miniupnpd does not honour socket keep alive so the client has to open a new socket for each uPnP request.
This is same behaviour as the current dd-wrt uPnP and causes lots of connections in the conntracker.
They will disappear when they reach the TCP timeout though.

_________________
Kernel panic: Aiee, killing interrupt handler!
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Tue Dec 08, 2009 5:22    Post subject: Reply with quote
Well, I see DD-WRT router in Network places, but the target is wrong:

http://192.168.1.1:32939/80


CPU usage is not affected. Would be nice if I could actually see what ports were being forwarded, etc.

_________________
Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Tue Dec 08, 2009 6:16    Post subject: Reply with quote
Masterman wrote:
Well, I see DD-WRT router in Network places, but the target is wrong:

http://192.168.1.1:32939/80


CPU usage is not affected. Would be nice if I could actually see what ports were being forwarded, etc.


Code:

iptables -L upnp

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next Display posts from previous:    Page 3 of 9
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