我已经购买了 SSL,我正在尝试在浏览器上设置它。端口在路由器中转发到服务器,相信SSL证书安装正确(apache启动正常)。
我在 IPtables 防火墙中打开了端口,但是当我列出侦听的端口时 - 我没有看到任何侦听端口 443 的内容。
我检查了我的配置(带有 LAMP 服务器的默认 debian 7)并且我的 ports.conf 文件中有以下内容:
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also …
Run Code Online (Sandbox Code Playgroud) 我正在尝试查看 Debian 7 服务器中 IPtables 中所有规则的列表。当我尝试:
iptables -L -n
Run Code Online (Sandbox Code Playgroud)
我只得到一个规则(我在 5 分钟前输入)。
我还有很多其他端口,例如 80 端口、mysql 和其他端口,它们都可以正常工作,但我在任何地方都看不到它们。
知道怎么做吗?谢谢
/* 编辑 */
我正在添加一些从不同命令中获得的输入
iptables -t nat -L -n
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Run Code Online (Sandbox Code Playgroud)
当我尝试
iptables -L -v -n --line-n
Chain INPUT (policy ACCEPT 43535 packets, 58M bytes)
num pkts bytes target …
Run Code Online (Sandbox Code Playgroud)