人家樓主只是要 "多網址 導向 同IP不同 Port" + "隱藏 port"
上面回覆設定啥、爭論啥等等,都是滿嘴的屁話 = =
現在奉獻最簡單的方法,幫助同樣困難的朋友們 ~
其實非常簡單,購買網域設定 DNS 就能解決了!
首先主要網址導向請設定 ( 以A為範例 )
類型:A | 名稱:@ | 數值:你的IP | TTL:600秒
然後再添加一個 SRV 的紀錄
類型:SRV | 名稱:@ | 目標:@ | TTL:600秒
通訊協定:_tcp | 優先順序:0 | 加權:5
連線埠:你的 Port
完成以後送出,你就能看到期望的純IP、不需輸入Port
( 就是這麼簡單的事情,我爬文了好幾天才找到辦法 )
( 希望不要再有下一個人,被上面的拉基回覆搞複雜 )
Mason.Lyu wrote:
NginX跟Apache...(恕刪)
你好,想請問我有幾個DDNS對應一個public IP裡面區網同IP的不同網站和不同IP的不同網站
a.ddns /b.ddns/c.ddns/d.ddns -> public IP -> a.ddns /b.ddns 192.168.1.10
c.ddns 192.168.1.15
d.ddns 192.168.1.20
你回復的這段在routeros該怎摸寫呢?
NginX跟Apache都只是HTTPD,負責提供HTTP Service
.Server A, NginX, 192.168.0.10, port 80 (HTTP)
.Server B, Apache, 192.168.0.11, port 80 (HTTP)
.Server C, NginX, 192.168.0.12, port 80 (HTTP)
.Server D, Apache, 192.168.0.13, port 80 (HTTP)
Public IP: 1.32.25.137
FQDN/DDNS:透過RouterOS WEB Proxy可以這樣
.Any Client <-> http://www.ILoveTW.com/ <-> http://1.32.25.137/ <-> http://192.168.0.10/
.Any Client <-> http://www.ILoveCN.com/ <-> http://1.32.25.137/ <-> http://192.168.0.11/
.Any Client <-> http://www.ILoveHK.com/ <-> http://1.32.25.137/ <-> http://192.168.0.12/
.Any Client <-> http://www.ILoveJP.com/ <-> http://1.32.25.137/ <-> http://192.168.0.13/
SLB:透過RouterOS PCC可以這樣
.Client A <-> http://www.ILoveTW.com/ <-> http://1.32.25.137/ <-> http://192.168.0.10/
.Client B <-> http://www.ILoveTW.com/ <-> http://1.32.25.137/ <-> http://192.168.0.11/
.Client C <-> http://www.ILoveTW.com/ <-> http://1.32.25.137/ <-> http://192.168.0.12/
.Client D <-> http://www.ILoveTW.com/ <-> http://1.32.25.137/ <-> http://192.168.0.13/
連線轉發的工作是在Router完成的,關鍵是路由這一段,你可以:
Firewall <-> Router <-> SLB <-> Internal Server
也可以
RouterOS (Firewall <-> Router <-> SLB) <-> Internal Server
內文搜尋
X




























































































