如何在Linux中设置透明代理[2]

[入库:2005年9月19日] [更新:2007年3月25日]

本文简介:

# Forward localnet with masquerading (udp and tcp, no icmp!): 
${FW} -F -a m -P tcp -S localnet/8 -D default/0 
${FW} -F -a m -P udp -S localnet/8 -D default/0 

Here all traffic from the local LAN with any destination gets redirected to the 
local port 8080. Rules can be viewed like this: 

IP firewall input rules, default policy: reject 
type prot source destination ports 
acc all 127.0.0.1 127.0.0.1 n/a 
acc/r tcp 10.0.0.0/8 0.0.0.0/0 * -> 80 => 8080 
acc all 10.0.0.0/8 0.0.0.0/0 n/a 
acc tcp 0.0.0.0/0 0.0.0.0/0 * -> * 





 wuzy 回复于:2003-02-24 11:33:23
我喜欢!
顶一下!

 wuzy 回复于:2003-02-24 11:33:23
我喜欢!
顶一下!

 好好先生 回复于:2003-08-11 14:19:23
我想转载一下,可以吗?

 aashen 回复于:2003-08-11 15:50:05
啊,顶

本文关键:如何在Linux中设置透明代理
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top