IPv6 上的 HTTPS 仅在我的 LAN 内有效(HTTP 可以正常工作)

IPv6 上的 HTTPS 仅在我的 LAN 内有效(HTTP 可以正常工作)

我正在尝试将网络服务器公开到互联网上。

插座显然没有问题:

$ ss -tupan -6 state listening | grep node
tcp    0      128            *:7443                       *:*                   users:(("node-default",pid=28327,fd=26))
tcp    0      128            *:7777                       *:*                   users:(("node-default",pid=28327,fd=25))

我在路由器的防火墙和服务器的防火墙上公开了端口 7777 和 7443。

$ firewall-cmd --list-all --zone=home
home (active)
  target: default
  icmp-block-inversion: no
  interfaces: wlan0
  sources: 
  services: ssh mdns samba-client dhcpv6-client samba openvpn
  ports: 7777/tcp 7443/tcp
  protocols: ipv6-icmp
  masquerade: no
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules: 

据我所知,HTTP 运行正常:

http://[xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]:7777/]

不幸的是,到目前为止 https 只能从我的 LAN 内部访问:

https://[xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]:7443

知道问题可能是什么吗/如何进一步排除故障?

PS:我目前正在使用自签名证书。


更新 1:iptables 规则

$ ip6tables -nvL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
14796   14M ACCEPT     all      *      *       ::/0                 ::/0                 ctstate RELATED,ESTABLISHED
 1938  155K ACCEPT     all      lo     *       ::/0                 ::/0                
  861 98439 INPUT_direct  all      *      *       ::/0                 ::/0                
  861 98439 INPUT_ZONES_SOURCE  all      *      *       ::/0                 ::/0                
  861 98439 INPUT_ZONES  all      *      *       ::/0                 ::/0                
    0     0 LOG        all      *      *       ::/0                 ::/0                 ctstate INVALID LOG flags 0 level 4 prefix "STATE_INVALID_DROP: "
    0     0 DROP       all      *      *       ::/0                 ::/0                 ctstate INVALID
   20  2013 LOG        all      *      *       ::/0                 ::/0                 LOG flags 0 level 4 prefix "FINAL_REJECT: "
   20  2013 REJECT     all      *      *       ::/0                 ::/0                 reject-with icmp6-adm-prohibited

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     all      *      *       ::/0                 ::/0                 ctstate RELATED,ESTABLISHED
    0     0 ACCEPT     all      lo     *       ::/0                 ::/0                
    0     0 FORWARD_direct  all      *      *       ::/0                 ::/0                
    0     0 FORWARD_IN_ZONES_SOURCE  all      *      *       ::/0                 ::/0                
    0     0 FORWARD_IN_ZONES  all      *      *       ::/0                 ::/0                
    0     0 FORWARD_OUT_ZONES_SOURCE  all      *      *       ::/0                 ::/0                
    0     0 FORWARD_OUT_ZONES  all      *      *       ::/0                 ::/0                
    0     0 LOG        all      *      *       ::/0                 ::/0                 ctstate INVALID LOG flags 0 level 4 prefix "STATE_INVALID_DROP: "
    0     0 DROP       all      *      *       ::/0                 ::/0                 ctstate INVALID
    0     0 LOG        all      *      *       ::/0                 ::/0                 LOG flags 0 level 4 prefix "FINAL_REJECT: "
    0     0 REJECT     all      *      *       ::/0                 ::/0                 reject-with icmp6-adm-prohibited

Chain OUTPUT (policy ACCEPT 15085 packets, 2863K bytes)
 pkts bytes target     prot opt in     out     source               destination         
15681 3011K OUTPUT_direct  all      *      *       ::/0                 ::/0                

Chain FORWARD_IN_ZONES (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 FWDI_home  all      wlan0  *       ::/0                 ::/0                [goto] 
    0     0 FWDI_public  all      +      *       ::/0                 ::/0                [goto] 

Chain FORWARD_IN_ZONES_SOURCE (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD_OUT_ZONES (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 FWDO_home  all      *      wlan0   ::/0                 ::/0                [goto] 
    0     0 FWDO_public  all      *      +       ::/0                 ::/0                [goto] 

Chain FORWARD_OUT_ZONES_SOURCE (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD_direct (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain FWDI_home (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 FWDI_home_log  all      *      *       ::/0                 ::/0                
    0     0 FWDI_home_deny  all      *      *       ::/0                 ::/0                
    0     0 FWDI_home_allow  all      *      *       ::/0                 ::/0                
    0     0 ACCEPT     icmpv6    *      *       ::/0                 ::/0                

Chain FWDI_home_allow (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain FWDI_home_deny (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain FWDI_home_log (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain FWDI_public (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 FWDI_public_log  all      *      *       ::/0                 ::/0                
    0     0 FWDI_public_deny  all      *      *       ::/0                 ::/0                
    0     0 FWDI_public_allow  all      *      *       ::/0                 ::/0                
    0     0 ACCEPT     icmpv6    *      *       ::/0                 ::/0                

Chain FWDI_public_allow (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain FWDI_public_deny (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain FWDI_public_log (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain FWDO_home (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 FWDO_home_log  all      *      *       ::/0                 ::/0                
    0     0 FWDO_home_deny  all      *      *       ::/0                 ::/0                
    0     0 FWDO_home_allow  all      *      *       ::/0                 ::/0                

Chain FWDO_home_allow (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain FWDO_home_deny (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain FWDO_home_log (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain FWDO_public (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 FWDO_public_log  all      *      *       ::/0                 ::/0                
    0     0 FWDO_public_deny  all      *      *       ::/0                 ::/0                
    0     0 FWDO_public_allow  all      *      *       ::/0                 ::/0                

Chain FWDO_public_allow (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain FWDO_public_deny (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain FWDO_public_log (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain INPUT_ZONES (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  753 87315 IN_home    all      wlan0  *       ::/0                 ::/0                [goto] 
   34  3461 IN_public  all      +      *       ::/0                 ::/0                [goto] 

Chain INPUT_ZONES_SOURCE (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain INPUT_direct (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain IN_home (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  827 94978 IN_home_log  all      *      *       ::/0                 ::/0                
  827 94978 IN_home_deny  all      *      *       ::/0                 ::/0                
  827 94978 IN_home_allow  all      *      *       ::/0                 ::/0                
  719 80600 ACCEPT     icmpv6    *      *       ::/0                 ::/0                

Chain IN_home_allow (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     tcp      *      *       ::/0                 ::/0                 tcp dpt:22 ctstate NEW
   77 11842 ACCEPT     udp      *      *       ::/0                 ff02::fb             udp dpt:5353 ctstate NEW
    0     0 ACCEPT     udp      *      *       ::/0                 ::/0                 udp dpt:137 ctstate NEW
    0     0 ACCEPT     udp      *      *       ::/0                 ::/0                 udp dpt:138 ctstate NEW
    1   136 ACCEPT     udp      *      *       ::/0                 fe80::/64            udp dpt:546 ctstate NEW
    0     0 ACCEPT     udp      *      *       ::/0                 ::/0                 udp dpt:137 ctstate NEW
    0     0 ACCEPT     udp      *      *       ::/0                 ::/0                 udp dpt:138 ctstate NEW
    0     0 ACCEPT     tcp      *      *       ::/0                 ::/0                 tcp dpt:139 ctstate NEW
    0     0 ACCEPT     tcp      *      *       ::/0                 ::/0                 tcp dpt:445 ctstate NEW
    0     0 ACCEPT     tcp      *      *       ::/0                 ::/0                 tcp dpts:1714:1764 ctstate NEW
    0     0 ACCEPT     udp      *      *       ::/0                 ::/0                 udp dpts:1714:1764 ctstate NEW
    0     0 ACCEPT     udp      *      *       ::/0                 ::/0                 udp dpt:1194 ctstate NEW
   16  1280 ACCEPT     tcp      *      *       ::/0                 ::/0                 tcp dpt:7777 ctstate NEW
   14  1120 ACCEPT     tcp      *      *       ::/0                 ::/0                 tcp dpt:7443 ctstate NEW
    0     0 ACCEPT     icmpv6    *      *       ::/0                 ::/0                 ctstate NEW

Chain IN_home_deny (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain IN_home_log (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain IN_public (1 references)
 pkts bytes target     prot opt in     out     source               destination         
   34  3461 IN_public_log  all      *      *       ::/0                 ::/0                
   34  3461 IN_public_deny  all      *      *       ::/0                 ::/0                
   34  3461 IN_public_allow  all      *      *       ::/0                 ::/0                
   14  1448 ACCEPT     icmpv6    *      *       ::/0                 ::/0                

Chain IN_public_allow (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     udp      *      *       ::/0                 fe80::/64            udp dpt:546 ctstate NEW

Chain IN_public_deny (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain IN_public_log (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT_direct (1 references)
 pkts bytes target     prot opt in     out     source               destination

更新 2 - 路由器规则:

路由器规则

路由器是华硕 DSL-AC68U

答案1

我能够从我的网络访问此网址:

https://[xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]:7443/

我在 Firefox 中收到颁发给 selfcert.local、SHA-1 指纹的证书警告错误52:52:AB:48:BA:75:74:85:8E:F4:5A:46:46:E6:47:CB:CE:6A:D4:36

这可能与您的配置有关,例如 Asuswrt 固件或其他设备可能未正确路由其自己的 IPv6 网络。从我的 IPv6 网络到您的网络,连接正常,我收到了您的自签名证书。

相关内容