Jump to content

Featured Replies

Posted

I am new to iptables. I have a 2 virtual machines.

 

VM1 - I1,I2 (2 interfaces,192.168.122.2,10.0.0.2)

 

VM2 - I1,I2 (2 interfaces,192.168.122.3,10.0.0.3)

 

What I need to implement is,to redirect traffic that is received on I1 of VM1 to I1 of VM2. VM2 on receiving,should process those packets,then send out through its I2 to I2 of VM1. VM1 should then reply to the original request.

 

Example : Say there is a ping request to VM1 at IP 192.168.122.2.

 

The flow should be as follows:

 

Recieve packet at I1,VM1.

 

Redirect those packets to I1,VM2.

 

VM2 should process those packets and then send the output through its I2 to I2 of VM1.

 

VM1 should then send the reply back to the original packet.

 

How do I achieve this?Can anyone please help me out here?

 

Thanks in advance.

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...