Моя топология: [ИНТЕРНЕТ] || [ C I S C O ] || ||====[Squid FreeBSD] || [MT-GW] || [my client] Попробуйте мою конфигурацию:
_- ip firewall mangle add chain=prerouting protocol=tcp dst-port=80 action=mark-routing new-routing-mark=mark-squid passthrough=yes
ip firewall mangle add chain=prerouting protocol=tcp dst-port=80 action=accept
ip firewall nat add chain=dstnat dst-address=!your-network protocol=tcp dst-port=80 routing-mark=mark-squid action=dst-nat to-addresses=squid-box to-ports=squid-box-port
ip route add gateway=squid-box mark=mark-squid_
FreeBSD Squid configuration (transparent):
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
Не забудьте включить с transparent при установке Squid, пожалуйста, отправьте свой отзыв.
_- ip firewall mangle add chain=prerouting protocol=tcp dst-port=80 action=mark-routing new-routing-mark=mark-squid passthrough=yes
ip firewall mangle add chain=prerouting protocol=tcp dst-port=80 action=accept
ip firewall nat add chain=dstnat dst-address=!your-network protocol=tcp dst-port=80 routing-mark=mark-squid action=dst-nat to-addresses=squid-box to-ports=squid-box-port
ip route add gateway=squid-box mark=mark-squid_
FreeBSD Squid configuration (transparent):
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
Не забудьте включить с transparent при установке Squid, пожалуйста, отправьте свой отзыв.
