I've written two Python (2.x) scripts to perform the following:
- Custom Proxy server (imports optparse, ConfigParser, TLDextract, SocketServer...)
- Web admin for proxy (imports flask, ConfigParser, netifaces...)
These are both currently running on a Raspberry pi (Raspian), however I'm seeking some advice on some options on how to get these to run on a DDWRT router (v24).
My thoughts are either:
Install python and required libraries on DDWRT. Whilst I have found some evidence that python can be installed via ipkg (on USB storage) I'm not clear how to get the required imported libraries installed too?
Create a python-independent binary (e.g. PyInstaller) to run on DDWRT. I have hesitations going down this path as I imagine that I'd need to perform the task on a DDWRT running Python (i.e. back to thought 1), and also how it would handle the imported libraries?
Similar to point 1: Compile a custom OpenWRT image which includes all required Python packages. This does seem like a complex piece of work.
Appreciate any advise that you may have.