You can use ufw package to block incoming traffic at a port, then you won't have to work with iptables
Indeed, but I'm used to doing it from the iptables software itself. 😄
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.