
我正在嘗試在我家設定一個 Apache 伺服器,可以透過我的家庭路由器透過連接埠 80 存取該伺服器。幾個月前我能夠做到這一點,然後我關閉了該網站。當我嘗試再次設定連接埠轉送時,我注意到我無法從我的公用 IP (69.162.xx) 存取我的伺服器。
查看我的路由器設置,我發現它的公共 IP (100.81.xx) 列出了一個完全不同的 IP。在我的 LAN 中,連接埠轉送透過此位址進行工作(不能是私人 IP (?),我的路由器分配了 192.168.xx),但在我的家庭網路之外無法運作。
在 Google 上進行一些搜尋後,我發現我的路由器「認為」的位址可能用於 ISP 等級的雙重 NAT 目的。當我嘗試聯絡客戶支援時,沒有收到任何回應。
我是否受到 ISP 的雙重 NAT,或者這是我忽略的問題?
答案1
我的想法是,您的 ISP 現在正在過渡到 IPv6,而此前它一直使用純 IPv4。
該服務將新地址100.81.x.x
報告whois
為:
#
# ARIN WHOIS data and services are subject to the Terms of Use
# available at: https://www.arin.net/resources/registry/whois/tou/
#
# If you see inaccuracies in the results, please report at
# https://www.arin.net/resources/registry/whois/inaccuracy_reporting/
#
# Copyright 1997-2021, American Registry for Internet Numbers, Ltd.
#
NetRange: 100.64.0.0 - 100.127.255.255
CIDR: 100.64.0.0/10
NetName: SHARED-ADDRESS-SPACE-RFCTBD-IANA-RESERVED
NetHandle: NET-100-64-0-0-1
Parent: NET100 (NET-100-0-0-0-0)
NetType: IANA Special Use
OriginAS:
Organization: Internet Assigned Numbers Authority (IANA)
RegDate: 2012-03-13
Updated: 2016-04-11
Comment: This block is used as Shared Address Space. Traffic from these addresses does not come from IANA. IANA has simply reserved these numbers in its database and does not use or operate them. We are not the source of activity you may see on logs or in e-mail records. Please refer to http://www.iana.org/abuse/
Comment: Shared Address Space can only be used in Service Provider networks or on routing equipment that is able to do address translation across router interfaces when addresses are identical on two different interfaces.
Comment: This block was assigned by the IETF in the Best Current Practice document,
Comment: RFC 6598 which can be found at:
Comment: http://tools.ietf.org/html/rfc6598
Ref: https://rdap.arin.net/registry/ip/100.64.0.0
維基百科描述了 IPv4共享位址空間 作為:
為了確保運營商級 NAT (CGN) 正常運作,並透過這樣做減輕對最後剩餘 IPv4 位址的需求,互聯網號碼分配機構 (IANA) 分配了 /10 大小的 IPv4 位址區塊用作共享位址空間。
此位址區塊專門供實施營運商級 NAT 的網際網路服務供應商 (ISP) 使用,將其用戶端裝置 (CPE) 連接到其核心路由器。
結論:您現在處於運營商級 NAT 後面。如果您希望擁有一個真實的 IPv4 位址,您應該從 ISP 租用靜態位址。否則,您找到的 IPv4 僅是 ISP 內部的。