• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved unknown domains point to my ip

andre_c

New Pleskian
Good evening, from the IP query, there are 2 domains that are not registered in the plesk backend and that I would like to inhibit as they are not authorized. Would there be a way?
 
These iptable rules will create peace and quiet for the domain. Please replace “DOMAIN.TLD” with the actual domain name.

Code:
# iptables -I INPUT 1 -p tcp -m multiport --dports 80,443,7080,7081,8443,8447 -m string --algo bm --string "DOMAIN.TLD" -j REJECT --reject-with tcp-reset
# iptables -I FORWARD 1 -p tcp -m multiport --dports 80,443,7080,7081,8443,8447 -m string --algo bm --string "DOMAIN.TLD" -j REJECT --reject-with tcp-reset
# iptables -I OUTPUT 1 -p tcp -m multiport --dports 80,443,7080,7081,8443,8447 -m string --algo bm --string "DOMAIN.TLD" -j REJECT --reject-with tcp-reset

The "#" is not part of the command, but means to run the command as root.
 
Back
Top