Re: [help] Squid 設定問題
※ 引述《ofather.bbs@bbs.csie.ncu.edu.tw (老爹)》之銘言:
> 請問一下,如何依照來源 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
╰◥◤█││█╰─╮
│█◢█││███│
╰───╯╰───╯
討論串 (同標題文章)
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章