0

我正在使用 Fedora 20,最近做了一个 yum 更新。现在我不能再让英镑工作了。没有真正的错误,只是拒绝连接:

以下输出是来自不同时间的复制和粘贴,但输出始终相同,除了 pid 和时间。

[root@mymachine me]#  wget --no-check-certificate --debug --verbose https://localhost
Setting --verbose (verbose) to 1
DEBUG output created by Wget 1.14 on linux-gnu.

URI encoding = ‘UTF-8’
--2014-11-06 11:59:53--  https://localhost/
Resolving localhost (localhost)... ::1, 127.0.0.1
Caching localhost => ::1 127.0.0.1
Connecting to localhost (localhost)|::1|:443... Closed fd 3
failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:443... Closed fd 3
failed: Connection refused.
Releasing 0x0000000001f33280 (new refcount 1).
[root@mymachine me]# service pound status
Redirecting to /bin/systemctl status  pound.service
pound.service - Pound Reverse Proxy And Load-balancer
   Loaded: loaded (/usr/lib/systemd/system/pound.service; enabled)
   Active: active (running) since Thu 2014-11-06 11:30:12 EST; 6min ago
  Process: 3019 ExecStart=/usr/sbin/pound (code=exited, status=0/SUCCESS)
 Main PID: 3020 (pound)
   CGroup: /system.slice/pound.service
           ├─3020 /usr/sbin/pound
           └─3021 /usr/sbin/pound

Nov 06 11:30:12 mymachine systemd[1]: Starting Pound Reverse Proxy And Load-balancer...
Nov 06 11:30:12 mymachine pound[3019]: starting...
Nov 06 11:30:12 mymachine systemd[1]: PID file /var/run/pound.pid not readable (yet?) after start.
Nov 06 11:30:12 mymachine systemd[1]: Started Pound Reverse Proxy And Load-balancer.
[root@mymachine me]# 

[root@mymachine me]# netstat -tulpn | grep pound
tcp        0      0 myip:443      0.0.0.0:*               LISTEN      1379/pound          

我可以 wget http:[stack 抱怨链接//]localhost:80 (varnish) 和 wget http:[stack 抱怨链接//]localhost:8080 (apache) 我正在使用可以找到的自签名 pem 文件(那里没有错误),在我从浏览器中获得“让我离开这里”和“我知道我在做什么”之前,但现在它甚至不会与本地主机上的 wget 连接。

这是 /etc/pound.cfg:

User "pound"
Group "pound"
Control "/var/lib/pound/pound.cfg"


ListenHTTPS
    Address 128.199.217.77
    Port    443
    Cert    "/var/www/html/test.pem"
        Service
            BackEnd
                Address localhost
                Port    80
            End
        End
End
4

1 回答 1

0

这是一个 iptables 问题。添加了使用 iptables 命令打开端口 443 的规则,这样做时不会以任何方式保存规则。使用 firewall-cmd 代替:

firewall-cmd --permanent --add-service=https
firewall-cmd --reload
firewall-cmd --list-services

使用 wget 时,您不能使用 localhost,因为 pound 不在那里听,命令应该是:

[root@mymachine me]#  wget --no-check-certificate --debug --verbose https://my.ip.address
于 2014-11-07T00:49:14.570 回答