vote up 0 vote down star

I have two machines: Windows and Linux.

The Windows machine should make raw socket requests (send TCP/IP packets) to the internet through the Linux machine. It is not limited to HTTP.

The Linux machine has a lot of IP addresses. Each session from Windows machine should be performed with a single Linux's IP. But different sessions should be distributed among IPs.

I'm new to Linux and don't know how to implement such a proxy there.

Please give me some advises to start with.

flag
1  
Please edit your post to explain what you're trying to accomplish. – jhg Nov 6 at 18:09
1  
Sounds more like a gateway/router than a proxy to me, something you'd solve with simple iptables IP-masquerading rules rather than by programming anything. – bobince Nov 6 at 18:10

migrated from stackoverflow.com

2 Answers

vote up 1 vote down

Sounds like you want the Linux machine to be a firewall running NAT. I'm not sure why you need the Linux machine to have multiple IPs on the side facing the internal Windows system.

link|flag
vote up 0 vote down

I suggest link below should be useful in this situation. I'm not sure you clearly understand what you really need.

An Advanced 4.4BSD Interprocess Communication Tutorial

As I see you're trying to get some proxy functionality for windows machine. Do you really need RAW sockets? What protocols do you really need to proxy? Why to use several IP interfaces on linux machine?

link|flag

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.