You can do this by installing OpenWRT on the Pi and controlling it from the web interface.
But this is a Pi Pico, which is a microcontroller and not a Linux system.
But this is a Pi Pico, which is a microcontroller and not a Linux system.