I know that Android is based on Linux . In addition, I know PHP quite well and I think PHP for Linux is the right choice (correct me if I am wrong).
Many days ago I ran into a problem. The problem was and is how to manage packages using PHP code? Can i do this?
Let me tell you further. To connect to the network, we have network interfaces (see /sys/class/net
). There are many interfaces in Android, such as wlan0 (for my case). Used for wireless connections such as WiFi and a WiFi modem.
After much research, I found a Linux command called tc (Traffic Control), which is used to manage network packets. However, I do not know how to use this command to control the bandwidth of each connected device to my WiFi access point. I want to set quotas for everyone and, if they reach them, I will not allow them to use my Internet. I want to use PHP for this purpose. How to do it? (Sorry, but I'm a little new to Linux!)
Note. I want to limit the number of users by MAC address, not by IP address.
source
share