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 

Understanding the UPnP protocol

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation
View previous topic :: View next topic  
Author Message
unixuser



Joined: 28 Feb 2009
Posts: 1

PostPosted: Sat Feb 28, 2009 11:01 am    Post subject: Understanding the UPnP protocol Reply with quote

Hello to all,

In order to firewall miniupnpd with the least possible privilege it is important to understand what messages are exchanged between the clients and miniupnpd. So far I've come up with this:

Supose we have a client at 192.168.1.2 and the router with miniupnpd is 192.168.1.1. This would be the conversation:

Client (192.168.1.2:$highport) -> broadcast (239.255.255.250:1900)
Router (192.168.1.1:$highport) -> broadcast (239.255.255.250:1900)
Client (192.168.1.2:$highport) -> Router (192.168.1.1:5000)
Router (192.168.1.1:$highport) -> Client (192.168.1.2:$highport)

I'm obviously missing something Wink
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1500

PostPosted: Sat Feb 28, 2009 1:53 pm    Post subject: Reply with quote

yes, second line would be
Router (192.168.1.1:1900) -> Client (192.168.1.2:$highport)
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1500

PostPosted: Fri Apr 17, 2009 8:37 pm    Post subject: Reply with quote

also don't mess UDP and TCP Smile
and multicast is not broadcast... (well IP multicasting is implementing by broadcasting at ethernet level but it is not the same at IP level)
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation 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.