12-28-2006 12:15 PM - edited 03-03-2019 03:11 PM
I have a router acting as an Internet gateway. I have a server on the private network that I want to be setup as an FTP server. I have an available public IP address to dedicate to this.
I am having a problem getting it to work.
I have a nat outside statement on my external int. I ahve a nat inside on my internal interface.
The ftp server is setup and works.
How do I get the public IP address to map to the private address?
12-28-2006 12:18 PM
Hi,
If this the setup , then its the plain nat statement
ip nat inside source static "private ip " " public ip "
ref:
http://www.cisco.com/en/US/tech/tk648/tk361/technologies_white_paper09186a0080091cb9.shtml
Hopt this helps
regards
vanesh k
12-29-2006 07:10 AM
Thanks. That worked (after I removed a couple of statements I did close to that command). Can you tell me how to just limit the traffic to port 21?
12-29-2006 11:23 AM
Hi
If you want to restrict only on port w.r.t nat , then you can do this by specifying in the nat statement
ip nat inside source static { tcp | udp }
Example:
ip nat inside source static tcp 192.168.10.1 21 171.69.232.209 21
Or if you have access-list in your wan interface , you can also restrict with the access-list.
Hope this helps.
regards
vanesh k
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide