Greets,
I'm using this normal squid installation for about a year.
Now I wanted to instruct squid to send outgoing traffic to a new interface:
eth1. This server is using eth0 for mail and other services.
So, I just added this line to squid configuration:
tcp_outgoing_address 10.10.10.8
This would mean that all squid traffic pass by eth1's ip: 10.10.10.8
But... It doesn't work! Squid stalls, and give no answer.
Log files record the request, but never contacts remote web server.
I already changed all *output and *incoming directives on squid.conf, but the
result is allways the same.
I have no clue, since running ping and traceroute commands with
interface-forcing, i get sucess.
Please check the following logs and letme know if you have any clue.
TIA
I have this route configuration:
Destination Gateway Genmask Flags Metric Ref Use Iface
6.4.18.160 0.0.0.0 255.255.255.240 U 0 0 0 eth0
10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 6.4.18.174 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 10.10.10.252 0.0.0.0 UG 0 0 0 eth1
And this IP addresses:
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:02:a5:ef:b6:81 brd ff:ff:ff:ff:ff:ff
inet 6.4.18.161/28 brd 62.48.187.175 scope global eth0
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:02:a5:ef:b6:80 brd ff:ff:ff:ff:ff:ff
inet 10.10.10.8/24 brd 10.10.10.255 scope global eth1
Ping forcing eth0:
PING www.squid-cache.com (198.64.149.47) from 6.4.18.161 eth0: 56(84) bytes of
data.
64 bytes from 198.64.149.47: icmp_seq=1 ttl=48 time=145 ms
64 bytes from 198.64.149.47: icmp_seq=2 ttl=48 time=146 ms
64 bytes from 198.64.149.47: icmp_seq=3 ttl=48 time=146 ms
64 bytes from 198.64.149.47: icmp_seq=4 ttl=48 time=145 ms
Ping forcing eth1:
PING www.squid-cache.com (198.64.149.47) from 10.10.10.8 eth1: 56(84) bytes of
data.
64 bytes from 198.64.149.47: icmp_seq=1 ttl=48 time=134 ms
64 bytes from 198.64.149.47: icmp_seq=2 ttl=48 time=134 ms
64 bytes from 198.64.149.47: icmp_seq=3 ttl=48 time=133 ms
64 bytes from 198.64.149.47: icmp_seq=4 ttl=48 time=134 ms
Received on Wed Aug 04 2004 - 17:13:37 MDT
This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:01 MDT