Follow via:
RSS
Email Alert
Question
0 Votes
+ -

iptables to cisco nat convertion

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
15th Jun 2010
Answer the question
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.