端口回流

admin 百為流控評論1,608字數(shù) 547閱讀模式

需求分析

文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

比如一個網吧,或者公司,內網網段為192.168.1.1-192.168.1.254。百為路由的LAN口(網關)比如是 192.168.1.254 ?,F(xiàn)在內網搭建web服務器,IP地址為192.168.1.253,端口80。網站需要對外提供服務,映射80端口 到企業(yè)外網光纖 113.106.100.100文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

113.106.100.100 域名 www.bv12345678.com (即訪問域名解析為113.106.100.100)文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

現(xiàn)從外網訪問域名,能正常訪問到所搭建的網站。內網用戶192.168.1.1-192.168.1.253的內網用戶,無法直接訪問域名,固定IP也無法訪問到該網站。只能通過內網 192.168.1.253 來訪問。文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

在內網,非要通過公網IP(或者域名)來訪問內網映射的資源。需要在路由加源地址轉換,也就是業(yè)界俗稱的“端口回流文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

[高級配置]→[地址轉換]→[源地址轉換],添加規(guī)則,如下圖所示文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

  源地址IP:192.168.1.0文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

  源地址掩碼:255.255.255.0文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

  目的地址IP:192.168.1.253文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

  目的地址掩碼:255.255.255.255文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

  替換源IP為:113.106.100.100 (如果是撥號用戶沒固定IP則填寫路由內網網關 192.168.1.254)文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

端口回流文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html 文章源自網吧系統(tǒng)維護-http://www.s143.cn/1082.html

版權聲明:文章圖片資源來源于網絡,如有侵權,請留言刪除!!!
廣告也精彩
admin
  • 本文由 發(fā)表于 2019年3月11日 07:32:41
  • 轉載請務必保留本文鏈接:http://www.s143.cn/1082.html
匿名

發(fā)表評論

匿名網友 填寫信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: