看板FreeBSD
標 題Re: [help] Squid 設定問題
發信站超級光小站 (Mon Oct 18 14:43:50 2004)
轉信站ptt!ctu-reader!ctu-peer!news.nctu!netnews.csie.nctu!news.cs.nthu!bbs.s
※ 引述《[email protected] (老爹)》之銘言:
> 請問一下,如何依照來源 IP 不同,將目的地網頁導向到不同地方
> target: http://www.target.com/
> forward: http://www.target1.com/
> http://www.target2.com/
> source: A, 192.168.1.1
> B, 192.168.1.2
> when A connect target, It will forward to http://www.target1.com/
> when B connect target, It will forward to http://www.target2.com/
> 謝謝
使用 acl 設定,用 google 查一下 squid.conf,有很多範例
ex:
acl src_A dst 192.168.1.1
acl src_B dst 192.168.1.2
--
╭───╮╭─╮
│█◤█││█│ ※ Origin:
超級光小站 <SuperLight.twbbs.org>
│█◢◣╮│█│ ※ From :
61-221-34-37.HINET-IP.hinet.net
╰◥◤█││█╰─╮
│█◢█││███│
╰───╯╰───╯