From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-fx0-f43.google.com (mail-fx0-f43.google.com [209.85.161.43]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id 095EB20067E for ; Thu, 27 Oct 2011 00:04:41 -0700 (PDT) Received: by faat9 with SMTP id t9so4299841faa.16 for ; Thu, 27 Oct 2011 00:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:organization:user-agent:mime-version:to :subject:content-type; bh=ms8uweC2muHu7Dd4VOxA5Oa9MuHF6QnFaWKq9207raY=; b=vU8Bq25FYNn3+GvXi24EefYhyue03mNx/BA8FVWZjqrYsvyevWqaum5jvpBUu8K9M3 REkpapkDKGoNyb/NclKKaVuv0IYd1tngtdHdSErIETPzRSXIziKLZ7NGBIrd+dD5TtP1 TUQMEjGtSa7UxCWJv/Mf6Gclhdrq0N9kotIys= Received: by 10.223.36.193 with SMTP id u1mr14045431fad.27.1319699079845; Thu, 27 Oct 2011 00:04:39 -0700 (PDT) Received: from [10.0.2.125] ([88.208.89.139]) by mx.google.com with ESMTPS id l11sm9125464faj.19.2011.10.27.00.04.37 (version=SSLv3 cipher=OTHER); Thu, 27 Oct 2011 00:04:38 -0700 (PDT) Message-ID: <4EA9027F.7000702@gmail.com> Date: Thu, 27 Oct 2011 09:04:31 +0200 From: =?ISO-8859-1?Q?David_T=E4ht?= Organization: Bufferbloat.net User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: netdev@vger.kernel.org, bloat-devel@lists.bufferbloat.net Subject: adding nat awareness in routing daemons? Content-Type: multipart/mixed; boundary="------------000706060206030302010200" X-BeenThere: bloat-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Developers working on AQM, device drivers, and networking stacks" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2011 07:04:42 -0000 This is a multi-part message in MIME format. --------------000706060206030302010200 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit after shooting myself in the foot on this several times in the past couple months, I thought I'd ask... Is there a way to determine generically (in linux at least) if outgoing addresses on an interface are being NATTed or not? via netlink? I can come up with a way to do this via parsing iptables's nat table but that's kind of ugly. The scenario I have is two (or more) routers with their external interfaces connected to a shared ethernet/cable segment. Both do NAT on their external interfaces for ipv4 (but don't do nat, at least currently, for ipv6). Their private networks are usually connected together via various means (mesh mostly), which can fail, and it would be nice to be able to add the external connectivity as a fallback without having to worry about NAT. e.g. something like if (nat_status(&this_interface)) { if(this_interface & IPV4_NO_NAT) send_route4_calculations(); if(this_interface & IPV6_NO_NAT) send_route6_calculations(); } Where I did myself in on this was in the lab http://io.lab.bufferbloat.net:8080/ -- Dave Täht --------------000706060206030302010200 Content-Type: text/x-vcard; charset=utf-8; name="dave_taht.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="dave_taht.vcf" begin:vcard fn;quoted-printable:Dave T=C3=A4ht n;quoted-printable:T=C3=A4ht;Dave email;internet:dave.taht@gmail.com tel;home:1-239-829-5608 tel;cell:0638645374 x-mozilla-html:FALSE version:2.1 end:vcard --------------000706060206030302010200--