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 

Run UPnP and NAT-PMP with different config setup

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Feature Request
View previous topic :: View next topic  
Author Message
Outer Marker



Joined: 10 Oct 2008
Posts: 1

PostPosted: Fri Oct 10, 2008 11:53 pm    Post subject: Run UPnP and NAT-PMP with different config setup Reply with quote

Hello all. I am new to the forum but have an interesting feature request. To be as complete as possible, I will provide a little background to the scenario so please excuse my long first post Wink

I have several computers on my LAN and one Playstation 3. I wanted to have the router respond to UPnP discovery ONLY from the PS3 static IP address. With the help of jchuit, the developer of Tarifa firmware, I was able to modify the UPnP_conf file to only allow requests from the PS3.

Now my problem is this: When you modify the upnp_conf file, it also affects NAT-PMP. What I would like to do is have UPnP respond to the PS3, and still allow NAT-PMP to be available to all PCs on my LAN. Unfortunately, at present it looks like the single upnp_conf file affects BOTH UPnP and NAT-PMP. I'd really like to be able to set different parameters for UPnP and NAT-PMP.

I realize that I may be asking for a bit much, but now that I have seen Paris, nothing else will do (as the saying goes.) If anyone is interested in my modification of the upnp_conf file, here is how I did it with Tarifa firmware on a Linksys WRT54G router.

Assume PS3 IP is 192.168.1.150

nvram set miniupnpd_conf='ext_ifname=vlan1
listening_ip=192.168.1.1
port=5000
enable_natpmp=yes
bitrate_up=100000000
bitrate_down=100000000
system_uptime=yes
notify_interval=30
clean_ruleset_interval=0
uuid=fc4ec500-b000-000f-6600-57ef01000000
allow 1024-65535 192.168.1.150 1024-65535
deny 0-65535 0.0.0.0/0 0-65535

Thank you very much for your consideration.

-- Outer Marker
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1431

PostPosted: Sat Oct 11, 2008 10:17 am    Post subject: Reply with quote

well indeed currently it is not possible because allow and deny directives in the conf file apply to both NAT-PMP and UPNP.
One quick way to do what you want would be to remove the call to check_upnp_rule_against_permissions() in natpmp.c and recompile
_________________
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 -> miniupnpd Feature Request 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.