How to set the source IP of TCP connections?

From: Andre (andre_at_netvision.com.br)
Date: 04/21/05

  • Next message: Andre Oppermann: "Re: How to set the source IP of TCP connections?"
    Date: Thu, 21 Apr 2005 14:52:56 +0000
    To: freebsd-net@freebsd.org
    
    

    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@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Andre Oppermann: "Re: How to set the source IP of TCP connections?"

    Relevant Pages

    • Re: add and remove program
      ... what to configure at squid / firewall, so that client could update the ... Are you saying your proxy requires authentication?? ...
      (Fedora)
    • Squid transparent proxy DNS error
      ... the the local squid port. ... When I open a browser on a client device I ... I have tried setting the DNS server in squid.conf to point to my ISP's ... manually configure the client browser to use the proxy, ...
      (comp.unix.bsd.freebsd.misc)
    • Re: gethostbyname - how to use with a proxy name?
      ... A TCP connection is identified by ... Microsoft MVP, MCSD ... great with "ordinary" domain names however with a proxy URL name I get ... IPaddresses in the TCP packets to track the packets to determine ...
      (microsoft.public.win32.programmer.networks)
    • Re: Re: tproxy on freebsd
      ... > when my client using the proxy. ... and there should be configuration options for squid. ... server; server thinks its talking to the client; proxy server IP isn't ...
      (freebsd-stable)
    • updates through squid
      ... transparent squid cache proxy. ... downloaded directly from the update server instead of my local squid. ... proxy has a "no-cache" directive which I suppose prevent the client to ...
      (alt.os.linux.suse)