From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qc0-x232.google.com (mail-qc0-x232.google.com [IPv6:2607:f8b0:400d:c01::232]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id F3CD421F1F1 for ; Wed, 19 Feb 2014 08:22:01 -0800 (PST) Received: by mail-qc0-f178.google.com with SMTP id m20so875693qcx.9 for ; Wed, 19 Feb 2014 08:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=EXrYk/oRXgm/o0jXZ374O0g8OJF17tq2ROv9B4h5lKY=; b=IkDrrkKzkm/LWNtV3NN6Ak4PjZfyo7y6eHVyrY8UHpAlB2hns8Mf8DMUgE9Ioq8VF3 blXRSsP/L6vLedo6jmTenKNipoWrXezChm8+0ubccUwcekpIs3gh2UpDzEUHmtVOgiPl 36rXdkAYnfcphEHRXexZXTzYvXuAmUpqJlmkNvoBtbjhqTU1oY3vE1/MH9az0TAPSi0W UgCsVaKhuxBA8TcRQfSVZEdVKtiH1+yf2IApmNEwpiGt+XfH5ZzcN9m0BFF20Kc0cu0f Je8iVjm54qA/3Vhh/e3T4u2mcVonqtty2Dc5sLvgVVfdk/cDFZnDm5/RXeBm0BVSYzy3 iiwA== MIME-Version: 1.0 X-Received: by 10.140.91.23 with SMTP id y23mr48738557qgd.3.1392826920741; Wed, 19 Feb 2014 08:22:00 -0800 (PST) Received: by 10.224.88.6 with HTTP; Wed, 19 Feb 2014 08:22:00 -0800 (PST) Date: Wed, 19 Feb 2014 11:22:00 -0500 Message-ID: From: Dave Taht To: "cerowrt-devel@lists.bufferbloat.net" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [Cerowrt-devel] fixing upnp X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2014 16:22:02 -0000 I have found and fixed at least two problems with upnp and natpmp. Both of these fixes will be in 3.10.28-14... 1) upnp was not successfully creating a persistent lease file. This meant whenever the daemon was restarted (by a network reload for example, or a reboot), upnp would lose the leases. I pushed the fix upstream to openwrt yesterday. 2) natpmp was not configured for the right interfaces. I am a little confused as to how these two interoperate, and about the role of minissdpd, still. To fix the first, edit /etc/init.d/miniupnpd to have this in it [ -n "$upnp_lease_file" ] && { # add the {, kill the \ echo "lease_file=3D$upnp_lease_file" >>$tmpconf touch $upnp_lease_file # add this line } # add a } And restart or reboot. I tested it with transmission and this was the resul= t: root@dave:/tmp# cat upnp.leases UDP:51413:172.30.42.20:51413:0:Transmission at 51413 TCP:51413:172.30.42.20:51413:1392826703:NAT-PMP 51413 tcp the second: root@dave:/tmp# cat /etc/config/natpmp config natpmp option outbound_interface ge00 option inbound_interfaces 'se00 sw00 sw10' option iptables_chain natpmp (restart or reboot, or do both fixes at the same time) NOTE: The gui doesn't like editing the interfaces. I didn't know that that upnp worked with ipv6 at all. I tested and made sur= e the ipv6 addresses of the control ports were not available via the internet... Wed Feb 19 03:31:47 2014 daemon.notice miniupnpd[21897]: Listening for NAT-PMP traffic on port 5351 Wed Feb 19 03:33:15 2014 daemon.notice miniupnpd[21975]: HTTP listening on port 5000 Wed Feb 19 03:33:15 2014 daemon.notice miniupnpd[21975]: HTTP IPv6 address given to control points : [2001:470:839d:f0f0::1] Wed Feb 19 03:33:15 2014 daemon.notice miniupnpd[21975]: Listening for NAT-PMP traffic on port 5351 --=20 Dave T=E4ht Fixing bufferbloat with cerowrt: http://www.teklibre.com/cerowrt/subscribe.= html