精華區beta FreeBSD 關於我們 聯絡資訊
※ 引述《"雨" <[email protected]>, 看板: 386bsd》之銘言: : 小弟不敢動原有的伺服器~~於是自己架了server來做demo : a server(bsd4.8)有nat+ipfirewall+dhcp(有加options IPFIREWALL_FORWARD) : b server(bsd4.7)電腦有proxy : 現在a server下的電腦~可以用ie指定用b server的proxy可以出的去~ : 而小弟想~只要a SERVER走www的~皆用b的proxy : 於是在a server中設定/etc/rc.conf中firewall_type="simple"(這個可以預設保護整個網域) : 並在/etc/rc.firewall中最後加入 : /sbin/ipfw add 1 fwd B伺服器的ip,3128 tcp from 192.168.1.0/24 to any 80 : 並在b server中的/usr/local/etc/squid/squid.conf中加入 : httpd_accel_host b伺服器的domain : httpd_accel_port 80 : httpd_accel_with_proxy on : httpd_accel_uses_host_header on : 這樣子~還是~不行~請大家幫忙我一下,哪裡有錯?? /sbin/ipfw add 10 divert 8668 all from any to any via fxp0 #<--NAT要在前面 ^^^^ 改成該網卡 /sbin/ipfw add 20 fwd B伺服器的ip,3128 tcp from 192.168.1.0/24 to any 80 -- ※Post by sheng from 218-168-7-253.HINET-IP.h 臺灣第一所縣立高職 臺北縣立鶯歌高職-陶瓷薪傳 ______┌┬╮ 天之驕子 BBS ˙ bbs.ykvs.tpc.edu.tw (163.20.163.9) |▉|▉|▉ ,._.,~`~*-,._.,-*~`^`~*-,._.._.,-*~`^'~*-,._.._.,-*~~*-,. ═●═●═┘`~*