The guy who wrote
ufw is too smart for me. Is there any documentation for any of the python code?
Some things I'm trying to do are:
- Allow/close ports by number
- Get the currently set rules
- Remove rules
My question wasn't specific enough. Everyone here is assuming that I somehow want to reinvent my own interface to iptables, or make some kind of firewall application, when really, I'm just creating a simple ui for ufw that fits into my current application. However, the current state of the
ufw python code base makes this a lot harder than it needs to be.
iptables. That's your point to start if you're developing your software.