Hi Guys ! how are you ? i hope Great
so lets start!
do you use Cloudflare and Your Real IP Incover By cemsys or sodan or other scan systems ?
It has a very simple solution
- open your linux Terminal
- type
Follow the instructions and implement them well
first command
iptables -I INPUT 1 -p tcp -m multiport --dports http,https -j DROP
while read ip ; do iptables -I INPUT -p tcp -m multiport --dports http,https -s "$ip" -j ACCEPT ; done <<< "$(curl https://www.cloudflare.com/ips-v4)"
iptables-save
if you reboot server
show ip again
how fix save the rules even after rebooting
install this
apt-get install iptables-persistent
iptables-save > /etc/iptables/rules.v4
cat /etc/iptables/rules.v4
and reboot server and check and enjoy