Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 913BD79CC for ; Sun, 18 Aug 2024 13:45:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.254.12.146 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723988726; cv=none; b=ldxgQbAdxkaGRLnDJWlARU1MAMNTSC+6TKBZqUP2KaSBSCzC9JzNfSb5dPkTk0Vfq385NN7nCOrC1uWHyDZIjPL1Vu4fyA+FiR3mHWSVfEzWETFnuxIYR2JhgoJhZIa2psry4OyWi1JzMkm8mfgkFf/qOetM9XQqDyWPT+0hb0U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723988726; c=relaxed/simple; bh=3SNi6zuyff/u0tUzmxWDzqkijHbYeAkHQa+mJMQlI/I=; h=From:Subject:Date:Message-ID:To; b=Hv9IuTtrH2L1Kt54GyudlHARt0e4SqApiKYrViZn8yMAgikWNuh+5rL1ASI91jsdvhVR2cUYLLJmOBqPG+/eFujV4Oq6AfTP5IxIvtvx7oJwOIPqw7UQB/vb8eo4ID7cpEBGSm6o3gMDApKWUAY7zmeFumvnxUUdti0e/14nV7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lilliput.linux.it; spf=pass smtp.mailfrom=lilliput.linux.it; arc=none smtp.client-ip=213.254.12.146 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lilliput.linux.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lilliput.linux.it Received: by picard.linux.it (Postfix, from userid 10) id C7EC53D225A; Sun, 18 Aug 2024 15:40:03 +0200 (CEST) Received: from news by eraldo.lilliput.linux.it with local (Exim 4.92) (envelope-from ) id 1sfg4f-00022D-S7 for lartc@vger.kernel.org; Sun, 18 Aug 2024 15:36:01 +0200 From: Marco Gaiarin Subject: Balancing and newer kernels... Date: Sun, 18 Aug 2024 15:32:00 +0200 Organization: Il gaio usa sempre TIN per le liste, fallo anche tu!!! Message-ID: X-Trace: eraldo.lilliput.linux.it 1723987929 7714 192.168.1.45 (18 Aug 2024 13:32:09 GMT) X-Mailer: tin/2.6.4-20240224 ("Banff") (Linux/6.8.0-40-generic (x86_64)) X-Gateway-System: SmartGate 1.4.5 To: lartc@vger.kernel.org Precedence: bulk X-Mailing-List: lartc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: See if this list is still alive. ;-) By some year i use two internet connection (one FTTH, one wireless) both using PPPoE; i've recently upgrade my firewall machine from debian buster to debian bullseye and some trouble start to arise. I don't use balancing, but fallback. But still on buster firewall i was able to use properly both interface, if correctly source routed. I setup interfaces as: /usr/sbin/ip route flush table EOLO /usr/sbin/ip route replace 88.149.137.22/32 dev ppp0 src 88.149.137.22 table EOLO /usr/sbin/ip route replace default via 10.1.1.1 table EOLO /usr/sbin/ip route replace 127.0.0.0/8 dev lo table EOLO /usr/sbin/ip route replace 192.168.0.0/21 dev ens18 table EOLO /usr/sbin/ip rule replace from 88.149.137.22 table EOLO /usr/sbin/ip route replace 88.149.128.0/24 dev ppp0 src 88.149.137.22 via 10.1.1.1 /usr/sbin/ip route replace unreachable 88.149.128.0/24 metric 100 /usr/sbin/iptables -t mangle -I rt-post-prer -i ppp0 -j MARK --set-mark 16/0x00f0 /usr/sbin/ip rule replace fwmark 16/0x00f0 table EOLO /usr/sbin/ip route flush table Tramatronics /usr/sbin/ip route replace 95.230.223.3/32 dev ppp1 src 95.230.223.3 table Tramatronics /usr/sbin/ip route replace default via 192.168.100.1 table Tramatronics /usr/sbin/ip route replace 127.0.0.0/8 dev lo table Tramatronics /usr/sbin/ip route replace 192.168.0.0/21 dev ens18 table Tramatronics /usr/sbin/ip rule replace from 95.230.223.3 table Tramatronics /usr/sbin/ip route replace 85.38.28.0/24 dev ppp1 src 95.230.223.3 via 192.168.100.1 /usr/sbin/ip route replace unreachable 85.38.28.0/24 metric 100 /usr/sbin/iptables -t mangle -I rt-post-prer -i ppp1 -j MARK --set-mark 32/0x00f0 /usr/sbin/ip rule replace fwmark 32/0x00f0 table Tramatronics and current default gateway is: default via 192.168.100.1 dev ppp1 But for example: root@vfwlpb1:~# ping -I ppp0 8.8.8.8 PING 8.8.8.8 (8.8.8.8) from 88.149.137.22 ppp0: 56(84) bytes of data. ^C --- 8.8.8.8 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1019ms but if i try to ping where i've an explicit route (DNS servers): root@vfwlpb1:~# ping -I ppp0 88.149.128.12 PING 88.149.128.12 (88.149.128.12) from 88.149.137.22 ppp0: 56(84) bytes of data. 64 bytes from 88.149.128.12: icmp_seq=1 ttl=59 time=40.0 ms 64 bytes from 88.149.128.12: icmp_seq=2 ttl=59 time=74.8 ms 64 bytes from 88.149.128.12: icmp_seq=3 ttl=59 time=19.7 ms ^C --- 88.149.128.12 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 19.658/44.794/74.750/22.747 ms What i'm missing? Thanks. --