Thanks for the thoughtful responses!
I apologize for coming in hot with "yet another AI generated tool" I suspected it would be rubbing a little in the wrong direction. Hence the disclaimer.
I understand, it bothers me too when I see it.
The main reason to be running inside of FreeBSD (for now hopefully) was to be able to access some of the utilities to get stats, like CPU/memory, ARP tables, DHCP registrations, interfaces, etc. But my goal is to move into the API side of things as soon as I can as I understand provides even more data I could leverage. This, after all, is an alpha version and I'm trying to also target pfSense/OpenWRT for those that like to use them (until I can figure out their APIs as well). And maybe after all this, hosting it in a docker container would be the first choice, no root access, can run outside of the router, and I don't have to host my own FreeBSD GitHub runner anymore :D.
I hope that I don't have to depend on more libraries to get this going. So far, the only dependencies are python3-psutil and python3-pycryptodome. I will keep this in mind to reduce my attack surface.
So maybe, after all this, I was 10 years too late...
I apologize for coming in hot with "yet another AI generated tool" I suspected it would be rubbing a little in the wrong direction. Hence the disclaimer.
I understand, it bothers me too when I see it.
Quote from: meyergru on April 01, 2026, 03:16:44 PMI, for instance, would not point curl at any abitrary internet URL, fetch a script and let it execute on my OpnSense - even if I like the idea and could use it.You bring valid security concerns, I offered an easy setup script, but I should have also presented the manual way as well, maybe first. I'm trying to host my own pkg/apk/yum/opk/deb repo inside of GitHub pages so installing the GPG key is a requisite and that script takes care of it. Maybe does not warrant an easy script but yeah.
Quote from: meyergru on April 01, 2026, 03:16:44 PMMy suggestion for you would be to create an OpnSense plugin and try to create a PR for OpnSense. In that case, any further iteration could be controlled by trusted parties and more people would likely use your tool.This was ultimately my goal, but as Monviech suggested, it appeared that a python script would not fly as a candidate. My best approach was to convert it into an executable and publish it using the go-to package managers first. Then maybe look for a plugin, but seems like it's for naught.
Quote from: meyergru on April 01, 2026, 03:16:44 PMThus, you could as well create a docker container that runs independently and does not have to be integrated as executable code into OpnSense, thereby causing no risk at all.I am also offering a docker container for this, but as I understand FreeBSD doesn't support docker, so I think at some point I would like to entertain the idea of providing an OCI-compliant image for Podman which appears to be supported there (more on that later)
The main reason to be running inside of FreeBSD (for now hopefully) was to be able to access some of the utilities to get stats, like CPU/memory, ARP tables, DHCP registrations, interfaces, etc. But my goal is to move into the API side of things as soon as I can as I understand provides even more data I could leverage. This, after all, is an alpha version and I'm trying to also target pfSense/OpenWRT for those that like to use them (until I can figure out their APIs as well). And maybe after all this, hosting it in a docker container would be the first choice, no root access, can run outside of the router, and I don't have to host my own FreeBSD GitHub runner anymore :D.
Quote from: Monviech (Cedrik) on April 01, 2026, 03:21:07 PMI don't mind this being here to be honest, a user who uses the shell as root should know what they are doing (hopefully). I know not all do know the implications, I also like to run simple install scripts on linux after all. I hope for the best xD
We're never safe from supply chain attacks as the current npm thingy shows once more (and did multiple times in the past but nobody is learning :O)
I hope that I don't have to depend on more libraries to get this going. So far, the only dependencies are python3-psutil and python3-pycryptodome. I will keep this in mind to reduce my attack surface.
Quote from: nero355 on April 01, 2026, 04:50:55 PMThere is a point if it's unsupported as of version x.y.z of the UniFi Controller and might not show any statistics at all because of that even tho it's not the actual device !! ;)You are right! Now there seems to be a new UniFi OS something or other, that most likely will kill the USGs. The problem is that I don't have one of those new UCGs and getting one well, I would not have any need for this emulator anymore, or OPNSense for that matter :(
I would suggest emulating something recent like the https://eu.store.ui.com/eu/en/category/cloud-gateways-compact/products/ucg-ultra since it's very likely that it's going to be supported for a long time in the future.
So maybe, after all this, I was 10 years too late...
"