Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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