I use Lil Snitch in macOS/OS X. It is basically a GUI packet filter/firewall that sends alerts as connections are made/attempted. You can choose to allow traffic by port/IP/domain.
Is there a similar Linux application? I currently split my time between macOS and Linux. I am comfortable in Linux cli and can configure a firewall/pf but I don’t know of a good gui app similar to Lil Snitch.