Balancing and newer kernels...
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.
Mandi! Marco Gaiarin
In chel di` si favelave...
Quoted 2 lines
/usr/sbin/iprule replace from 88.149.137.22 table EOLO/usr/sbin/iprule replace fwmark 16/0x00f0 table EOLO
Stupid me; 'ip rule' does not have a 'replace'... sorry to all. ;-)
Quoted 1 line · Marco Gaiarin
Stupid me; 'ip rule' does not have a 'replace'... sorry to all. ;-)
It happens.
Read: This was only a test of the mailing list. Results are still pending.
Signature · 2 lines
Grant. . . . unix || die