miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

limit of upnp rules

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> NAT/UPnP
View previous topic :: View next topic  
Author Message
barouken



Joined: 11 Dec 2012
Posts: 4
Location: wroclaw

PostPosted: Tue Dec 11, 2012 8:13 am    Post subject: limit of upnp rules Reply with quote

Hello

I've noticed on my router, that I can only add 32 rules, after that I received an error 501.
Could anybody know more about some limitation of rules? This limitation is an effect of router
specification? I could not find anything interesting in upnp documentation, but maybe I've
missed sth.

thanks
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1442

PostPosted: Tue Dec 11, 2012 10:28 am    Post subject: Reply with quote

There are no limitation in UPnP IGD specification.
This kind of limitation is implementation specific.
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
barouken



Joined: 11 Dec 2012
Posts: 4
Location: wroclaw

PostPosted: Wed Dec 12, 2012 9:04 am    Post subject: Reply with quote

thanks for answer, I've got another question, it is possible to add multiple amount of port at one time?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1442

PostPosted: Wed Dec 12, 2012 9:40 am    Post subject: Reply with quote

barouken wrote:
thanks for answer, I've got another question, it is possible to add multiple amount of port at one time?

This is not possible. The AddPortMapping method only allows to add one.
As does the AddAnyPortMapping method added in IDG v2.
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
barouken



Joined: 11 Dec 2012
Posts: 4
Location: wroclaw

PostPosted: Wed Dec 12, 2012 9:47 am    Post subject: Reply with quote

maybe I'll be more specific, we are sending to a router:

Quote:
urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:AddPortMapping xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1"><NewRemoteHost></NewRemoteHost><NewExternalPort>5005</NewExternalPort><NewProtocol>UDP</NewProtocol><NewInternalPort>5005</NewInternalPort><NewInternalClient>192.168.102.14</NewInternalClient><NewEnabled>1</NewEnabled><NewPortMappingDescription>mine</NewPortMappingDescription><NewLeaseDuration>0</NewLeaseDuration></u:AddPortMapping></s:Body></s:Envelope>


if there is a possibility to send two this kind of message at one time? so I could add 2 ports at one time?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1442

PostPosted: Wed Dec 12, 2012 9:55 am    Post subject: Reply with quote

you can try to execute two soap methods at the time, but I won't bet the router will process them at the same time...
Why don't you proceed sequentially ?
1 - call AddPortMapping(port1)
2 - call AddPortMapping(port2)

I don't think that is a good idea to "flood" the router with soap requests...
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
barouken



Joined: 11 Dec 2012
Posts: 4
Location: wroclaw

PostPosted: Wed Dec 12, 2012 11:14 am    Post subject: Reply with quote

miniupnp wrote:
you can try to execute two soap methods at the time, but I won't bet the router will process them at the same time...
Why don't you proceed sequentially ?
1 - call AddPortMapping(port1)
2 - call AddPortMapping(port2)

I don't think that is a good idea to "flood" the router with soap requests...


When I do that my router is getting slower, I mean, it need more and more time to response:

Quote:
strace.out:17:50:23.384285 write(1, "Added 3000.\n", 2Cool
strace.out:17:50:23.965234 write(1, "Added 3001.\n", 2Cool
strace.out:17:50:24.769506 write(1, "Added 3002.\n", 2Cool
strace.out:17:50:25.853969 write(1, "Added 3003.\n", 2Cool
strace.out:17:50:27.007400 write(1, "Added 3004.\n", 2Cool
strace.out:17:50:28.234524 write(1, "Added 3005.\n", 2Cool
strace.out:17:50:29.727815 write(1, "Added 3006.\n", 2Cool
strace.out:17:50:31.177308 write(1, "Added 3007.\n", 2Cool
strace.out:17:50:32.691011 write(1, "Added 3008.\n", 2Cool
strace.out:17:50:34.374388 write(1, "Added 3009.\n", 2Cool
strace.out:17:50:36.229027 write(1, "Added 3010.\n", 2Cool
strace.out:17:50:38.247378 write(1, "Added 3011.\n", 2Cool
strace.out:17:50:40.461213 write(1, "Added 3012.\n", 2Cool
strace.out:17:50:42.651093 write(1, "Added 3013.\n", 2Cool


I tried to 'flood' the router with many AddPortMapping at one time and it stopped responsing, so this is not a good idea, so if there is no way to change the body of http request to add more than one port, I think that I'll stay with adding AddPortMapping one after another.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> NAT/UPnP 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


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.