You are reading a single comment by @aggi and its replies. Click here to read the full conversation.
  • You need your phone's hotspot to perform NAT and DHCP. Android devices used to do this by default, until the mobile networks bullied Google into changing the defaults so that devices connected to the hotspot were essentially joining your provider's network.

    Easy to fix on rooted devices.

    They also inspect the traffic; we used to be able to stream Amazon Video to our hearts' content on a Linux laptop tethered to an Android phone with a 3 SIM, whilst trying to browse on a Windows laptop would redirect to the "Your package doesn't include tethering" page. They learnt to detect Linux laptops about a year ago. Not sure if this was by looking at the user agent string sent by the browser, but we're not reliant on tethering at home any more.

  • How do you do this on a rooted phone? The solutions I looked at involved editing some files (I can't remember which) but it didn't work.

  • I think these commands should route tethered devices' traffic into the phone's default VPN:

    iptables -t filter -F FORWARD
    iptables -t nat -F POSTROUTING
    iptables -t filter -I FORWARD -j ACCEPT
    iptables -t nat -I POSTROUTING -j MASQUERADE

    But I have no way of testing this.

About

Avatar for aggi @aggi started