ACL estesa — matcher su intervalli di porte
- Sicurezza
- Intermedio
- 7 min
- 2 passi
- Cisco IOS-style
Definisci un'ACL che permette le porte TCP di destinazione 80 e 443 in una singola entry usando range 80 443. Da confrontare con due ACE separate eq 80 e eq 443 — stesso comportamento, metà delle righe.
Apri questo laboratorio nel browser →
Gratis · senza installazione · senza account
Scenario
Le ACL estese accettano questi operatori di porta: | Operatore | Match | | --- | --- | | eq <p> | esattamente porta p | | lt <p> | minore di p | | gt <p> | maggiore di p | | neq <p> | diverso da p | | range <a> <b> | a ≤ porta ≤ b (inclusi) | range è la forma compatta per intervalli di porte contigui. Forme comuni: `` permit tcp any any range 80 443 ← tutto 80..443 inclusi permit udp any any range 16384 32767 ← intervallo voce RTP permit tcp any any range 22 23 ← SSH + Telnet ` Nota: range a b è inclusivo a entrambi gli estremi. range 80 443 permette 80, 443 E ogni porta intermedia (81..442). Per esattamente due porte usa due ACE eq`.
Topologia
1 × router · Cisco IOS-style
R1— router
Cosa farai
Definisci
ip access-list extended WEB-ONLYcon una ACE:permit tcp any any range 80 443.Aggiungi un
deny ip any any log(deny esplicito perché i log mostrino i drop) e collega l'ACL inbound suGi0/0.
Apri questo laboratorio nel browser →
Altri laboratori su questo tema
- ACL: blocca un singolo hostPrincipiante · 10 min
- ACL: named extended — proto + src + dstIntermedio · 12 min
- ACL estesa con
object-group networkIntermedio · 10 min - ACL — entry temporizzate con
time-rangeIntermedio · 12 min
Questo laboratorio in altre lingue
Extended ACL — port range matchersExtended ACL — Port-Range-MatcherACL extendida — coincidencias por rango de puertosACL estendida — matchers de faixa de portasACL étendue — matchers par plage de portsExtended ACL — port range matchers扩展 ACL — 端口范围匹配器拡張 ACL — ポート範囲マッチャー확장 ACL — 포트 범위 매처Расширенный ACL — матчеры по диапазону портовGenişletilmiş ACL — port aralığı eşleştiricileriACL mở rộng — bộ so khớp dải cổng