Article ID: 391, created on May 10, 2012, last review on Jun 20, 2016

  • Applies to:
  • Plesk for Linux/Unix
  • Plesk for Windows

解决方案

通常需要打开哪些端口取决于在服务器上运行的服务。

Plesk 和其相关服务可能使用的端口列举如下:

#20 ftp-data (TCP)
#21 ftp (TCP)
#22 ssh (TCP)
#25 smtp (TCP)
#53 dns (TCP 和 UDP)
#80 http (Web 服务器和 Plesk updater) (TCP)
#106 poppassd (仅用于 localhost) (TCP)
#110 pop3 (TCP)
#113 auth (TCP)
#143 imap (TCP)
#443 https (TCP)
#465 smtps (TCP)
#587 邮件信息提交 (TCP)
#990 ftps (TCP) 
#993 imaps (TCP)
#995 pop3s (TCP)
#1433 mssql (TCP) - 仅 Windows
#3306 mysql (TCP)
#3389 rdp (TCP) - 仅 Windows
#5224 (仅发送连接)plesk-license-update (TCP)
#5432 postgres (TCP) - 仅 Linux
#6489 plesk 迁移代理 (TCP) - 仅 Windows
#8401 sqladmin (TCP) - 仅 Windows
#8443 plesk-https (TCP)
#8447 autoinstaller (TCP)
#8880 plesk-http (TCP)
#12768 psa-pc-remote (for localhost only) (TCP) - Linux only, Postfix
#135, 139, 445 (TCP) ports for migration - Windows Only
#137, 138 (UPD) ports for migration - Windows Only
#10155 (TCP) for a custom Plesk Migrator service performing miscellaneous tasks - Windows Only
#10156 (TCP) for rsync server(migration) - Windows Only

12.0 版本起:

#4190 dovecot (TCP)
#6308 sw-cp-server (TCP)

12.5.30 版本起用于迁移:

#135, 139, 445 (TCP) ports for migration - Windows Only
#137, 138 (UPD) ports for migration - Windows Only
#10155 (TCP) for a custom Plesk Migrator service performing miscellaneous tasks - Windows Only
#10156 (TCP) for rsync server(migration) - Windows Only
#1434 (TCP) and all (or manually selected) TCP ports for MS SQL, if it is used as a named instance

9.010.2 版本:

#11443 sw-cp-serverd (TCP)- 仅 Linux
#11444 sw-cp-serverd (TCP) - 仅 Linux

iptables 命令可用于打开端口。例如:

    iptables -A INPUT -p tcp --dport 21 -j ACCEPT

其它信息:

0。您需要为 FTP 打开并配置 PassivePorts#119525

  1. 不能访问这些端口可在 /etc/hosts.deny 中拒绝来实现。如果 /etc/hosts.deny 包括常规的访问规则,则应该为所有提及的端口(仅接受接入连接的端口)将明确允许的规则放置到 /etc/hosts.allow 中。

  2. 在 Plesk 服务器和外部网络之间的任何中间防火墙/路由也应该应用相同的规则。

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 29d1e90fd304f01e6420fbe60f66f838 85a92ca67f2200d36506862eaa6ed6b8

Email subscription for changes to this article