0

服务器详细信息:具有 4 GB Ram 和 2 核操作系统的 AWS Lightsail 版本:Debain 9.12(延伸)

我添加了我的静态 IP 3.6。*。在 DNS 记录中 - A、CNAME、TXT、MX、SRV 在 AWS 中设置主机名一旦我重新启动 /etc/hosts 文件恢复为默认值,所以首先我编辑 sudo nano /etc/cloud/cloud.cfg 并将参数“preserve_hostname”从“false”设置为“true”并且然后 sudo touch /etc/cloud/cloud-init.disabled

之后,我将 /etc/hostname 更改为server1并将 /etc/hosts 更改为

127.0.0.1       localhost.localdomain   localhost
172.26.***.***   server1.mydomain.com   server1   //** Private IP

然后我重新启动服务器。我通过主机名和主机名 -f 确认了主机名状态,然后我按照 ISPConfig 3.1 中的指示进行了 100% 操作:来自该论坛的 Debian 9 上的自动安装。

netstat -tap 结果

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:imaps           0.0.0.0:*               LISTEN      515/dovecot
tcp        0      0 0.0.0.0:pop3s           0.0.0.0:*               LISTEN      515/dovecot
tcp        0      0 localhost.localdo:10023 0.0.0.0:*               LISTEN      346/postgrey --pidf
tcp        0      0 localhost.localdo:10024 0.0.0.0:*               LISTEN      970/amavisd-new (ma
tcp        0      0 localhost.localdo:10025 0.0.0.0:*               LISTEN      942/master
tcp        0      0 localhost.localdo:10026 0.0.0.0:*               LISTEN      970/amavisd-new (ma
tcp        0      0 localhost.localdo:10027 0.0.0.0:*               LISTEN      942/master
tcp        0      0 0.0.0.0:submission      0.0.0.0:*               LISTEN      942/master
tcp        0      0 localhost.localdo:11211 0.0.0.0:*               LISTEN      490/memcached
tcp        0      0 0.0.0.0:pop3            0.0.0.0:*               LISTEN      515/dovecot
tcp        0      0 0.0.0.0:imap2           0.0.0.0:*               LISTEN      515/dovecot
tcp        0      0 0.0.0.0:urd             0.0.0.0:*               LISTEN      942/master
tcp        0      0 0.0.0.0:ftp             0.0.0.0:*               LISTEN      965/pure-ftpd (SERV
tcp        0      0 server1.impusese:domain 0.0.0.0:*               LISTEN      487/named
tcp        0      0 localhost.locald:domain 0.0.0.0:*               LISTEN      487/named
tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN      546/sshd
tcp        0      0 0.0.0.0:smtp            0.0.0.0:*               LISTEN      942/master
tcp        0      0 localhost.localdoma:953 0.0.0.0:*               LISTEN      487/named
tcp        0      0 localhost.localdo:34736 localhost.localdo:mysql ESTABLISHED 1088/amavisd-new (c
tcp        0    272 server1.impuseserve:ssh ***.198.***.79:33698     ESTABLISHED 5367/sshd: admin [p
tcp       61      0 localhost.localdo:46216 localhost.localdo:10025 CLOSE_WAIT  1088/amavisd-new (c
tcp        0    160 server1.impuseserve:ssh ***.198.***.79:33538     ESTABLISHED 4811/sshd: admin [p
tcp6       0      0 [::]:imaps              [::]:*                  LISTEN      515/dovecot
tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN      515/dovecot
tcp6       0      0 ip6-localhost:10024     [::]:*                  LISTEN      970/amavisd-new (ma
tcp6       0      0 ip6-localhost:10026     [::]:*                  LISTEN      970/amavisd-new (ma
tcp6       0      0 [::]:mysql              [::]:*                  LISTEN      788/mysqld
tcp6       0      0 [::]:submission         [::]:*                  LISTEN      942/master
tcp6       0      0 [::]:pop3               [::]:*                  LISTEN      515/dovecot
tcp6       0      0 [::]:imap2              [::]:*                  LISTEN      515/dovecot
tcp6       0      0 [::]:http               [::]:*                  LISTEN      663/apache2
tcp6       0      0 [::]:http-alt           [::]:*                  LISTEN      663/apache2
tcp6       0      0 [::]:urd                [::]:*                  LISTEN      942/master
tcp6       0      0 [::]:tproxy             [::]:*                  LISTEN      663/apache2
tcp6       0      0 [::]:ftp                [::]:*                  LISTEN      965/pure-ftpd (SERV
tcp6       0      0 [::]:domain             [::]:*                  LISTEN      487/named
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      546/sshd
tcp6       0      0 [::]:smtp               [::]:*                  LISTEN      942/master
tcp6       0      0 ip6-localhost:953       [::]:*                  LISTEN      487/named
tcp6       0      0 [::]:https              [::]:*                  LISTEN      663/apache2
tcp6       0      0 localhost.localdo:mysql localhost.localdo:34736 ESTABLISHED 788/mysqld

iptables -L 结果

target     prot opt source               destination
f2b-pureftpd  tcp  --  anywhere             anywhere             multiport dports ftp
f2b-postfix-sasl  tcp  --  anywhere             anywhere             multiport dports smtp
f2b-sshd   tcp  --  anywhere             anywhere             multiport dports ssh

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain f2b-postfix-sasl (1 references)
target     prot opt source               destination
RETURN     all  --  anywhere             anywhere

Chain f2b-pureftpd (1 references)
target     prot opt source               destination
RETURN     all  --  anywhere             anywhere

Chain f2b-sshd (1 references)
target     prot opt source               destination
RETURN     all  --  anywhere             anywhere

htf_report.txt

##### SERVER #####
IP-address (as per hostname): ***.***.***.***
[WARN] could not determine server's ip address by ifconfig
[INFO] OS version is Debian GNU/Linux 9.12 (stretch)

[INFO] ISPConfig is installed.
[WARN] /usr/local/ispconfig/server/lib/config.inc.php is missing.

##### VERSION CHECK #####

[INFO] php (cli) version is 7.0.33-0+deb9u7

##### PORT CHECK #####

##### MAIL SERVER CHECK #####

##### RUNNING SERVER PROCESSES #####

[WARN] I could not determine which web server is running.
[WARN] I could not determine which mail server is running.
[WARN] I could not determine which pop3 server is running.
[WARN] I could not determine which imap server is running.
[WARN] I could not determine which ftp server is running.

##### LISTENING PORTS #####
(only           ()
Local           (Address)
[anywhere]:993          (-)
[anywhere]:995          (-)
[localhost]:10023               (-)
[localhost]:10024               (-)
[localhost]:10025               (-)
[localhost]:10026               (-)
[localhost]:10027               (-)
[anywhere]:587          (-)
[localhost]:11211               (-)
[anywhere]:110          (-)
[anywhere]:143          (-)
[anywhere]:465          (-)
[anywhere]:21           (-)
***.***.***.***:53              (-)
[localhost]:53          (-)
[anywhere]:22           (-)
[anywhere]:25           (-)
[localhost]:953         (-)
*:*:*:*::*:993          (-)
*:*:*:*::*:995          (-)
*:*:*:*::*:10024                (-)
*:*:*:*::*:10026                (-)
*:*:*:*::*:3306         (-)
*:*:*:*::*:587          (-)
[localhost]10           (-)
[localhost]43           (-)
*:*:*:*::*:80           (-)
*:*:*:*::*:8080         (-)
*:*:*:*::*:465          (-)
*:*:*:*::*:8081         (-)
*:*:*:*::*:21           (-)
*:*:*:*::*:53           (-)
*:*:*:*::*:22           (-)
*:*:*:*::*:25           (-)
*:*:*:*::*:953          (-)
*:*:*:*::*:443          (-)

##### IPTABLES #####

在我的静态 IP 3.6.***.**<< Apache 主页加载 http:// 但未加载 https:// 3.6.***.**/webmail << roundcube 登录页面加载 http:// 但未加载 https://

但是 ISPConfig 3 没有在https://server1.mydomain.com:8080https://myprivateip:8080 << 中加载

需要您的支持来解决这个问题...

4

1 回答 1

0

在 lightsail 实例中,转到防火墙中的网络 > 自定义 TCP 端口 8080。

于 2020-04-11T08:15:05.600 回答