I have two separate freeBSD VMs. In VM1 I added 2 interface.



In VM2 I have one interface with

IP address.

In VM1 I started a NAT and now I want to see if it is work properly or not. I'm able to connect to internet with my VM2 ( internet is come through em0 on my VM1) so I know my router which is in VM1 work correctly. Is there any command to show my list of NAT translations or any other way to show that my IP has been translated?


You could use tcpdump -i em0 on VM1 and observe that all packets to and from VM1 have an address of VM1's em0 interface.

If you observe the same packets on em1, you will see this address translated.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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