1

How to NAT and route with source and destination in packet

view story
linux-howto

http://serverfault.com – we currently have 2 old Linux servers running iptables that we're switching to a Cisco 2901 router. Since iptables and NAT on a Cisco device work differently, I'm not sure how to set up NAT on the Cisco device. We have a rule in iptables that translates and forwards a packet based on its source and destination address. I.E., the rule says target prot opt in out source destination DNAT tcp -- * * 210.x.y.237 210.z.a.131 tcp dpt:389 to:10.b.c.75:389 So if the packet comes in where the source is 210.x.y.237 and the destination is 210. (HowTos)