Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to block an IP address in Plesk Firewall?
Answer
- Log in to Plesk.
-
Go to Tools & Settings > Firewall.
Note: If Firewall is not available, install it using the instructions from this KB article.
- Verify that firewall protection is enabled.
- Click
to add a new rule.
-
Fill in the Name of the rule field, set Match direction according to the requirements and choose Deny in the Action field:
-
Set the port or the port range, mark TCP or UDP protocol according to the needs and click Add. Added ports will appear in the table on the left side:
Note: Leave the field empty to block access to all ports.
-
Add the required IP address to field Add IP address or network: and click Add. The added IP addresses will appear in the table on the left side:
- Click OK.
- Click Apply Changes.
- Log in to Plesk.
- Go to Tools & Settings > Firewall.
- Verify that firewall protection is enabled.
- Switch to Firewall Rules tab.
- Click
to add a new rule.
-
Make sure the checkbox Turn on the rule is active. Fill in the The rule name field, set Profile according to the profile of the network interface (mark all of them if there are no confidence of which profile is in use):
- Choose Deny in the Action field, set the port or the port range, mark TCP or UDP protocol according to the needs:
-
Note: Leave the field empty to block access to all ports.
-
Add the required IP address to field Add IP address or network: and click Add. The added IP addresses will appear in the table on the left side:
- Click OK.
Additional Information
Examples:
Match Direction: Incoming
Action: Deny
Ports:
- TCP 80
- UDP 80
- TCP 443
- UDP 443
Sources: 203.0.113.2
Match Direction: Incoming
Action: Deny
Ports:
- TCP 25
- UDP 25
- TCP 465
- UDP 465
Sources: 203.0.113.2
Comments
If you wanted to block incoming mail, wouldn't you use 110, 143, 993 and 995, rather than 25 and 465? Aren't those are outgoing ports?
Please sign in to leave a comment.