Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/srl-labs/srl-acl-lab

Get to know ACLs on SR Linux
https://github.com/srl-labs/srl-acl-lab

clab-topo codespaces srlinux

Last synced: 9 days ago
JSON representation

Get to know ACLs on SR Linux

Awesome Lists containing this project

README

        

# Access Control Lists on SR Linux

Get to know ACLs on SR Linux

---



**[Run](https://codespaces.new/srl-labs/srl-acl-lab?quickstart=1) this lab in GitHub Codespaces for free**.
[Learn more](https://containerlab.dev/manual/codespaces) about Containerlab for Codespaces.
Machine type: 2 vCPU · 8 GB RAM

---

After lab is started the following ping should succeed, as there is no default ACL in place.

```
sudo docker exec -i -t acl-client ping -w 2 -c 2 192.168.20.100
```

Then configure the ACL on ethernet-1/1.0 subinterface of SR Linux to drop ICMP packets destined towards the server:

```bash
cat icmp_drop.cfg | docker exec -i acl-srl sr_cli -e -c
```

Repeat the ping, it should not succeed, as the ICMP drop ACL is in place. You can check the logs on SR Linux to ensure that the packets are being dropped:

```bash
sudo docker exec acl-srl sr_cli show system logging file acl_log
```