• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Firewall not generating rules correctly

TheBug

New Pleskian
Hi,

I am using the plesk firewall and trying to set up SSH rule which only allows from my IP but deny from everywhere else.
In previous versions this worked fine by adding an ip selecting Allow from selected sources, deny from others and the icon in the rules would be orange with the lines

allow incoming from xxx.xxx.xxx.xx
Deny incoming from all others

However this no longer works as the deny from all others is not appearing and is not being generated in the iptables by plesk.
How can I fix this?

Thanks
 
You might consider adding these lines over the command prompt:

Code:
iptables -A INPUT -i eth0 -s XXX.XXX.XXX.XXX --dport 22 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i eth0 -j DROP

With these modifications, you have to add a rule for each allowed IP ( XXX.XXX.XXX.XXX ), the rest will be dropped. Please be carefull with this setting, because a false entry might lock you out completly. Think about adding the server ip(s) as well as 127.0.0.1/32 . Depending on your OS, you might as well consider reading the man pages for iptables.
 
Back
Top