02-01-2013 03:59 PM - edited 03-11-2019 05:55 PM
Hi,
I am using NAT with overload (PAT). i want to allow incoming traffic HTTP for my Web Server and FTP for FTP Server. please let me know which Commands (NAT, ACL etc.....) i need to used on Router 3845. Thanks
02-01-2013 10:16 PM
It would be:
ip nat inside source static tcp
ip nat inside source static tcp
or alternatively, if you are using the WAN interface as the public ip, then:
ip nat inside source static tcp
ip nat inside source static tcp
ACL would be applied to the WAN interface:
access-list 120 permit tcp any host
access-list 120 permit tcp any host
02-02-2013 06:42 AM
Hi Jennifer,
i did the same config but its not working, if i "setup ip access-group 120 in" on interface fastethernet 0/0/1 then my internet stop working, following is my config
02-02-2013 11:14 AM
Hello Qasim,
Yes, as soon as you add that access-group the internet will stop because you were only permiting such traffic ( HTTP and FTP to that particular server) and ACL's work different on a router with default configuration ( No such a stateful information than an ASA)
That being said here is what you need
ip nat inside source list acl_nat interface FastEthernet0/0/1 overload
ip nat inside source static tcp 192.168.10.25 80 interface FastEthernet0/0/1 80
With only that you should be able to access 192.168.10.25 on port 80 via fast ethernet 0/0/1 ip address
If then FTP is need it:
ip nat inside source static tcp 192.168.10.25 21 interface fastethernet 0/0/1 21
Now with that configuration (without ACL's this should work).
If security is need it then that is a different whole story,
Try that and let us know
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