ACL: protect a server

Practise this lab in the free NanoTech-kw Network Lab - a Cisco-style simulator that runs in your browser, with hints, an event log and automatic checking.

โ–ถ Open the free Network Lab

Devices: R1, SW1, SW2, PC1, PC2, SRV1

Your task

Task: block PC1 (only) from reaching SRV1 with an extended ACL on R1:
 conf t
 access-list 100 deny icmp host 192.168.1.10 host 192.168.2.100
 access-list 100 permit ip any any
 int g0/0
 ip access-group 100 in

Step by step

  1. Create access-list 100: deny icmp from PC1 to SRV1, then permit everything else.
  2. Apply it inbound on R1 G0/0.
  3. Verify: PC1 is blocked, PC2 still reaches SRV1.

โ–ถ Start this lab in the browser๐Ÿ“– Command guide๐Ÿงญ Watch how TCP works

More labs

Two PCs on a switchRouter between two networksVLANs on a switchStatic routingInter-VLAN routing (router-on-a-stick)Layer-3 switch with SVIsDHCP server on a routerDHCP server + relay + DNSOSPF between three routersRIP v2NAT/PAT to the InternetWireless access pointIPv6 static routingEIGRP between three routersProject: build a small office networkHuawei switch VLANs + Cisco routerOSPF between Huawei and Cisco routersSpanning Tree: who blocks?EtherChannel (LACP)HSRP: a gateway that never diesPort securitySecure remote access (SSH)To the Internet: NAT + DNS + webIPv6 SLAAC + OSPFv3๐Ÿ”ง Fix 1: PC can't leave its network๐Ÿ”ง Fix 2: same VLAN, no ping๐Ÿ”ง Fix 3: one-way routing๐Ÿ”ง Fix 4: inter-VLAN broken๐Ÿ”ง Fix 5: odd subnet problem