1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MiniUPnPd listening_ip

Discussion in 'Tomato Firmware' started by Toastman, Oct 11, 2010.

  1. Toastman

    Toastman Super Moderator Staff Member Member

    I have a system with 2 additional vlans, vlan3 and 4, running on an RT-N16.

    I wondered if it were possible to get MiniUPnPd working with the vlans. Looking at the config, it seemed to be a matter of setting the listening_ip to the IP addresses of the vlan ports in router/miniupnpd.conf file and recompiling it, but seems like the router builds a config file of its own at runtime. Anyone know how to add 10.0.0.1/24 and 10.0.5.1/24 to the list, or mod the code so that it picks up the additional interfaces? I'd like to try it to see if any ports get forwarded.

    I tried adding to the router's /etc/miniupnpd.conf file, and restarting the service, but it's overwritten again when the service starts.
     
  2. teddy_bear

    teddy_bear Network Guru Member

    The content of "/etc/upnp/config.custom" file will be included into auto-generated miniupnpd configuration file every time it's re-created.
     
  3. Toastman

    Toastman Super Moderator Staff Member Member

    Aha, thank you! Off I go again...

    EDIT - it works - added the following lines in router's /etc/upnp/config.custom file:

    listening_ip=10.0.0.1/255.255.255.0
    listening_ip=10.0.5.1/255.255.255.0
    allow 1024-65535 10.0.0.1/255.255.255.0 1024-65535
    allow 1024-65535 10.0.5.1/255.255.255.0 1024-65535

    All vlans can open ports. Now, how do I make it stick across a reboot? Or better still, how to pick this up from newly created vlans automagically ? I'm lost with the variables...
     
  4. Toastman

    Toastman Super Moderator Staff Member Member

    New versions 7431+ also appends the file "upnpconfig.custom" from JFFS if present.
     

Share This Page