我在网络 (192.168.178.1/24) 中安装了 Centos 和所有东西,然后将服务器移至另一个具有完全相同配置的网络 (192.168.178.1/24)。在第一个具有相同配置的网络上,webmin 运行正常,即使经过多次重启也没有任何问题。
但是,当我将服务器移到新网络后,尽管我可以毫无问题地访问 Apache,但我无法再访问 webmin。
我有最新版本的 webmin 和 perl perl-Net-SSLeay openssl perl-IO-Tty。
Iptables(我使用 iptables 而不是firewalld)
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
52 10201 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
19 988 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:10000
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:21
132 13350 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
2 120 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
1 52 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
126 10254 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Webmin 配置(仅限某些部分,我尝试了 ssl=0 和 ssl=1,没有变化)
port=10000
ssl=1
no_ssl2=1
no_ssl3=1
no_tls1=1
no_tls1_1=1
ssl_honorcipherorder=1
no_sslcompression=1
listen=10000
Apache、webmin 和 mariadb
Webmin (pid 2057) is running
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2016-08-29 15:13:58 EEST; 10min ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 991 (httpd)
Status: "Total requests: 19; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─ 991 /usr/sbin/httpd -DFOREGROUND
├─2354 /usr/sbin/httpd -DFOREGROUND
├─2355 /usr/sbin/httpd -DFOREGROUND
├─2356 /usr/sbin/httpd -DFOREGROUND
├─2357 /usr/sbin/httpd -DFOREGROUND
├─2358 /usr/sbin/httpd -DFOREGROUND
├─2453 /usr/sbin/httpd -DFOREGROUND
├─2454 /usr/sbin/httpd -DFOREGROUND
└─2455 /usr/sbin/httpd -DFOREGROUND
mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2016-08-29 15:13:59 EEST; 21min ago
Main PID: 1305 (mysqld_safe)
CGroup: /system.slice/mariadb.service
├─1305 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
└─1814 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log -...
Aug 29 15:13:56 seyredelim.centos systemd[1]: Starting MariaDB database server...
Aug 29 15:13:57 seyredelim.centos mysqld_safe[1305]: 160829 15:13:57 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Aug 29 15:13:57 seyredelim.centos mysqld_safe[1305]: 160829 15:13:57 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Aug 29 15:13:59 seyredelim.centos systemd[1]: Started MariaDB database server.
Aug 29 15:35:03 seyredelim.centos systemd[1]: Started MariaDB database server.
当我尝试使用 SSH 和 nc 命令登录时
[root@**** supervisor]# nc -vw 3 192.168.178.178 10000
Ncat: Version 6.40 ( http://nmap.org/ncat )
Ncat: Connected to 192.168.178.178:10000.
一切似乎都正常,但有趣的是,出于某种原因,我仍然无法连接到 webmin。我使用本地或远程连接到 mysql、apache (80) 或任何其他服务都没有问题。
有什么建议吗?提前谢谢。