[問答] 當內部電腦連線到對外IP時發生失敗
實體架構是所有電腦、伺服器、中華電信主機 都連到同一台Switch
平常的話是電腦用NAT連到伺服器,再從伺服器用公用IP通外界
伺服器有架網站伺服器,平時寫網站有時候需要連到網頁做測試
因為有使用VirtualHost,所以必須連到網址而不是IP位置
因為連的是網址,DNS給的當然是伺服器的外部IP
這樣的話連上網頁伺服器的路徑變成
電腦====>伺服器====>網路路由器====>伺服器
等於是出外繞一圈....
而且有的時候會連不上,或是部分文件沒收到(錯誤101)
目前的想到的解決方法有三
1.修改電腦的hosts,將網址指向伺服器內部IP
2.在伺服器的Private DNS Server上把網址指向內部IP
3.電腦自己PPPoE撥號
但是我最希望的是第四解
4.修改伺服器的路由將由內部IP通往外部IP的信息收下來
理論上第三解應該是自動的(伺服器知道自己的所有IP,我沒有用DMZ)
但是根據tracert的結果,我確信自己經過了兩次路由(伺服器+外部路由)才回到伺服器
提供NAT及負責撥號的都是Windows 2008 路由及遠端存取服務
網路是中華電信光世代 固1+浮7的形式
解決方法應該是在靜態路由或是服務設定之類的地方
想問知道的人該怎麼處理?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.116.180.163
推
11/10 22:36, , 1F
11/10 22:36, 1F
推
11/10 22:37, , 2F
11/10 22:37, 2F
推
11/10 22:37, , 3F
11/10 22:37, 3F
推
11/10 22:38, , 4F
11/10 22:38, 4F
推
11/10 22:38, , 5F
11/10 22:38, 5F
推
11/10 22:39, , 6F
11/10 22:39, 6F
我希望NAT在收到由內部發到自己外部IP的通訊直接收下來不轉送出去
這應該不算名稱解析吧?只判斷來源IP(是不是區網IP)跟目標IP(是不是自己的對外IP)
推
11/10 22:39, , 7F
11/10 22:39, 7F
→
11/10 22:40, , 8F
11/10 22:40, 8F
推
11/10 22:40, , 9F
11/10 22:40, 9F
→
11/10 22:41, , 10F
11/10 22:41, 10F
→
11/10 22:41, , 11F
11/10 22:41, 11F
→
11/10 22:42, , 12F
11/10 22:42, 12F
→
11/10 22:43, , 13F
11/10 22:43, 13F
→
11/10 22:43, , 14F
11/10 22:43, 14F
→
11/10 22:44, , 15F
11/10 22:44, 15F
→
11/10 22:47, , 16F
11/10 22:47, 16F
Windows 2008是有開DNS,但主要是AD運作要用的
如果要把DNS給內部用,一是等於必須多維護一個DNS
二是當伺服器掛掉時下面電腦得改DNS選項不然不能自己撥出去
三是AD會自己亂加項目很討厭(關掉安全更新又會一直送錯誤...)
雖然都不是很大的問題,但奇模子不是很好就是了
而且之後我打算要重灌,把AD & DNS之類的都拿掉
推
11/11 00:59, , 17F
11/11 00:59, 17F
→
11/11 01:00, , 18F
11/11 01:00, 18F
※ 編輯: SmallBeeWayn 來自: 122.116.180.163 (11/11 03:01)
→
11/11 09:02, , 19F
11/11 09:02, 19F
→
11/11 09:38, , 20F
11/11 09:38, 20F
→
11/11 09:39, , 21F
11/11 09:39, 21F
→
11/11 09:39, , 22F
11/11 09:39, 22F
→
11/11 09:39, , 23F
11/11 09:39, 23F
→
11/11 09:40, , 24F
11/11 09:40, 24F
→
11/11 09:40, , 25F
11/11 09:40, 25F
→
11/11 09:41, , 26F
11/11 09:41, 26F
→
11/11 09:41, , 27F
11/11 09:41, 27F
→
11/11 09:42, , 28F
11/11 09:42, 28F
→
11/11 09:42, , 29F
11/11 09:42, 29F
→
11/11 09:43, , 30F
11/11 09:43, 30F
→
11/11 09:43, , 31F
11/11 09:43, 31F
→
11/11 09:44, , 32F
11/11 09:44, 32F
→
11/11 09:44, , 33F
11/11 09:44, 33F
→
11/11 09:45, , 34F
11/11 09:45, 34F
→
11/11 09:45, , 35F
11/11 09:45, 35F
→
11/11 09:46, , 36F
11/11 09:46, 36F
→
11/11 09:49, , 37F
11/11 09:49, 37F
→
11/11 09:49, , 38F
11/11 09:49, 38F
→
11/11 09:52, , 39F
11/11 09:52, 39F
→
11/11 09:53, , 40F
11/11 09:53, 40F
→
11/11 09:53, , 41F
11/11 09:53, 41F
→
11/11 09:54, , 42F
11/11 09:54, 42F
→
11/11 09:55, , 43F
11/11 09:55, 43F
→
11/11 09:59, , 44F
11/11 09:59, 44F
→
11/11 10:02, , 45F
11/11 10:02, 45F
→
11/11 10:02, , 46F
11/11 10:02, 46F
→
11/11 11:07, , 47F
11/11 11:07, 47F
推
11/11 11:24, , 48F
11/11 11:24, 48F
→
11/11 12:55, , 49F
11/11 12:55, 49F
推
11/11 13:17, , 50F
11/11 13:17, 50F
推
11/11 13:20, , 51F
11/11 13:20, 51F
推
11/11 13:22, , 52F
11/11 13:22, 52F
推
11/11 13:36, , 53F
11/11 13:36, 53F
推
11/11 13:41, , 54F
11/11 13:41, 54F
→
11/11 13:43, , 55F
11/11 13:43, 55F
→
11/11 14:07, , 56F
11/11 14:07, 56F
→
11/11 14:08, , 57F
11/11 14:08, 57F
→
11/11 14:08, , 58F
11/11 14:08, 58F
推
11/11 14:10, , 59F
11/11 14:10, 59F
→
11/11 14:11, , 60F
11/11 14:11, 60F
推
11/11 14:24, , 61F
11/11 14:24, 61F
推
11/11 14:28, , 62F
11/11 14:28, 62F
推
11/11 14:33, , 63F
11/11 14:33, 63F
→
11/11 14:35, , 64F
11/11 14:35, 64F
→
11/11 14:39, , 65F
11/11 14:39, 65F
→
11/11 14:39, , 66F
11/11 14:39, 66F
→
11/11 14:40, , 67F
11/11 14:40, 67F
→
11/11 14:40, , 68F
11/11 14:40, 68F
→
11/11 14:41, , 69F
11/11 14:41, 69F
→
11/11 14:41, , 70F
11/11 14:41, 70F
→
11/11 14:42, , 71F
11/11 14:42, 71F
→
11/11 14:43, , 72F
11/11 14:43, 72F
→
11/11 14:44, , 73F
11/11 14:44, 73F
→
11/11 14:44, , 74F
11/11 14:44, 74F
→
11/11 14:46, , 75F
11/11 14:46, 75F
→
11/11 14:46, , 76F
11/11 14:46, 76F
→
11/11 14:47, , 77F
11/11 14:47, 77F
推
11/11 14:57, , 78F
11/11 14:57, 78F
→
11/11 14:58, , 79F
11/11 14:58, 79F
→
11/11 15:00, , 80F
11/11 15:00, 80F
推
11/11 15:30, , 81F
11/11 15:30, 81F
推
11/11 15:33, , 82F
11/11 15:33, 82F
→
11/11 15:33, , 83F
11/11 15:33, 83F
討論串 (同標題文章)
Network 近期熱門文章
PTT數位生活區 即時熱門文章