How to set the source IP of TCP connections?

Andre Oppermann andre at freebsd.org
Thu Apr 21 07:53:46 PDT 2005


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?

No.

-- 
Andre


More information about the freebsd-net mailing list