need4swede / Portall

Port Management Interface
MIT License
309 stars 5 forks source link

Feature request: scheduled nmap scans #26

Open jamess60 opened 1 month ago

jamess60 commented 1 month ago

I have a couple of vms I use to run my docker containers. As I spin up/shut down containers, my ports may change. I propose the ability to schedule nmap scans and update known hosts accordingly.

So far, I had good success with using chatgpt to convert nmap output to json input and using the import feature, but obviously this is a manual process.

Idleite commented 1 month ago

The docker integration will auto update when finished

jamess60 commented 1 month ago

The docker integration will auto update when finished

Can you elaborate? What do you mean by this?

Idleite commented 1 month ago

The docker integration in pr6 will allow you to define a list of docker hosts with their sockets. You can then set it up to check the docker sockets at and hourly or daily basis. This is still being worked on but, local docker import works but must be triggered manually

jamess60 commented 4 weeks ago

Ah I see, my bad, I did see this feature.

The nmap idea would allow you to scan the entire lan though, not just docker sockets. This would be useful for things like printers, iot devices etc

need4swede commented 2 weeks ago

This would be a fun thing to tackle, but it's not a priority at this time. As the app continues to evolve, there's room for additional features in the form of 'Plugins'. At this moment, there are a few plugins being developed, but the manner in which they are written and integrated is a bit of a process - one I hope to remedy in future releases. This does, however, delay the development of any additional features beyond those already in discussion, until a more robust, scalable solution is formed to pave the way for future additions.

Thanks for the suggestion, though! I will keep it open for now. Cheers!

jamess60 commented 2 weeks ago

Actually, a plugin format is not only a neat idea, but would also integrate well with the nmap idea. Could have a plugin that runs nmap and converts the txt output to json (shouldnt be difficult with python)