Plesk 17.5+ firewall opener for Centos/RHEL OS
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:
Which ports will be opened?
All listened Linux ports, recommended by plesk:
- FTP passive ports
- 10155 (for a custom Plesk Migrator service performing miscellaneous)
How can I open FTP passive ports?
This script does not support passive ports right now.
Read the Plesk article here:
Can I add additional ports?
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 )
udpports=( 53 1337 )