[squid-users] Squid with 2 internet lines !

From: Stanislav Nedelchev <stanislav.nedelchev@dont-contact.us>
Date: Thu, 18 Aug 2005 14:48:57 +0200

i'm using to external internet lines
and i want to use second line with squid for transparent proxy is it possible
i have default gateway ot the first internet line here is my squid config
217.10.248.135 - this is IP arddress of my second line .
Thanks in advance .
root@fw:/usr/local/squid/sbin# cat /opt/squid/etc/squid.conf
http_port 192.168.0.1:3128
#http_port 217.10.248.135:3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

cache_mem 32 MB
cache_dir ufs /var/cache/squid 2000 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
cache_swap_log /var/log/squid/swap.log
ftp_passive on
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl SSL method CONNECT
never_direct allow SSL
acl all src 0.0.0.0/0.0.0.0
acl evrocom dst 217.10.248.135
acl manager proto cache_object
acl localnet src 192.168.0.0/255.255.255.0
#tcp_outgoing_address 217.10.248.135 localnet
tcp_outgoing_address 217.10.248.135 localnet
udp_outgoing_address 217.10.248.135 localnet
#tcp_incoming_adress 217.10.248.135
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
#acl purge method PURGE
acl CONNECT method CONNECT

http_access allow localnet
#http_reply_access allow all
#icp_access allow all
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
cache_effective_user nobody
cache_effective_group nobody

#Transparent Proxy
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
httpd_accel_host virtual

forwarded_for off
log_icp_queries off
buffered_logs on
coredump_dir /usr/local/squid/var/cache
maximum_object_size 100000 KB
Received on Thu Aug 18 2005 - 06:49:01 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Sep 01 2005 - 12:00:02 MDT