Question

Locked

iptables to cisco nat convertion

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

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Back to Networks Forum
2 total posts (Page 1 of 1)  

Hardware Forums