I found that OpenSnitch
is an excellent Firewall app for Linux and the good alternative of Glasswire.
It uses your own application rules and an automatic notification popup asking you to allow or deny an app connection, when the connection appeared in network.