No reverse Internet traffic on tethering interface

  • Hi,

    I'm running LibreELEC (official): 9.2.6 on Raspberry Pi 3 Model B Rev 1.2.

    I have an STB next to my RPi which doesn't have Wi-Fi, so I want to share Internet to it through the Ethernet interface of the RPi.

    My home network is 192.168.1.0/24

    The tethered network is 192.168.0.0/24

    The device behind the RPi is getting IP and can reach ALL devices in the LAN. However, there is no Internet access and the problem seems to be in the RPi which for some reason is not passing back the returning traffic to the tether/eth0.

    I installed the network tools addon and I ran tcpdump. The NAT is working properly. I see that the returning traffic from the Internet is hitting wlan0, but is not going out through eth0/tether.

    Here are some outputs:

    Code
    LibreELEC:~ # tcpdump -i tether -n -nn host 1.1.1.1
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on tether, link-type EN10MB (Ethernet), capture size 262144 bytes
    00:19:23.103098 IP 192.168.0.3 > 1.1.1.1: ICMP echo request, id 1, seq 211, length 40
    00:19:27.729353 IP 192.168.0.3 > 1.1.1.1: ICMP echo request, id 1, seq 212, length 40
    00:19:32.732445 IP 192.168.0.3 > 1.1.1.1: ICMP echo request, id 1, seq 213, length 40
    ^C
    3 packets captured
    Code
    LibreELEC:~ # tcpdump -i wlan0 -n -nn host 1.1.1.1
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on wlan0, link-type EN10MB (Ethernet), capture size 262144 bytes
    00:19:42.731694 IP 192.168.1.10 > 1.1.1.1: ICMP echo request, id 1, seq 215, length 40
    00:19:42.747546 IP 1.1.1.1 > 192.168.1.10: ICMP echo reply, id 1, seq 215, length 40
    00:19:42.747647 IP 192.168.1.10 > 1.1.1.1: ICMP time exceeded in-transit, length 68
    00:19:47.745308 IP 192.168.1.10 > 1.1.1.1: ICMP echo request, id 1, seq 216, length 40
    00:19:47.759697 IP 1.1.1.1 > 192.168.1.10: ICMP echo reply, id 1, seq 216, length 40
    00:19:47.759917 IP 192.168.1.10 > 1.1.1.1: ICMP time exceeded in-transit, length 68

    As you can see in the end, for some reason the RPi returns TTL expired and can't send the traffic back to the tether... And this is happening only for Internet IP Addresses. Pinging my edge router - 192.168.1.1 works just fine.

  • What is the output of the command : route

    Code
    route 
    Table de routage IP du noyau
    Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
    default         _gateway        0.0.0.0         UG    0      0        0 wlan0
    192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
    _gateway        0.0.0.0         255.255.255.255 UH    0      0        0 wlan0
    192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 tether

    Do you have that ?