> For the complete documentation index, see [llms.txt](https://adavyshin.gitbook.io/networks/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adavyshin.gitbook.io/networks/docs/vlan-acl.md).

# Vlan ACL

🧭 Работаем внутри сети Headquarter, в частности на коммутаторе <kbd>HQ-SWITCH</kbd>, компьютерах и `HQ-MGMT`.&#x20;

🔧 Создаём VLAN Access Map на коммутаторе <kbd>HQ-SWITCH</kbd> для фильтрации проходящего трафика

```
ip access-list extended ACL_GW_ICMP
  permit icmp any host 172.16.1.254
!
ip access-list extended ACL_ANY_ICMP
  permit icmp any any
!
ip access-list extended ACL_ANY_RDP
  permit tcp any any eq 3389
!
ip access-list extended ACL_ANY_IP
  permit ip any any

vlan access-map VLAN_ACL 10
  map ip address ACL_GW_ICMP
  action forward
vlan access-map VLAN_ACL 20
  map ip address ACL_ANY_ICMP
  action drop
vlan access-map VLAN_ACL 30
  map ip address ACL_ANY_RDP
  action drop
vlan access-map VLAN_ACL 40
  map ip address ACL_ANY_IP
  action forward
!
vlan filter VLAN_ACL vlan-list 1
```

🐧 Пробуем с машины <kbd>HQ-MGMT</kbd> пропинговать все хосты в сети

* [x] ping 172.16.1.254
* [x] ping 172.16.1.10
* [x] ping 172.16.1.101
* [x] ping 172.16.1.102
* [x] ping 172.16.1.103

🐧Пробуем с машины <kbd>HQ-MGMT</kbd> проверить подключение по TCP/3389

```bash
nc -zv 172.16.1.10 3389
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://adavyshin.gitbook.io/networks/docs/vlan-acl.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
