how to write iptable block rule in the /etc/iptables/rules.v4?
I can block some ip to link my vps in command line :
sudo iptables -A INPUT -s [IP ADDRESS] -j DROP
how to write the iptable block rule in the /etc/iptables/rules.v4?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.