小弟有台linux redhat 6.0 现局.域网内的机子希.望通过这台机子做透明代理,进行web访问.电影
现在squid经配置后,在客户端用ie设置后能够.通过312.8端口进行访问...
但无.法利用iptabl.es进行透明访问,配置文件如下:<性病>
#!/bin/sh
modprobe .ip_tables.
modprobe i.p_nat_ftp健康
modprobe ip._conntrack 鲜花
modprobe ip_conntrack._ftp.
echo "Enabling IP .Forwarding...."电脑
echo .1 >; ./proc/sys/net/ipv4/ip_forward 汽车
ec.ho "Startin.g iptables rules".
#Refersh all cha.ins 汽车
/s.bin/iptables -F -t nat学习
iptables -t nat -A PREROUTIN.G -i et.h0 -p tcp --dport 80 -j REDIRECT --TO-PORTS. 3128 女人
IPTABLES -T NAT -A POSTROUT.ING -.s 192.168.0.0/24 -o eth1 -j S.NAT --to 192.168.77.77.
iptables -A FORWARD. -m state --state ESTABLISHED,RELATED -j A.CCEPT教育
现我内部网关地址为ech0 192.168.0..1服务器
出.口地址为 ech1 192.168.77.7.7.
使用透明代理服务,进行web访问时出现如下问题.:投资
######.##################.################## 女人
ERROR
The reque.sted URL co.uld not be retrieved 汽车
-----.----------------------------------------------.--------------.--------------- 杀毒
While t..rying to retrieve the URL: / .
The foll.owing error was enco.untered: ( 游戏 )
Invalid URL
Some .aspec.t of the requested URL is incorrect. Possible problems: 教育
Missing or incorrect access protocol (should be `http://'' or similar) 外汇
M.issing hostname 杀毒
Ille.gal. double-escape in the URL-Path 建材
Illegal character in hostname; un.derscores a.re not allowed .
Your cache administrat.or is root.. 电子
-------.----------------.--------------------------------------------------.-------.
Generated W.ed, 21 Apr 2004 11:51:59. GMT by localhost..localdomain (Squid/2.4.STABLE7) 乙肝
#################.########################.#.
看来现.象好象是把我请求的网址过滤掉了.服务器
如果我请求
http://www.chinaunix.net/jh/38/107156.html,则提示如下:--------------彩票
ERROR
The requested URL could. not be retri.eved外贸
----------.----------.--------------------------------------.----------------------<性病>
While trying. to retri.eve the URL: /jh/38/107156.html.
The following error w.as. encountered: 投资
Invalid URL
Some aspect of the requested URL is incorre.ct. Poss.ible problems: 鲜花
Missing or incorrect access protocol (should be `http://'' or similar) 杀毒
Missin.g hostname 学习
Illegal double-e.scape in the URL-Pat.h .
Ille.gal chara.cter in hostname; underscores are not allowed 电影
Yo.ur cache admini.strator is root. .
-.-------------------------------.------------.------------------------------------ 健康
Generated Wed, 21 Apr 20.04 11.:51:59 GMT by localhost.localdomain (Squid/2.4.STABLE7.) 建材
求高手赐教!!