From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 28 11:28:35 2021 Received: (at submit) by debbugs.gnu.org; 28 Jun 2021 15:28:35 +0000 Received: from localhost ([127.0.0.1]:52284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxtBb-0001td-FN for submit@debbugs.gnu.org; Mon, 28 Jun 2021 11:28:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:49808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxtBX-0001tT-DC for submit@debbugs.gnu.org; Mon, 28 Jun 2021 11:28:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxtBX-00081w-5Z for guix-patches@gnu.org; Mon, 28 Jun 2021 11:28:31 -0400 Received: from mail-be0deu01on20728.outbound.protection.outlook.com ([2a01:111:f400:7e23::728]:64769 helo=DEU01-BE0-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxtBV-0000sV-Bg for guix-patches@gnu.org; Mon, 28 Jun 2021 11:28:30 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g49M1FwwDus1oMTKi538pzu/i06NGEQ9vZOxejLauuqAlRsX+XuC6rDmx+ahXzRuS2HEa2qhZCupHvEmrjv8stIepvl4NCJtT1g1wiKmHow3cUiGSlJFS/gheybqfrx1om9gpDBG7tB+cppELDqrqV388l0isGQtQtX9LDLXzLWDvG4UwCqCUp66bWPKqsm96ToIHiC7poddHvKm2TyuDO/nzjTmvNZ451L+3DNynl2Q9isPR2IRRsRxS0qKHJraO/EJ90JIhEnQxvf5djrIv1/DOxc8V7HjY4CBdS6DK8UW3vxI0HmeGioCwk9b9pQgBpKOgoOx6/Z4J4VxG1ysbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wvxW74fNoix3F7pWTA/maGhubq3hlJDbb4FL7DdlxbU=; b=fRTcjWzAsQa+F5k8ITKccU6wxyPCzwTYPqKjiCS1A/a86Ogkn7WDjFE3oD9WB4uyD6gMIYWp09kNMKyQ1KN8mSB9SN15510/May7kaqz5OY0ADOf2yUgvoa9veDkhiv34pwX4YBoYf6nr3mf9vIx14GtjsmdgW1PkyJuoNVqPoYRElOObq9D/UzByjMkDOzPsrmBJL8WJgjjMb8LtegcqBRsIAS7FnI5e8E9PlcTUoK8FPGKlGOksXWTUFRO/Tt/wExsqdiRzYWGmU9DKJDiDxgJY2RRkl0EKUQM0wthEObc8elDinZvXi1NWjsInPa16hHIX7EbK3djNiaHcwnqfg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stern-data.com; dmarc=pass action=none header.from=stern-data.com; dkim=pass header.d=stern-data.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sternasset.onmicrosoft.com; s=selector1-sternasset-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wvxW74fNoix3F7pWTA/maGhubq3hlJDbb4FL7DdlxbU=; b=DRz2qvQCjBwOmqhj3jKVYBKmPBt2gOstaPRV7dM9/NGXSMy31z5SGtnfo2Rjf0+b8aYdJHkQWFJAP0EFloZ47Tvy1kLF4DTR3r8REBrTPevljc2GDB24o4YP/L2N9AlkM0VL44aXt3MU8LAoGEKsWnOVqUA6rT0wwWsPcHwTJl5g6WNTJnP2TuwafH2uimdXnuJRXeuYedyGsv7dMNCA74ybSM3vw1pU1fV25p6zXT3w28ugvRXTXbE7y+/4rHvTAoGFZaRVhP7k21fFvL5skvz0dAyD6eiXEvxsqEvfMVUwKfny9crqEFc2bfTz64UTNe1X2poReldG1DMBTYGyKw== Authentication-Results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=stern-data.com; Received: from BE0P281MB0034.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:f::11) by BE0P281MB0257.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.14; Mon, 28 Jun 2021 15:23:24 +0000 Received: from BE0P281MB0034.DEUP281.PROD.OUTLOOK.COM ([fe80::b9ef:9f1:8c7c:cb72]) by BE0P281MB0034.DEUP281.PROD.OUTLOOK.COM ([fe80::b9ef:9f1:8c7c:cb72%7]) with mapi id 15.20.4287.021; Mon, 28 Jun 2021 15:23:23 +0000 From: Aljosha Papsch To: guix-patches@gnu.org Subject: [PATCH] Add wondershaper package and service Date: Mon, 28 Jun 2021 17:22:28 +0200 Message-Id: <20210628152232.31073-1-ep@stern-data.com> X-Mailer: git-send-email 2.32.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: PR3P189CA0076.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:b4::21) To BE0P281MB0034.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:f::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a02:908:c39:9d60:ec9b:bd9a:f3b7:625d) by PR3P189CA0076.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:b4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Mon, 28 Jun 2021 15:23:23 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3c9ee8f9-839f-42c8-12b7-08d93a48ab5b X-MS-TrafficTypeDiagnostic: BE0P281MB0257: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UxgKP1WjGWDdbFWLB+2ZdnI3Fy32JZuPEbGMHgPip7VS/roTod9YGk/0p2Q6+MXlAD7ufQF/8VhpdNUDV/gKdy7EEbIiVby94x0AsGWTdTFhsyT+fXh/ba+MeA5/2yeaalcF5zPJuxaRtQ1QqcAm53a7+fAgKjPreHXQLoyg8enHIo/5NEYRq6U/saaS/V0cJKfduCmDRHC0YPs461hz9fIz3Srg8wTGZZSyLnU8rdyEea8gnMwTjT6n9+SnOPj/gczcFKwXPRlOVjc9soaQXZUxkknY3yDpxa8REuyAMOJaNuNu2hLPkjXAp8H7TWE4vc+bK/DIEt3LoF+qBhVl4kmUAaf+shRTeKaee2VMn1YWONoP4M8aceryn+XDgAxisZUh1aFrVLCYOJpPDdDDZPexomYwh3HCpajbCttr9aIfhkn5ws0PEacUiYTzoHn5vvSLVDKzSq9rhTmLqGp+81YdAeC2EVlijeuIrloUtuV1w1SmMEtwFP7x2BfRy2Fww9K25KMS+W7tyKQCM8wRMZLzFpsU0HLgDb8MFxQQ8yqoRGqJqb4mwM4XuH0wpSHApaItaTT0Mu03yaDJoMAO8ZE31H7otbNQmI3EZYorsmZw8u17y9xSA2e36/tFRVrMxmG9cN/ZegYBAWVIp5aZC+0ZLuJ1+FKYnpg1jFUUDsOa448DQCvejnPKg+jmQLpUWddGY90TJp+Yv/jGre1DT6SA839CZKNKYbmf88UwpCWyFSaqdXSQ9wKMwNpay51w19hn1UMMg61cBxylQXvVTQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BE0P281MB0034.DEUP281.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(4636009)(396003)(376002)(366004)(346002)(136003)(39830400003)(83380400001)(186003)(1076003)(6916009)(8936002)(6512007)(66476007)(66556008)(316002)(2906002)(66946007)(2616005)(36756003)(478600001)(52116002)(86362001)(6486002)(5660300002)(8676002)(38100700002)(6506007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?FxP8HpgISt0AziZEjf86c8WHhOq3Id9azJlCU4+4WQnIYoMebeNmgooA+HsV?= =?us-ascii?Q?5xR1MvvXFcO476pBToOfXnPEdA6QQuaisXkdw/VtnOM4a706L3LDgWgAPVn9?= =?us-ascii?Q?+JZ7sEihBswC4Eo8ZFZVJHKxwirjdFbBVseaZoWJ8M0gLWiNA0SfgLB8IwGT?= =?us-ascii?Q?apx439m4rNvn236dkwOR8ni31wcd9eQM3jcxBlXXMQD9i7nIHrla6WQg398U?= =?us-ascii?Q?Rd/l7kAaxqjyILWoiogIYtkbQ94CwNTa3SKLYh0KlioddclQ3sfOxD5yeKjK?= =?us-ascii?Q?0feyRUOEZY462Z/BL/9q0jRnh5eINz9p0Y1K2V2ihuUYlqWAw75Zz+R9zfBx?= =?us-ascii?Q?ueHFSybAXS/xJhYEEGZveMpRPRM9BQg4AX9hAzVvLZHmttBFILWWZcQvYOR+?= =?us-ascii?Q?YftuSRenJoFqXqVIxWUWgZo+9uaBTwg+oi8Wm/FuwzqStV5Qjqw8b4bb+nCP?= =?us-ascii?Q?pjyu6HKE3m/mcHieeW4wqn+PTng8xWF7sf9SJFfAgAELL2sGsJGP3bMlk/3k?= =?us-ascii?Q?w78Tdt4PQZLOEzfajj9wxD4UahPFVEXDuchqzfCRfZRbkkpbmwXVyxobtTKP?= =?us-ascii?Q?rQt5NLK9/o2vFD/WIBFZRrhLOVAbFBtjXwdkHbyHuk6f0IGjqHjvaNYVuDmB?= =?us-ascii?Q?gHsBjrrSVWA19jWXK5ymS6ac92GyBSSjLYlm8utRri3c7TXPBfh06Fj6fNS5?= =?us-ascii?Q?7eed9crZ3BgtUtk7pUd6M99Jwg93zgmOQgiilin8CX2Yp+nE5msqTtPc4Dm3?= =?us-ascii?Q?saBabZyBhCSvEtHxShgCHdmMA5Q3k5HtzAFA9BSjIheW39TDztTN65N1zj07?= =?us-ascii?Q?KaCoHwhcbbbcrfmtVfRbazyTCnwRzTKoSJ0npXVWhoKEzcDKODeECm6so1Uf?= =?us-ascii?Q?1GE2kW9Lkf+9/GAMit9KRMPr9P6k/rW292zhkIjCCaukUGbBF3HElmjd+qb1?= =?us-ascii?Q?O6cDzj0/2HYOdzj3EWUyVRXAQd5yRsep9/nTmUI6nv9iOyGFPE8EfNkHuDmw?= =?us-ascii?Q?icS2Kezd6Xb+7JHvKHm5b+FWCYYsSHky2lfIwwQkVmuf8E4KKU8kDEhJNIb+?= =?us-ascii?Q?bQA8J8kuRRpk8a8oKJNfqrkPIxwaXKcnUaLxd1ls3he5ePU4g2LQzY9xlmLA?= =?us-ascii?Q?WtSDjINOPrF+ZMezFeyxiB5r2/d/Y03A8SYoJnvDjIGFiWNLIxG+z1g8JHnR?= =?us-ascii?Q?iJa5LbrJ7CDZIs4fYIfycGWnsWVPegZJuf7eHO1OrtHoSyrz0p33v62vowMx?= =?us-ascii?Q?3mqFrI4yGhrw2OHZR0s6AjDDWcxPEK1KgKn9ygLAX0ufmfoG1og6DrUlyZ0J?= =?us-ascii?Q?bT7SCV/ijQ20HTfEKLmBrZw3YPRm3JR411R2eFx3uWAstAB0u94yErvncgI4?= =?us-ascii?Q?Lz9VNv9pIZm1Pb47auEcNhnSeI8n?= X-OriginatorOrg: stern-data.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3c9ee8f9-839f-42c8-12b7-08d93a48ab5b X-MS-Exchange-CrossTenant-AuthSource: BE0P281MB0034.DEUP281.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2021 15:23:23.8277 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e55b1d7b-b6d7-445f-a720-8de54d4464ac X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8FgeCYjbeuXBv2MJ/RKchFAIa3fawVrKdhacCcQsTKynlwsawXPUm0kOaevlThESxjrc8LVtrtBEni870BmE5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BE0P281MB0257 Received-SPF: pass client-ip=2a01:111:f400:7e23::728; envelope-from=ep@stern-data.com; helo=DEU01-BE0-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hello Guix! These patches add a package and service for Wonder Shaper, a nice little tool configuring traffic control. The defaults should suffice for desktop usage, with the exception of download-speed and upload-speed, which must be chosen according to your actual speeds. I forked the upstream repository and the package uses the fork. It's not meant as a long lived fork. Currently the tool doesn't provide a way to specify the config file, users are expected to edit the script. A patch is pending upstream (https://github.com/magnific0/wondershaper/pull/68) to add a CLI option but in the meantime wondershaper-service would have to jump through some hoops to specify the options. While at it, I also added two other options for the maximum rate and burst rate for the lowest priority traffic class. My goal is to make data exfiltration harder in a server environment and a custom rate seems just right for that. I plan to send these options upstream as well. If you don't like exposing non-upstream options, an alternative could be to instead expose a list of pairs for arbitrary additional options which get pasted into the configuration file. Best regards Aljosha