Yes, thanks for the info. I just tried it and the block is done without any problem (using SSHDroid as a server and sftp for connecting. Could you please post informations about your device, like OS, ROM, build, kernel version and baseband? Are you able to call iptables from the shell?
if I understand it correctly, you are running an SSH server on the phone and connecting to it from your PC, right? Then my guess would be the firewall won’t block it, because it works only for outgoing connections. I’ll ask if we could do something about it, but I don’t promise anything.
I just tried it and it is indeed not blocked, for the reason I wrote earlier. It might be possible to block incoming connections for the custom rules, but right now it’s not implemented and unfortunately I can’t give you any timeframe, sorry.
Anyway, our Firewall doesn’t show you a notice when some app is trying to make a connection. It’s rule based and those rules can’t be changed “on the fly” as apps are making connections. You always have to go to the Firewall sections of AMS and set the rules there.