Operating System - Linux
1751873 Members
5077 Online
108782 Solutions
New Discussion

Re: SNAT and DNAT in Linux

 
Girish_26
Occasional Contributor

SNAT and DNAT in Linux


Hi Everybody

Can some body explain what exactly is SNAT and DNAT preferably with an example for better understanding.....

I know in destination NAT or DNAT address translation occurs before routing...and in source NAT or SNAT address translation occurs after routing.

I need an example on it to clear this concept....

Also any site which clearly explains abt this concept with an example wud b gr8

Thank you in advance for your correct responses....

Girish
1 REPLY 1
Tvs
Regular Advisor

Re: SNAT and DNAT in Linux

hai

let me try....!!!

snat - source nat

that is u r nating the source address..in internat the router will forward public ip only. if you are having a network say 10.0.0.1 to 10.255.255.254 ,this is private ip suppose u want to go to internet. then with this ip u will not be able to communicate the servers in the net. so one thing u can do is u can change the private ip to public ip. this is doing by all proxy and nat services.


and in dnat . destination nat .. here u r nating the destination . this can be implemented if u want load balancing and for some security purpose. and lot of deocuments available in net