[squid-users] CAN TCP_OUTGOING_ADDRESS BIND TO ETH1? How to make D-S-L work on a machine with static routings?

From: Jenny Lee <bodycare_5_at_live.com>
Date: Thu, 26 May 2011 11:21:10 +0000

Hello Squid Users,
 
I have a machine that has static connections (running apache, vsftpd, etc).
 
Upstream bandwidth is costly, so I would like to use our D-S-L connection to save up on some traffic.
 
On D-S-L line, IP changes at each authentication [(PPPoE authentication using a secondary IP route table). I am using a secondary route table as follows:

echo '101 d-s-l' >> /etc/iproute2/rt_tables
ip rule add from 192.168.1.64 table d-s-l
ip route add default via 192.168.1.254 table d-s-l
ip rule add from 192.168.1.0/24 table d-s-l

squid: tcp_outgoing_address 192.168.1.64
 
[192.168.1.64 being ppp interface IP, 192.168.1.254 being DSLAM IP from telco]
 
This works.
 
However, on PPPoE, end points are not known beforehand so I cannot attach squid outgoing.
 
Machine has eth0, eth1, and ppp (over eth1). eth0 is static server IP where main routing is done. D-S-L is on eth1 via ip route table above.
 
Is it possible to bind squid to an interface?
 
I think this sounded absurd :) Other option probably tcp_outgoing_tos/mark?
 
Have a good day!
 
Jenny
Received on Thu May 26 2011 - 11:21:17 MDT

This archive was generated by hypermail 2.2.0 : Thu May 26 2011 - 12:00:03 MDT