Windows – How to proxy traffic from one NIC to another

adapternetworkingPROXYroutingwindows

is there any basic proxy server software for Windows that allows you to setup a proxy server on one network interface (NIC/Adapter, etc) and have it route traffic through to the other network interface as if it's being sent from the second interface?

Example:
NIC1 tries to send traffic to Google.com via a software based proxy server on 127.0.0.1:9090
Software proxy sends the traffic out to Google.com through NIC2.

EDIT

I go to Starbucks a lot, and I like to use their free wifi. However, I would prefer to send specific types of traffic over my tethered phone's 3G connection instead of over the Starbucks network.

Best Answer

You could do what you're trying to do with Squid Cache and the tcp_outgoing_address configuration parameter (which I've used on Windows and works fine) but, as Chopper3 says, it's probably better for you to explain why you're trying to do that instead of just asking for what you want to do.

Edit:

You could use ACLs in Squid to define the particular list of sites that need to be sent out the other tcp_outgoing_address. This is a bit of a heavyweight solution for your own local machine but it's certainly feasible to do.

This isn't necessarily a Server Fault-type question, but it's possible that somebody could want to do something similar in a corporate LAN setting.

I've got a Customer site where, for example, accesses to some web sites through a proxy server need to be stamped with a "special" source IP address (by way of the tcp_outgoing_address directive an an authentication ACL that back-ends to the Active Directory) depending on how the authentication occurs (to allow a rather "dumb" upstream proxy server to know that the user is of a given "class" designation when accessing these web sites).

Related Topic