What's new

Using upnp Portmapper on Asus RT-AC66U fails

  • 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!

Louis Car

Occasional Visitor
Hi,

I have been trying to use Upnp Portmapper (https://sourceforge.net/projects/upnp-portmapper/) on my router and found that while it works well to set or remove settings, I can only set a port this way directed to the local host machine.

If I try to set a port to my NAS for instance it will not work. According to the author he thinks this may be a restriction of the Router not allowing it. https://sourceforge.net/p/upnp-portmapper/bugs/49/

.. but I'm surprised if this is the case so my question is whether anyone else might be able to confirm it? My upnp setting is of course turned on and the NAS sets most of them I just need to add / remove a couple without using the normal WAN port forwarding feature which seems to wipe out all the upnp ports.

Anyway, second question if the Asus is restricting me, is this a feature that might work with Asuswrt-Merlin firmware?
 
Customize the miniupnpd config file (see the Wiki for details) to disable secure mode.

Code:
secure_mode=no
 
Thanks. Does this work on the stock firmware or after loading asuswrt-merlin?

I just checked the source code, and looks like that setting can be controlled through nvram. This should do the job:

Code:
nvram set upnp_secure=0
nvram commit
service restart_upnp
 
I'm trying to use the same program via the command line to open a port with UPnP. I made @RMerlin 's change, but I keep getting error 718, ConflictInMappingEntry. As far as I am aware, that error is only supposed to occur when the port you are trying to open is already taken by another entry, but it isn't.
 

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