Ok, I started implementing this. Rather than calling it 'ufw list', I added the functionality as a 'show' subcommand. Eg:
$ /usr/sbin/ufw show added
Added rules (user):
ufw allow 22
ufw allow to 192.68.0.2
ufw allow 23
ufw allow 24
ufw allow to ::1
Note that because this is generated via parsing the /lib/ufw/user*.rules file, the reconstructed order is an approximation of the actual order (but equivalent).
Ok, I started implementing this. Rather than calling it 'ufw list', I added the functionality as a 'show' subcommand. Eg:
$ /usr/sbin/ufw show added
Added rules (user):
ufw allow 22
ufw allow to 192.68.0.2
ufw allow 23
ufw allow 24
ufw allow to ::1
Note that because this is generated via parsing the /lib/ufw/ user*.rules file, the reconstructed order is an approximation of the actual order (but equivalent).