What's new

Restricting UPnP Access

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

sinshiva

Very Senior Member
Out of boredom, i decided to look at the most practical methods for restricting access to the UPnP daemon in the event somebody wanted to ONLY enable UPnP for multiple console devices, etc. I considered iptables initially, then postconf and concluded the most user friendly method is going to be to copy the existing config from /tmp/etc/upnp/config to /jffs/configs/upnp

near the bottom, you'll find a line such as;

Code:
allow 1024-65535 192.168.1.1/255.255.255.0 1-65535

from what i can see, editting this line to read
Code:
allow 1024-65535 192.168.1.[B]101[/B]/255.255.255.[B]255[/B] 1-65535

will restrict functionality to an ip of 192.168.1.101 and can be reused like;

Code:
allow 1024-65535 192.168.1.[B]101[/B]/255.255.255.[B]255[/B] 1-65535
allow 1024-65535 192.168.1.[B]102[/B]/255.255.255.[B]255[/B] 1-65535
allow 1024-65535 192.168.1.[B]103[/B]/255.255.255.[B]255[/B] 1-65535

obviously, one will want to set a static IP configuration on the devices or use static dhcp leases. easy peasy.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top