How to set the source IP of TCP connections?

dave baukus dbaukus at chiaro.com
Thu Apr 21 08:01:46 PDT 2005


Can you not configure the loop back w/ the address
then bind to it and connect to the forgein end ?
It's not exactly what  you want, but I think its a game
some apps play.

Andre wrote:
> How can I open a TCP connection with a source IP
> address that's not configured on the machine?
> 
> I've created a proxy (like Squid but for another
> protocol), and I use ipfw fwd to get the client's
> TCP connections to this proxy.
> 
> The problem is that the connections that the proxy
> open have the source IP address of the machine where
> the proxy is running on.
> 
> What I'd like to do is to use the IP address of the
> client as the source IP address of connections opened
> by the proxy for that client.
> 
> Any way to do this in FreeBSD 4 or 5?
> 
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
> 

-- 
Dave Baukus
dbaukus at chiaro.com			
	Chiaro Networks Ltd.
	Richardson, Texas
	USA



More information about the freebsd-net mailing list