|
|
大家好:
在做透明代理的时候,我若想把某个文件中的ip地址设置为以透明代理的方式上网,如何实现,怎么老是不行呢?
请高手指点,谢谢!
我的代理用的是 acl myfriends "/etc/squid/acl/myfriends"
http_access allow myfriends
现在想让文件/etc/squid/acl/myfriends文件中的ip以透明代理方式上网!
我用的是命令:
iptables -a nat -A PREROUTING -s "/etc/squid/acl/myfriends" -p tcp --dport 80 -j REDIRECT --to-port 3128
文件/etc/squid/acl/myfriends的内容是:192.168.8.55/24
192.168.8.56/24 |
|