Ysurac / openmptcprouter

OpenMPTCProuter is an open source solution to aggregate multiple internet connections using Multipath TCP (MPTCP) on OpenWrt
https://www.openmptcprouter.com/
GNU General Public License v3.0
1.72k stars 252 forks source link

WAN5 not passing any traffic at all. #3432

Open mattfaraday opened 4 days ago

mattfaraday commented 4 days ago

Expected Behavior

Adding a new WAN interface with DHCPv4 I would expect that traffic would be passed down this interface as well and it would add to the aggregate speed.

Current Behavior

The interface is not being used for anything, the speed shows as kilobytes (It's capable of over 200mbit when I speed test the link directly - as in not via OMR - but OMR just seems to ignore this link. In the system log I see

Jul 1 22:02:31 OpenMPTCProuter user.notice post-tracking-001-post-tracking: wan5 (eth5) switched off because check error, interface have no IPv6, interface have no IPv6 gateway and ping from 192.168.130.52 error (114.114.114.114,1.1.1.1,4.2.2.1) Jul 1 22:02:31 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Delete default route to 198.244.188.165 dev eth5

I don't understand the problem with IPv6 because the ISP does not give an IPv6 IP only IPv4 and this WAN5 interface is configured as DHCPv4 (I have to, i don't know what IP it will get). The interface seems to me to be configured in the same way the other WAN interfaces are configured

config interface 'wan5' option proto 'dhcp' option device 'eth5' option multipath 'on' option addlatency '0' option metric '14' option ipv6 '0' option defaultroute '0' option peerdns '0' option delegate '0'

Steps to Reproduce the Problem

  1. Install OMR.
  2. Add a WAN5 with DHCP , Enable Multipath TCP on it
  3. Test speed. Observe no data sent on WAN5

Context (Environment)

I would like to use WAN5.

Testing the link via CLI works

root@OpenMPTCProuter:~# omr-test-speed eth5 Best server is http://lon.download.datapacket.com/10000mb.bin, running test: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 2 9536M 2 227M 0 0 14.7M 0 0:10:44 0:00:15 0:10:29 14.8M

but in OMR

Screenshot 2024-07-02 000357

Specifications

Thank you for any assistance.

Ysurac commented 3 days ago

What is the result of ping -B -I eth5 1.1.1.1 ?

mattfaraday commented 2 days ago

Hi. As requested:

root@OpenMPTCProuter:~# ping -B -I eth5 1.1.1.1 PING 1.1.1.1 (1.1.1.1) from 192.168.10.101 eth5: 56(84) bytes of data. 64 bytes from 1.1.1.1: icmp_seq=1 ttl=55 time=18.9 ms 64 bytes from 1.1.1.1: icmp_seq=2 ttl=55 time=15.5 ms 64 bytes from 1.1.1.1: icmp_seq=3 ttl=55 time=18.9 ms 64 bytes from 1.1.1.1: icmp_seq=4 ttl=55 time=18.0 ms

I'm going to be re-installing it either today or tomorrow so I will update if it's still an issue.

mattfaraday commented 2 days ago

Hi

I re-installed just now. WAN 5 still not passing any traffic, on a newly re-installed openmptcprouter and also a new VPS too (Linode).

image

log entries pertaining to that interface:

matfar@ASH:~$ cat file.txt  | grep -i eth5
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: Network device 'eth5' link is down
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: Network device 'eth5' link is up
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: wan5 (27615): Command failed: ubus call network.interface notify_proto { "action": 1, "command": [ "udhcpc", "-p", "\/var\/run\/udhcpc-eth5.pid", "-s", "\/lib\/netifd\/dhcp.script", "-f", "-t", "0", "-i", "eth5", "-x", "hostnam
Jul  3 21:09:04 OpenMPTCProuter user.notice MPTCP: Set eth5 to on from eth5 is deactivated
Jul  3 21:09:07 OpenMPTCProuter user.notice firewall: Reloading firewall due to ifup of wan5 (eth5)
Jul  3 21:09:36 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Routes not correctly set for wan5 (eth5 table 14) with IPs 192.168.10.102
Jul  3 21:09:37 OpenMPTCProuter user.notice post-tracking-020-status: New public ip detected for wan5 (eth5): [REDACTED](First public IP detected)
Jul  3 21:09:39 OpenMPTCProuter user.notice post-tracking-020-status: Reload MPTCP for eth5
matfar@ASH:~$ cat file.txt  | grep -i wan5
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: Interface 'wan5' is now down
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: Interface 'wan5' is disabled
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: Interface 'wan5' has link connectivity loss
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: Interface 'wan5' has link connectivity
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: Interface 'wan5' is enabled
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: Interface 'wan5' is setting up now
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: Interface 'wan5' has link connectivity loss
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: Interface 'wan5' has link connectivity
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: wan5 (27615): Command failed: ubus call network.interface notify_proto { "action": 1, "command": [ "udhcpc", "-p", "\/var\/run\/udhcpc-eth5.pid", "-s", "\/lib\/netifd\/dhcp.script", "-f", "-t", "0", "-i", "eth5", "-x", "hostnam
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: Interface 'wan5' is now down
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: Interface 'wan5' is setting up now
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: wan5 (27715): udhcpc: started, v1.36.1
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: wan5 (27715): udhcpc: broadcasting discover
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: wan5 (27715): udhcpc: broadcasting select for 192.168.10.102, server 192.168.10.1
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: wan5 (27715): udhcpc: lease of 192.168.10.102 obtained from 192.168.10.1, lease time 86400
Jul  3 21:09:03 OpenMPTCProuter daemon.notice netifd: Interface 'wan5' is now up
Jul  3 21:09:07 OpenMPTCProuter user.notice firewall: Reloading firewall due to ifup of wan5 (eth5)
Jul  3 21:09:36 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Routes not correctly set for wan5 (eth5 table 14) with IPs 192.168.10.102
Jul  3 21:09:37 OpenMPTCProuter user.notice post-tracking-020-status: New public ip detected for wan5 (eth5): [REDACTED] (First public IP detected)
Ysurac commented 1 day ago

Seems that there is problems on this interface: Link connectivity loss lean that the cable is removed from the interface. As it's a proxmox, check on it what can be the problem.

mattfaraday commented 1 day ago

Hi

The proxmox interface is configured the same as the others, i think those logs are because i had just booted it perhaps. but even if i create a new interface, it's the same problem. The proxmox server has a LACP trunk and all the interfaces are actually VLANs.

image

I have a spare compatible hardware router, i will try it here instead, but it doesn't have 5 interfaces so i'll have to use a VLAN for at least one of them.