After googling several sites and browsing through the [man page], I still come up short with an exact definition of the syntax of the application profiles for ufw rules.
All examples you find of the web are really simple ones and don't reflect a little more complexity than simply opening a port.
Specifically, I need to allow my ufw to accept incoming and outgoing connections on a variety of ports, tcp and udp mixed, on specific interfaces to and from specified IP addresses.
Assume the following example:
Allow incoming connections on eth0 from 22.214.171.124:12345 tcp and 126.96.36.199:54321 udp allow outbound connections via eth1 to 188.8.131.52:11111 tcp and udp
While the syntax for defining such rules on the console is really simple, I have found no example or specification of how to define such rules in an app profile.