I have loaded OpenWrt in BT Home hub 5A. While exploring could not see UpNp and services menu.
Installed the miniupnp package and could see UpNp under Services now. Also enable the
Start UPnP and NAT-PMP service
and enable UpNp in eservices and Upnp page.
I am using UpNp wizard in my windows lappi to send request to my router, but I am getting error Port mapping could not be added.
Appreciate any inputs/thoughts on what I am missing here.
I am expecting the port forwarding rule should be created automatically on router as long as I am registering from UpNp wizard tool in my windows machine.
In order for the forwarding rule to be created automatically, you first need to allow certain IPs to access a range of ports in miniupnpd configuration. Have you created that? Even better can you post here the configuration? uci show upnp or cat /etc/config/upnp ? Post it in preformatted text </>
My Router IP i.e Default gateway is 192.168.1.1.
My device Ip from where I am trying to register UpNP is 192.168.1.234 with 8000 internal and 8000 external port with Protocl TCP. Could you please help me where I need to change this in above config.
Also tried after adding this and restarting minupnpd
config perm_rule
option action 'allow'
option ext_ports '8000'
option int_addr '192.168.1.234/32'
option int_ports '8000'
option comment 'Allow high ports'
But no luck so far ..
The configuration allows all ports from all IPs, so this is not where the problem lies.
Taking in consideration the insecure nature of upnp nat, I strongly recomment you to just open manually the ports you want in the firewall and forget the upnp.
You can also check the logs for any useful information why it is not working, since you have it enabled. Last resort would be to monitor the packet exchange with tcpdump.