歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> 基於CentOS的簡單反向代理實現

基於CentOS的簡單反向代理實現

日期:2017/3/1 16:56:16   编辑:關於Linux

簡單的反向代理和之前的普通代理服務器拓撲圖基本相同 需要更待如下 www.2cto.com
1.squid服務器 ->重寫squid.conf ->http_port 200.98.10.1:80 vhost ->visible_hostname 200.98.10.1 ->acl all src 0.0.0.0/0.0.0.0 ->http_access allow all ->cache_peer 192.168.3.2 parent 80 0 originserver
->重新配置端口 ->#ifconfig eth0 200.98.10.1 up ->#ifconfig eth1 192.168.3.1 up ->重新應用squid ->#squid -k reconfig
www.2cto.com 2.web服務器 ->ifconfig le0 192.168.3.2 up 3.更改客戶端機器為公網ip 成功訪問~
Copyright © Linux教程網 All Rights Reserved