Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> 電腦軟體教學 >> 伺服器技術 >> 代理伺服器

WinGate 代理伺服器經典教學:安裝、TCP/IP 規劃、多協定用戶端配置

編輯:代理伺服器

WinGate 簡介

WinGate 是代理伺服器軟體鼻祖,功能強大:HTTP/MAIL/NEWS/FTP/TELNET 多協定代理、內建防火牆、支援多用戶同時上網。適合網吧、中小企業。 (下載:skycn)

前置條件 (必確認)

  1. 主機 (安裝 WinGate) : Win95/NT 3.51+、網卡、Modem、已能正常上網
  2. 工作站 : 僅需網卡與主機互連,**無需安裝 WinGate/撥號軟體**
  3. 主機與工作站 **TCP/IP 互通** (可相互 Ping)

一、主機安裝與 TCP/IP 設定

  1. 安裝 WGsetup.exe,各 Server 填入 ISP 提供設定 (SMTP: ms1.hinet.net, News: netnews.hinet.net 等),左側預設值勿動,確定完成。
  2. 控制台 → 網路 → TCP/IP (網卡對應) → 內容:
IP 位址: 192.168.0.1
子網遮罩: 255.255.255.0
WINS: 停用
閘道: 空白
DNS: 啟用
  主機名稱: john (任意)
  網域: hinet.net (ISP 網域)
  DNS 伺服器: 168.95.192.1 (ISP DNS) → 新增
  網域尾碼: hinet.net → 新增
重開機生效

可將 wingate.exe 捷徑放入「啟動」群組,開機自動撥號 (或用其他撥號器)。

二、工作站 TCP/IP 設定 (無需安裝軟體)

IP 位址: 192.168.0.2 (每站唯一,勿重複)
子網遮罩: 255.255.255.0
WINS: 停用
閘道: 空白
DNS: 啟用
  主機名稱: David (唯一)
  網域: 空白
  DNS 伺服器: 192.168.0.1 (指向主機) → 新增
  網域尾碼: 空白
確定離開

修改 C:\Windows\hosts 加入:
192.168.0.1 gateway

三、連通性驗證

  1. 工作站 DOS: ping gateway → 有回應 = 連線正常
  2. 主機撥號上網
  3. 工作站 DOS: ping ftp.microsoft.com → 第一行顯示 IP 位址 = DNS 解析正常 (後續 Destination host unreachable 為正常現象,忽略)

四、各類用戶端軟體代理設定

軟體代理設定
Netscape NavigatorOptions → Preferences → Proxies → Manual → View
HTTP Proxy: gateway:80
SOCKS Proxy: gateway:1080
Microsoft IE控制台 → Internet → 進階 → ☑ Use Proxy Server
Proxy Server: https://gateway
WS_FTPOptions → Session Option → ☑ Use Firewall
☐ Use PASV Transfer Mode
Save as default → Advanced → Firewall: gateway, Port: 21, User with no logon
CuteFTPFTP → Settings → Option → Firewall
Host: gateway, Port: 21
Type: USER user@site
☑ Enable Firewall
Telnettelnet gateway → 出現 WinGate> 提示 → 輸入目標位址
EudoraSMTP: gateway
POP3: user_id#domain@gateway (將 @ 改 #)
Return Address: 完整 Email
Email ConnectionInternet → Configure
Mail Host: gateway
SMTP Reply Name: gateway
User ID: user_id#domain
Return Address: 完整 Email
News ReaderNNTP Server: gateway

關鍵提醒: 所有郵件軟體的 User ID 中 @ 必須改為 #,否則 WinGate 無法正確路由。Return Address 必填,否則對方無法回信。

五、補充說明

  • 以 1.3.17 版為例,2.0e 設定相同
  • 文中第 4 步驟 (ping ftp.microsoft.com) 實測可略過,不影響上網
  • 若設定無誤但無法運作,請逐項核對軟體代理設定,特別是 #/@ 區別

結語

WinGate 以強大的多協定代理能力聞名,核心在於:主機雙網卡 (撥號+區網)、TCP/IP 精細規劃、DNS 指向主機、hosts 定義 gateway、各客戶端按協定設定代理。雖硬體路由器已大幅取代,但其「應用層代理 + 防火牆 + 審計」一體化架構思想,仍是理解現代 Secure Web Gateway (SWG) 的基石。

Copyright © Windows教程網 All Rights Reserved