[squid-users] tcp_outgoing_address not working

From: Bgs <bgs@dont-contact.us>
Date: Thu, 01 Mar 2007 18:37:57 +0100

Hi all,

  For some reason tcp_outgoing_address is not working for me, even
though the setup is simple and look like just the zillion example
configs I found around the net.

Setup: Linux box with 2.5.STABLE13 and several outside IPs (single
connection):

2: eth1: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
     link/ether 00:05:5d:64:89:a0 brd ff:ff:ff:ff:ff:ff
     inet 1.2.3.146/28 brd 1.2.3.159 scope global eth1
     inet 1.2.3.147/28 brd 1.2.3.159 scope global secondary eth1
     inet 1.2.3.148/28 brd 1.2.3.159 scope global secondary eth1
     inet 1.2.3.149/28 brd 1.2.3.159 scope global secondary eth1
     inet 1.2.3.150/28 brd 1.2.3.159 scope global secondary eth1
     inet 1.2.3.151/28 brd 1.2.3.159 scope global secondary eth1
     inet 1.2.3.152/28 brd 1.2.3.159 scope global secondary eth1
     inet 1.2.3.153/28 brd 1.2.3.159 scope global secondary eth1
     inet 1.2.3.154/28 brd 1.2.3.159 scope global secondary eth1
     inet 1.2.3.155/28 brd 1.2.3.159 scope global secondary eth1
     inet 1.2.3.156/28 brd 1.2.3.159 scope global secondary eth1
     inet 1.2.3.157/28 brd 1.2.3.159 scope global secondary eth1
     inet 1.2.3.158/28 brd 1.2.3.159 scope global secondary eth1

We used to NAT different internal IPs to different outside IPs, I want
the same result with squid. Here is the relevant portion of my squid.conf:

acl src_1 src 10.0.0.105
acl src_2 src 10.0.0.106
acl src_3 src 10.0.0.107
acl src_4 src 10.0.0.108
acl src_5 src 10.0.0.109
acl src_6 src 10.0.0.110
acl src_7 src 10.0.0.111
acl src_8 src 10.0.0.112
acl src_9 src 10.0.0.113
acl src_10 src 10.0.0.114
acl src_11 src 10.0.0.115
acl src_bgstest src 10.0.0.136

tcp_outgoing_address 1.2.3.147 src_1
tcp_outgoing_address 1.2.3.148 src_2
tcp_outgoing_address 1.2.3.149 src_3
tcp_outgoing_address 1.2.3.150 src_4
tcp_outgoing_address 1.2.3.151 src_5
tcp_outgoing_address 1.2.3.152 src_6
tcp_outgoing_address 1.2.3.153 src_7
tcp_outgoing_address 1.2.3.154 src_8
tcp_outgoing_address 1.2.3.155 src_9
tcp_outgoing_address 1.2.3.156 src_10
tcp_outgoing_address 1.2.3.157 src_bgstest

tcp_outgoing_address 1.2.3.146

Whatever IP I use, the source IP will be 1.2.3.146. The funny part comes
now: I changed the last (default) rule to .148 and squid still uses the
.146 address.

Do you have any ideas why is squid sticking to the default system IP and
not use any IP given in tcp_outgoing_address?

Thanks
Bgs
Received on Thu Mar 01 2007 - 10:38:10 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 31 2007 - 13:00:01 MDT