Steve Pheriche
New Pleskian
I'm attempting to recover Plesk access after a RAID death, and that broader issue is covered here
This is regarding the Firewall - My supplier is keen to help recover access to Plesk, but I'd previously used the Firewall to block port 22 for most people.
Now I need to add a rule to allow the supplier into 22. I can't access Plesk GUI (as detailed in the other thread) so I'm trying via the CLI .
according to : How to manage Plesk firewall via CLI?
this should work - /usr/local/psa/bin/modules/firewall/settings -e
but the issue with Plesk means I cant actually run the instruction. It returns
Any ideas on how I can allow an IP to access port 22 . How can I edit the ruleset?
currently I'm stuck with this (/usr/local/psa/bin/modules/firewall/settings)
This is regarding the Firewall - My supplier is keen to help recover access to Plesk, but I'd previously used the Firewall to block port 22 for most people.
Now I need to add a rule to allow the supplier into 22. I can't access Plesk GUI (as detailed in the other thread) so I'm trying via the CLI .
according to : How to manage Plesk firewall via CLI?
this should work - /usr/local/psa/bin/modules/firewall/settings -e
but the issue with Plesk means I cant actually run the instruction. It returns
Code:
/usr/local/psa/bin/modules/firewall$ /usr/local/psa/bin/modules/firewall/settings -e
[2018-02-02 13:55:12] ERR [panel] Cannot save cli call statistic DB query failed: SQLSTATE[HY000]: General error: 1467 Failed to read auto-increment value from storage engine, query was: INSERT CliCallsStat (`util`, `command`, `lastExecutionDateTime`) VALUES (:util, :command, now()) ON DUPLICATE KEY UPDATE `count` = `count` + 1, `lastExecutionDateTime` = now()
DB query failed: SQLSTATE[HY000]: General error: 1467 Failed to read auto-increment value from storage engine, query was: replace into module_firewall_objects (`tag`, `object`) values (:tag, :object)
Any ideas on how I can allow an IP to access port 22 . How can I edit the ruleset?
currently I'm stuck with this (/usr/local/psa/bin/modules/firewall/settings)
Code:
...
apply_rule /sbin/ip6tables -A INPUT -p tcp --dport 22 -s ::ffff:999.999.999.999 -j ACCEPT
apply_rule /sbin/ip6tables -A INPUT -p tcp --dport 22 -j DROP
apply_rule /sbin/iptables -A INPUT -p tcp --dport 22 -j DROP