Chinaunix

标题: 请教完全透明代理(用桥且桥不配任何IP)问题 [打印本页]

作者: www_ftp    时间: 2007-07-31 18:06
标题: 请教完全透明代理(用桥且桥不配任何IP)问题
想用squid做缓存代理,且需要工作在透明桥模式下,不能在桥上配IP.完全透明,既插既用怎么做,老大们有经验吗?

在squid 2.6 中


tproxy          Support Linux TPROXY for spoofing
#                               outgoing connections using the client
#  


是不是可以完成这种功能?如何做?


ifconfig eth0 0.0.0.0 up
ifconfig eth1 0.0.0.0 up

brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1
ifconfig br0 202.X.X.8 netmask 255.255.255.240 up
route add -net 0/0 gw  202.X.X.14

这种不是这种模式.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2