[KEDUIT] 클라우드 컴퓨팅과 보안솔루션을 활용한 DC 엔지니어 양성교육 - Day77
1. 서론
오늘은 Object를 활용하여 ASA를 설정하는 방법을 배워보았다.
2. 본론
1. ASA(Adaptive Security Appliance)
1. 다음 IP 대역을 'Network-Object'로 설정하시오.
// 특정 Network 혹은 Service를 Object로 정의하여 사용 가능
- 200.1.1.0/24 (영업부)
- 200.2.2.0/24 (관리부)
- 200.2.3.0/24 (인사부)
- 200.2.4.0/24 (IT 지원팀)
- 100.1.1.250 (DNS)
- 100.1.1.251 (Web)
- 100.1.1.252 (FTP)
- 100.1.1.253 (Mail)
//ASA
# Object network Sales
# subnet 200.1.1.0 255.255.255.0
!
# object network MGR
# subnet 200.2.2.0 255.255.255.0
!
# object network HR
# subnet 200.2.3.0 255.255.255.0
!
# object network IT_Support
# subnet 200.2.4.0 255.255.255.0
!
# object network DNS_SVR
# host 100.1.1.250
!
# object network WEB_SVR
# host 100.1.1.251
!
# object network FTP_SVR
# host 100.1.1.252
!
# object network MAIL_SVR
# host 100.1.1.253
2. FTP, DNS Service object를 설정하시오.
# object service DNS_P
# service udp destination eq 53
!
# object service FTP_P
# service tcp destination eq 21
3. 다음 network 대역을 본사 Network 대역으로 object-group을 사용하여 정의하시오.
//다수의 Network/Protocol/Service등을 묶어서 하나의 object-group으로 정의 가능
-200.1.1.0/24(영업부)
-200.2.2.0/24(관리부)
-200.2.3.0/24(인사부)
-200.2.4.0/24(IT지원팀)
# object-group network HQ_IN_NET
# network-object object Sales
# network-object object MGR
# network-object object HR
# network-object object IT_Support
//Optional
# clear configure object
# show run object-group
4. 다음 조건에 맞도록 Service Object-group를 설정하시오.
- Web Service : HTTP, HTTPS
- Mail Service : SMTP, POP3, IMAP
# Object-group service WEB_S
# service-object tcp destination eq 80
# service-object tcp destination eq 443
!
# object-group service MAIL_S
# service-object tcp destination eq 25
# service-object tcp destination eq 110
# service-object tcp destination eq 143
//Object & Object-group을 활용한 Access-list 설정
//HQ Inside에는 영업부/관리부/인사부/IT 지원팀이 모두 포함되어 있다고 가정
- Inside -> DMZ (DNS / Web / FTP / Mail)
- Inside -> Outside (Permit ALL)
- DMZ -> Inside (Deny ALL)
- DMZ -> Outside (DNS / SMTP)
- Outside -> DMZ (DNS / WEB / Mail)
- Outside -> Inside (Deny ALL)
1. Inside -> DMZ
# access-list INSIDE_IN permit object DNS_P object-group HQ_IN_NET object DNS_SVR
# access-list INSIDE_IN permit object-group WEB_S object-group HQ_IN_NET object WEB_SVR
# access-list INSIDE_IN permit object FTP_P object-group HQ_IN_NET object FTP_SVR
# access-list INSIDE_IN permit object-group MAIL_S object-group HQ_IN_NET object MAIL_SVR
# access-list INSIDE_IN deny ip object-group HQ_IN_NET 100.1.1.0 255.255.255.0
//deny ip any any 사용 x(Inside, Outside 모두 거부됨)
# access-group INSIDE_IN in interface Inside
2. Inside -> Outside
# access-list INSIDE_IN permit ip any any
# access-group INSIDE_IN in interface Inside
4. DMZ -> Outside
# object network DMZ_NET //DMZ 네트워크를 object로 묶기
# subnet 100.1.1.0 255.255.255.0
!
# access-list DMZ_IN permit object DNS_P object DMZ_NET any //access-list DMZ_IN permit object DNS_P 100.1.1.0 255.255.255.0 any
# access-list DMZ_IN permit tcp object DMZ_NET any eq 25
# access-list DMZ_IN deny ip any any
# access-group DMZ_IN in interface DMZ
5. Outside -> DMZ
# access-list OUTSIDE_IN permit object DNS_P any object DNS_SVR
# access-list OUTSIDE_IN permit object-group WEB_S any object WEB_SVR
# access-list OUTSIDE_IN permit object-group MAIL_S any object MAIL_SVR
# access-list OUTSIDE_IN deny ip any any
# access-group OUTSIDE_IN in interface Outside
3. 결론
ASA의 Object가 UTM의 Network Definition와 비슷한 느낌이지만, Router 명령어와 조금씩 달라서 헷갈린다.
4. 참고자료
1. Cisco Docs
- ARP
- CDP / VLAN
- Frame Relay
- Static Routing
- VLAN
- VTP
- Routed Port
- AD
- Route Selection
- FHRP
- HSRP
- DHCP
- DNS
- STP
- NAT
- EtherChannel
- DTP
- RIP
- NTP
- Offset List
- Password Encryption
- ACL
- CAR Attack
- Broadcast
- Port Assignments
- IPv6 Static Routing
- HSRP for IPv6
- Clock Rate
- DHCPv6 Guard
- EIGRP
- Express Forwarding
- Routing and Switching
- Load Balancing
- Ping, Traceroute
- Load Balancing
- Fast Switching
- CEF
- DNS
- SSH
- Regular Expression
- OSPF
- EIGRP’s SIA
- NSSA
- AAA
- Understand the Zone-Based Policy Firewall Design
- The Cisco SD-WAN Solution
- Understand the Zone-Based Policy Firewall Design
- ASA cli
2. Linux
- rhel9’s docs
- Linux Directory Structure
- File Types in Linux
- fstab
- Vim Cheat Sheet
- Protecting GRUB with a password
- SELinux
- DNS
- Samba as a server
- DHCP
- NFS
- SSH
- VNC
- heredoc
- docker vs podman + buildqh + skopeo
- Docker란?
- Linux 컨테이너란?
- Container vs VM
- 컨테이너화란?
- container
- 컨테이너 오케스트레이션이란?
- 쿠버네티스란?
- 쿠버네티스 아키텍처 소개
- 쿠버네티스 기본 사항 학습
- 쿠버네티스 클러스터란?
- Ansible과 Puppet: 알아야 할 사항
3. Docker / k8s
- nextcloud
- cadvisor
- Dangling Image
- Swarm
- Install Docker Engine on Ubuntu
- Install kubdadm
- container-runtimes
- kubectl cheat sheet
4. Web
- HTML’s Elements
- Emmet
- JavaScript
- Anchor Tag
- Post, Get
- Block, Inline Elements
- Semantic Web
- Semantic Elements
- CSS
- Viewport_meta_tag
- Media_queries
- JavaScript
5. DB
클라우드 엔지니어를 꿈꾸며 공부를 시작한 초보 엔지니어입니다. 틀린점 또는 조언해주실 부분이 있으시면 친절하게 댓글 부탁드립니다. 방문해 주셔서 감사합니다 :)
댓글남기기