Question

  • Creator
    Topic
  • #2213952

    iptables to cisco nat convertion

    Locked

    by wannano ·

    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

All Answers

Viewing 0 reply threads