здравствуйте, имеется сеть такого вида:
http://img411.imageshack.us/img411/4162/wishes.pngdefaultrouter у меня 192.168.0.101
у других(192.168.0.69) обычно тоже, но! надо при необходимости
менять у юзера default gateway на 192.168.0.102(192,168,0,70), и через мою машину выходить через 192.168.0.2
при:
natd -a 192.168.0.70 -p 7777
natd -a 192.168.0.3 -p 8888
${ipfw} add divert 7777 ip from 192.168.0.70 to any.
${ipfw} add divert 7777 ip from any to 192.168.0.70 via fxp0
${ipfw} add divert 8888 ip from 192.168.0.69 to any
${ipfw} add divert 8888 ip from any to 192.168.0.3 via vr0
${ipfw} add fwd 192.168.0.101 ip from 192.168.0.70 to any.
${ipfw} add fwd 192.168.0.2 ip from 192.168.0.3 to any
(решение здесь нашёл, спасибо) работает, но squid работает только для меня.
подскажите как ввернуть в эту цепь squid?
squid.conf(часть)
http_port 192.168.0.70:3128
acl localhost src 127.0.0.1/255.255.255.255
acl me src 192.168.0.70
acl other src 192.168.0.69
tcp_outgoing_address 192.168.0.70 me
tcp_outgoing_address 192.168.0.3 other
acl banners url_regex "/usr/local/etc/squid/banners.acl"
http_access deny me banners
http_access deny other banners
http_access allow me
http_access allow other
спасибо