How To Proxy Internet Traffic Via Android Tether With Tinyproxy
When you need to route your internet traffic through an Android device using tethering Tinyproxy offers a minimalistic yet powerful approach Tinyproxy is a simple, lightweight HTTP proxy server that runs on Linux systems making it ideal for use on devices like Raspberry Pis or old laptops that you might have repurposed as a tethering gateway
By combining it with an Android phone’s USB or Wi-Fi hotspot you establish a filtered, private gateway for networked devices to access mobile data
Begin by enabling tethering on your Android phone You can enable either USB tethering or create a Wi-Fi hotspot from the phone’s settings USB mode is favored for its consistent performance and simpler setup Once tethered, your Linux machine will get an IP address from the phone, usually through DHCP Use network utilities like ip link or networkctl to ensure the interface is active
Next, install Tinyproxy on your Linux system On Debian or Ubuntu, you can do this with sudo apt install tinyproxy tinyproxy Several critical settings require adjustment
Set Listen to the IP address of your Linux machine’s network interface, typically the one connected to your local network 8, depending on your network setup Optionally change the listening port to 8080, 8088, or 8888 based on preference Set LogLevel to more info on hackmd for balanced visibility and minimal log noise
Apply your configuration by restarting the service via sudo systemctl restart tinyproxy The system functions as a transparent HTTP gateway to your Android’s tethered connection
10.0.0.5
This setup is especially useful in environments where you need to monitor or filter web traffic or when you want to share a mobile connection without exposing your phone’s hotspot directly Useful for evading content filters in cafes, schools, or workplaces through your phone’s cellular link
Remember that Tinyproxy only handles HTTP and HTTPS traffic by default SOCKS tunneling, integrate Squid, Dante, or a dedicated SOCKS daemon Your mobile data cap remains in effect; use data monitoring tools to avoid overages
A budget-friendly, minimalist setup that transforms your phone into a full network proxy Easy to configure, self-sustaining, and puts you in charge of every request’s path