ACL์ ๋ผ์ฐํฐ ๋ฟ๋ง ์๋๋ผ ์ค์์น์์๋ ์ค์ ํ ์ ์๋ค. ์ค์์น์์ ๊ตฌ์ฑํ ์ ์๋ ACL์ ์๋์ ๊ฐ๋ค.
1. MAC ACL
MAC ์ฃผ์๋ฅผ ์ด์ฉํด ํธ๋ํฝ์ ์ ์ดํ๋ค. ์ผ๋ฐ์ ์ธ IP ACL๊ณผ ๋ค๋ฅด๊ฒ MAC ACL์ ๋ฐ๋์ Named ACL์ ์ฌ์ฉํด์ผ ํ๋ค.
์ค์
Switch(config)# mac access-list extended <name> Switch(config-ext-macl)# deny host <MAC> host <MAC> Switch(config-ext-macl)# permit any any
๋ง์ผ, ์ฌ๋ฌ ๊ฐ์ MAC์ฃผ์๋ฅผ ์ง์ ํ๋ ค๋ฉด, ์์ผ๋์นด๋ ๋ง์คํฌ๋ฅผ ์ด์ฉํด ์ง์ ํ๋ค.
ex) 0011. CB ๋ก ์์ํ๋ ๋ชจ๋ MAC์ฃผ์๋ฅผ ์ง์ ํ๋ค๋ฉด, ์์ผ๋์นด๋ ๋ง์คํฌ๊ฐ 0000.00FF.FFFF๊ฐ ๋ ๊ฒ์ด๋ค.
2. Port ACL
์ผ๋ฐ์ ์ผ๋ก ๋ผ์ฐํฐ์ ์ฌ์ฉํ๋ IP ACL๊ณผ ๋น์ทํด๋ณด์ด์ง๋ง, Port ACL์ L2 ํฌํธ์ ACL์ ์ ์ฉํ๋ ๊ฒ์ด๋ค. IP์ฃผ์/MAC์ฃผ์ ๋ชจ๋ ์ฌ์ฉํ ์ ์๊ณ , ๋์์ ํํฐ๋ง์ ํ ์๋ ์๋ค.
- ํ๋ ์์ ์์ ํ๋ ๊ฒฝ์ฐ(in๋ฐฉํฅ)์๋ง ACL์ ์ค์ ํ ์ ์๋ค.
- ํน์ ์ค์์น์ VLAN ACL์ด ์ค์ ๋์๊ฑฐ๋ ๋ผ์ฐํฐ์ Inbound ACL์ด ์ค์ ๋์ด์๋ค๋ฉด, ์ฌ์ฉํ ์ ์๋ค.
- Etherchannel์ ์ฌ์ฉํ๋ ์ธํฐํ์ด์ค์์ ์ฌ์ฉํ ์ ์๋ค.
- MAC์ฃผ์๋ก๋ง ํํฐ๋ง ํ๋ค๋ฉด, MAC์ ์ ๊ทผ์ ์ฐจ๋จ๋์ด๋ ํด๋น MAC์ IP๋ก๋ ์ ๊ทผํ ์ ์๋ค.
3. VLAN ACL
VLAN์ ์ ์ฉํ๋ ACL์ด๋ค. ์๋ก ๋ค๋ฅธ VLAN ๋ฒํธ ๊ฐ ์ ์ด, ๊ฐ์ VLAN ๋ฒํธ ๊ฐ ํธ๋ํฝ์ ์ ์ดํ๋ค.
VACL, VLAN Map ์ด๋ผ๊ณ ๋ ํ๋ค.
์ค์
(1) ACL ์์ฑ
(2) VLAN MAP ์์ฑ
(3) VLAN MAP์ VLAN์ ์ ์ฉ
[์ค์ ์์]
- Switch(config)# access-list 100 permit tcp host 10.10.10.1 host 10.10.10.3 eq ssh Switch(config)# access-list 100 permit tcp host 10.10.20.1 host 10.10.10.3 eq ssh Switch(config)# access-list 101 permit ip any any Switch(config)# Switch(config)# vlan access-map <VLAN_MAP_NAME> Switch(config-access-map)# match ip address 100 Switch(config-access-map)# action drop Switch(config-access-map)# exit Switch(config)# Switch(config)# vlan access-map <VLAN_MAP_NAME> Switch(config-access-map)# match ip address 101 Switch(config-access-map)# action forward Switch(config-access-map)# exit Switch(config)# Switch(config)# vlan filter <VLAN_MAP_NAME> vlan-list <VLAN_NUM> -
2,3,4 : Access list๋ฅผ ํตํด ํ์ฉํ ํธ์คํธ๋ฅผ ์ง์ ํ๋ค.
6: VLAN Map์ ์ค์ ํ๋ค.
7: ํ์ฉํ๊ฑฐ๋ ์ฐจ๋จํ ๋์์ ๋ถ๋ฌ์จ๋ค.
8: 7๋ฒ ๋์์ด ์ค๋ฉด Drop(์ฐจ๋จ)ํ๋๋ก ์ค์ ํ๋ค. ๋ณ๋ action ์ค์ ์ ํ์ง ์์ผ๋ฉด, Forward(ํ์ฉ)์ด๋ค.
11: 6๋ฒ๊ณผ ๊ฐ์ ์ด๋ฆ์ ์ฌ์ฉํ๋ค. ์ด๋ฆ์ด ๊ฐ์๋ ์๊ด์๋ค. ์ด์ฐจํผ access-map์ ๋ณด๊ฒ ๋๋ฉด ์๋์ผ๋ก ๋งต ์ด๋ฆ ๋ค์ 20์ด ์ถ๊ฐ๋ก ๋ถ๊ฒ ๋์ด ์๋ก ๋ค๋ฅธ ๋งต์ด๋ค.
12,13: ๋งต ์ด๋ฆ๋ง ์ ์ํ๋ฉด, match / action์ ์ค์ ํ์ง ์์ผ๋ฉด ๋๋จธ์ง ๋ชจ๋ ๊ฒ์ ํ์ฉํ๋ค๋ ์๋ฏธ์ด๋ฏ๋ก 12,13๋ ์๋ตํด๋ ๋๋ค.
16: ์ํ๋ VLAN์ VLAN ๋งต์ ์ ์ฉํ๋ค.
4. PBACL
Policy-Based ACL
IP ์ฃผ์๋ ํฌํธ ๋ฒํธ๋ฅผ ‘Object Group’์ผ๋ก ์ง์ ํ๊ณ , ACL ์์ฑ ์ ‘Object Group’์ ์ฌ์ฉํด ์ง์ ํ๋ ๋ฐฉ์์ด๋ค. Routed / SVI์ ๊ฐ์ L3 ์ธํฐํ์ด์ค์ IPv4๋ง ์ ์ฉํ ์ ์๋ค. ๋ํ, Named ACL๋ก๋ง ์ ์ฉํ ์ ์๋ค.
์ค์
- Switch(config)# object-group ip address <OBJECT_NAME> Switch(config-port-ogroup)# host <IP> Switch(config-port-ogroup)# <NETWORK_ID> <SUBNETMASK> Switch(config-port-ogroup)# exit Switch(config)# Switch(config)# object-group ip address <OBJECT_NAME2> Switch(config-port-ogroup)# eq <PORT_NUM> Switch(config-port-ogroup)# <NETWORK_ID> <SUBNETMASK> Switch(config-port-ogroup)# exit Switch(config)# Switch(config)# ip access-list extended <ACL_NAME> Switch(config-ext-nacl)# permit tcp addgroup <OBJECT_NAME> portgroup <OBJECT_NAME2> any Switch(config-ext-nacl)# deny tcp any any Switch(config-ext-nacl)# exit Switch(config)# int <interface> Switch(config-if)# ip access-group <ACL_NAME> in ๏ปฟ-