iptables to cisco nat convertion - TechRepublic
Question
June 15, 2010 at 06:28 AM
wannano

iptables to cisco nat convertion

by wannano . Updated 16 years ago

I want to convert the following command of iptables with cisco NAT.

Lan Ip Interface= Eth0 (192.168.1.0/24)
Public Ip interface= Eth1 (1.2.3.4)

iptables -t nat -A POSTROUTING -o eth1 -p tcp -s 192.168.1.9/32 -d 4.3.2.1/32 -j SNAT –to-source 1.2.3.4 –dport 34

/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp -d 1.2.3.4 –dport 34 -j DNAT –to 192.168.1.9

I am now using a linux box as a gateway. but now i have to replace it with a cisco router. Can someone tell me how will be the command in the cisco router?

Thanks

This discussion is locked

All Comments