Web Server behind Router

Answered Question
Feb 24th, 2009
User Badges:

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.


regards,


R.B.Kumar

Correct Answer by Jon Marshall about 8 years 4 months ago

R.B


access-list 101 permit tcp any eq 80

access-list 101 permit ip any any


then on the interface with the public IP address


int fa0/1

ip access-group 101 in


Make sure you include the "permit ip any any" line or all other traffic will be dropped.


Jon

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
rais Tue, 02/24/2009 - 08:01
User Badges:
  • Silver, 250 points or more

You can place an Access List on your router public interface to permit port 80 tcp syn. The count would give you the number of connections.


Note that the GET for each of the pulls would increment the counter.


Thanks.

ahmad82pkn Tue, 02/24/2009 - 08:17
User Badges:

Make An inbound ACL with Private ip and port 80, on your LAN interface,


or Try inbound ACL with public ip an dport 80 on your WAN interface.



hclisschennai Tue, 02/24/2009 - 19:20
User Badges:

Hi,


Thanks for your comments.


Can you explain further how to do it?


Just by entering the ACL whether it will work?


R.B.Kumar

Correct Answer
Jon Marshall Wed, 02/25/2009 - 04:14
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

R.B


access-list 101 permit tcp any eq 80

access-list 101 permit ip any any


then on the interface with the public IP address


int fa0/1

ip access-group 101 in


Make sure you include the "permit ip any any" line or all other traffic will be dropped.


Jon

Actions

This Discussion