Connect 3 VM with hiding Middle VM

Discussions about using Linux guests in VirtualBox.
Post Reply
arjunjoshi89
Posts: 1
Joined: 16. Nov 2016, 06:31

Connect 3 VM with hiding Middle VM

Post by arjunjoshi89 »

HI,

I have 3 VM connected. Vm1(eth0)---->(eth0)VM2(eth1)------>(eth0)VM3. There is internal NAT network between VM1 and VM2. Same for VM2 and VM3. I did iptable forwarding in VM2. I have also set route in VM1 and Vm3. I am able to ping VM3 from VM1.

While I am pinging VM3 from VM1, I am also checking tcpdump and wireshark on VM3. I am getting IP address of VM2 (eth1) during this analysis. I want to hide IP address of VM2.

Which changes do I need to on VM2 so while checking on VM3, I will get IP address of VM1 only?

:roll:
Post Reply