Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have a Linux box with two interfaces one with ip and other with ip, aliased.

A xen host is connected with ip and gateway to this through a switch.

on Xen host 2 vms are running with ip and with gateway (that of xen host).

Requirement: NAT to of corresponding vms.

if i do DNAT; ie every packets with destination to then will the reply from reach requesting ip,since packets received at will be having source ip as that of requesting ip and thus rejecting packet from at requesting end.

If i do snat to to fix above problem then how will DNAT ing to work with the above existing SNAT rule?

share|improve this question
DNAT automatically handles both way. You don't have to take care of the return path, it is done automatically. – BatchyX Jan 26 '13 at 13:28
@BatchyX i was not getting reply with out SNAT. – kevin Jan 26 '13 at 16:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.