• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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