with a quick look at the source code it looks like the comm_connect_addr 
function that you need to do a bind() before connect().
On Thu, 27 Apr 2000, Dinesh wrote:
> Hi!
> 
> 	Does Squid 2 (what else? :-)) support TCP source port mapping?
> 
> 	I need Squid to map all connections from 3 subscribers with their 
> 	network ranges (10.1/16) to (10.3/16)
> 	to a particular range in the source port number of the proxy's
> 	connection to the origin server on ther internet.
> 
> 	Is the feature there? I do not think so. No squid options
> 	suggests this. But I would like the Squid Team to confirm it.
> 
> 	Subscribers	Proxy		Internet
> 			IP	 PORT		IP	PORT
> 	S1 (10.1/16)	10.0.0.1:(2000-2999) to Internet:80		
> 	S2 (10.1/16)	10.0.0.1:(3000-3999) to Internet:80		
> 	S3 (10.1/16)	10.0.0.1:(4000-4999) to Internet:80		
> 	
> 	If feature is not there:
> 
> 	0. Is this idea easily implementable in Squid 2?
> 	1. What is the best way to implement this idea?
> 
> 	Thanks.
> 
> Dinesh
> 
> 
> Status: RO
> Content-Length: 769
> Lines: 27
> 
> 
Received on Wed Apr 26 2000 - 15:23:07 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:53:04 MST