I have a Router configured with the following commands:
ip nat inside source static tcp 192.168.1.2 80 interface FastEthernet 0/1 80
It is working perfectly. I have a Public web server (http) with IP address 192.168.1.2
I want to know how many hits the Router encountered for the web server. Kindly guide me what configuration I have to do in the Router to get the detail of the number of hits the webserver had in a time.
access-list 101 permit tcp any eq 80
access-list 101 permit ip any any
then on the interface with the public IP address
ip access-group 101 in
Make sure you include the "permit ip any any" line or all other traffic will be dropped.