This script helps you to open all necessary ports to run Plesk 17.5+ on strictly restricted Centos/RHEL servers (for example on vultr).
Since I ran many Plesk test installations on my vultr servers, I created a script which fast opens all ports required by Plesk and its services on the strict Centos firewall.
If you have troubles reaching services or the Plesk-Webinterface after installation on Centos 7 or RHEL 7, try to run this script.
I recommend to do this after the Plesk installation.
- Login as root.
- Copy the script-file on your Centos/RHEL machine.
- Set the run-permissions:
chmod +x fwplesk.sh
- Run it:
./fwplesk.sh
All listened Linux ports, recommended by plesk:
Except:
- FTP passive ports
- 10155 (for a custom Plesk Migrator service performing miscellaneous)
This script does not support passive ports right now.
Read the Plesk article here:
https://support.plesk.com/hc/en-us/articles/213902285
Yes, TCP and UDP ports are stored separately in an array. For example if you want to add port 1337 as UDP port, just edit the udpports-array from:
udpports=( 53 )
to
udpports=( 53 1337 )