From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yh0-f52.google.com (mail-yh0-f52.google.com [209.85.213.52]) (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 DBE8621F4E5 for ; Thu, 4 Dec 2014 07:05:25 -0800 (PST) Received: by mail-yh0-f52.google.com with SMTP id z6so8330001yhz.11 for ; Thu, 04 Dec 2014 07:05:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=eYXRmBaGjrgw1xAQJNvCJSucUHwr1yeNbqL3CQSAMe8=; b=jc6/hn6oxaSgqCMGUYGF/XWfGLv/kczX91WZ9BNJyJXhlgPwMC4fzdqsre0XBbfoLT Qb16Zt84OkSwCNRqGwbeN+gXdOK/LWIB67juaaA2/8GonlzG8W9pPT/vlJ1SL2hfqR6E ebDgwjCpLadZJZ9HDcGp853Klhf065SMg4w5vcFcyhWSxK9Vvz+s0eM9EAjCSlnrNlJw MnRas8thIJtyXq/WjHmsp65fFnJd65ktwbWm/HVoOvs0p+o5uFCAPvAv9xnJSkLY2OPC FC+3dKwjZBKmbc340NVViFnnaRVid3pM4g9NRVA8n7O48v7lS7tf8zvLlBWp4y6YGndn 1S4Q== X-Gm-Message-State: ALoCoQmFRaf8mOixfY+tECHuTgR8sRy9c91ijwgH7/w0m5orgkND+8dh40v38cMh5ECD1QR7MLXs X-Received: by 10.236.228.232 with SMTP id f98mr12810014yhq.141.1417705523506; Thu, 04 Dec 2014 07:05:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.145.195 with HTTP; Thu, 4 Dec 2014 07:05:03 -0800 (PST) X-Originating-IP: [88.89.18.118] In-Reply-To: <87siih9fl0.fsf@toke.dk> References: <121767.1413574248@turing-police.cc.vt.edu> <9382.1413826910@turing-police.cc.vt.edu> <544672D3.8020709@redhat.com> <58702.1413908858@turing-police.cc.vt.edu> <54469242.5010506@redhat.com> <87siih9fl0.fsf@toke.dk> From: Tom Gundersen Date: Thu, 4 Dec 2014 16:05:03 +0100 Message-ID: To: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: cerowrt-devel@lists.bufferbloat.net Subject: Re: [Cerowrt-devel] SQM in mainline openwrt, fq_codel considered for fedora default 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: Thu, 04 Dec 2014 15:05:54 -0000 Hi Toke, On Wed, Oct 22, 2014 at 1:18 AM, Toke H=C3=B8iland-J=C3=B8rgensen wrote: > Tom Gundersen writes: > >> I have now subscribed to cerowrt-devel (long overdue), and I would >> very much appreciate any comments you guys may have on our networking >> work in systemd. In particular, if there are any more tweaks like >> making fq_codel the deafult, which would be the reasonable choice for >> 95% of users (most of whom don't know about these things and would >> otherwise never touch them), we are very open to suggestions. > > One thing that has gone into openwrt recently but is not supported in > systemd-networkd is source-specific routing. Since I got an internet > connection too fast for the WNDR to keep up, I've transitioned to an x86 > box running Arch Linux for that link. It uses systemd-networkd to setup > most of the networking (which works very well!), but one thing missing > is support for source-specific routing. > > Right now, I have a systemd unit to set up my IPv6 tunnel with this in > it: > > ExecStart=3D/usr/bin/ip tunnel add he-ipv6 mode sit remote 216.66.80.90 t= tl 255 dev enp2s0 > ExecStart=3D/usr/bin/ip link set he-ipv6 up > ExecStart=3D/usr/bin/ip addr add 2001:470:xx::2/64 dev he-ipv6 > ExecStart=3D/usr/bin/ip route add default via 2001:470:xx::1 from 2001:47= 0:yy::/48 proto static > ExecStart=3D/usr/bin/ip route add default via 2001:470:xx::1 from 2001:47= 0:xx::2/128 proto static > ExecStart=3D/usr/bin/ip route add default from ::/128 dev he-ipv6 > > The top three lines I can replace by a file in /etc/systemd/network, but > not the bottom three. I finally got around to have a look at this, and I now added support for source routing. It appears to work for me (current git) with: wireless.network ---8<----------------------- [Match] Name=3Dwlp3s0 [Network] DHCP=3Dyes Tunnel=3Dhe he.netdev ---8<----------------------------------------- [NetDev] Name=3Dhe Kind=3Dsit [Tunnel] Remote=3D222.333.444.555 TTL=3D255 he.network ---8<----------------------------------------- [Match] Name=3Dhe-ipv6 [Network] Address=3D2001:470:11::2/64 [Route] Gateway=3D2001:470:11::1 Source=3D2001:470:22::/48 [Route] Gateway=3D2001:470:11::1 Source=3D2001:470:11::2/128 [Route] Source=3D::/128 ---8<----------------------------------------- Let me know if you experience any issues! > Also, having a way to make systemd units depend on network interface > availability (and configuration state) would be neat; to do things like > start up a VPN daemon when the WAN connection becomes available. :) We don't have a nice solution for this yet, but it is something we are keeping in mind and will have to solve somehow (much of the common things will be integrated with networkd directly). Cheers, Tom