[KEDUIT] 클라우드 컴퓨팅과 보안솔루션을 활용한 DC 엔지니어 양성교육 - Day76
1. 서론
오늘은 ASA를 cli와 gui를 통해 설정하는 방법을 배워보았다.
2. 본론
1. ASA(Adaptive Security Appliance)
//ASA
# show version
# show firewall //Firewall mode: Router(Layer-3 Firewall)
!
# conf t
# firewall transparent //Layer-3 -> 2
# show firewall
# no firewall transparent //Layer-2 -> 3
!
# sh int ip br
# int g0/0
# no sh
# nameif Inside //ASA는 Interface에 이름을 설정해줘야만 동작
# description #Inside_Network#
# ip add 200.1.1.254 255.255.255.0
# security-level 100 //Inside는 default로 100이지만 설정하는 방법 확인
!
# int g0/1
# no sh
# nameif Outside
# desc #Outside_Network#
# ip add 1.1.100.1 255.255.255.252
# security-level 0
!
# int g0/2
# no sh
# nameif DMZ
# security-level 50
# desc #DMZ_Network#
# ip add 100.1.1.254 255.255.255.0
!
# int Manage 0/0
# no sh
# nameif Management
# security-level 100
# ip add 192.168.1.254 255.255.255.0
# desc #Management Interface#
//ISP
# int f0/1
# no sh
# ip add dhcp
!
# int f1/0
# no sh
# ip add 2.2.2.254 255.255.255.0
!
# int f0/0
# no sh
# ip add 1.1.100.6 255.255.255.252
//CE
# int f0/1
# no sh
# ip add 1.1.100.5 255.255.255.252
!
# int f0/0
# no sh
# ip add 1.1.100.2 255.255.255.252
//User
# no ip routing
# int f0/0
# ip add 200.1.1.2 255.255.255.0
!
# ip default-gateway 200.1.1.254
//Ping Test
//ISP
# ping 10.0.0.1
# ping 1.1.100.5
//CE
# ping 1.1.100.1
//User
# ping 200.1.1.254
//Routing
//ISP
# ip route 0.0.0.0 0.0.0.0 f0/1 10.0.0.1
# ip route 1.1.100.0 255.255.255.252 f0/0 1.1.100.5
# ip route 100.1.1.0 255.255.255.0 f0/0 1.1.100.5
# ip route 200.1.1.0 255.255.255.0 f0/0 1.1.100.5
//CE
# ip route 0.0.0.0 0.0.0.0 f0/1 1.1.100.6
# ip route 100.1.1.0 255.255.255.0 f0/0 1.1.100.1
# ip route 200.1.1.0 255.255.255.0 f0/0 1.1.100.1
//ASA
# route Outside 0 0 1.1.100.2
//NAT
//ISP
# ip access-list standard DMZ_Inside
# permit 100.1.1.0 0.0.0.255
# permit 200.1.1.0 0.0.0.255
# permit 2.2.2.0 0.0.0.255
# permit 1.1.100.0 0.0.0.3
!
# ip nat inside soruce list DMZ_Inside int f0/1 overload
!
# int f0/0
# ip nat inside
!
# int f1/0
# ip nat inside
!
# int f0/1
# ip nat outside
//ASA
# policy-map global_policy
# class inspection_default
# inspect icmp
!
# telnet 200.1.1.0 255.255.255.0 Inside
# telnet 100.1.1.0 255.255.255.0 DMZ
# telnet 1.1.100.2 255.255.255.255 Outside //Outside쪽은 telnet 안되는 것 확인
# password cisco
!
# aaa authentication ssh console LOCAL
# crypto key generate rsa modulus 1024
# ssh 200.1.1.0 255.255.255.0 Inside
# ssh 1.1.100.2 255.255.255.255 Outside //telnet과 달리 ssh는 security level이 낮은쪽에서도 가능
//ASDM(Adaptive Security Device Manager)
//ASA
# clear configure telnet
# clear configure ssh
# ssh 192.168.1.0 255.255.255.0 Management
!
# copy tftp: flash
192.168.1.1
asdm-781-150.bin
# dir /all
# username admin password cisco
# asdm image flash:asdm-781-150.bin
# http server enable
# http 192.168.1.1 255.255.255.255 Management
//Firewall
# access-list OUT->IN extended permit udp any host 100.1.1.250 eq 53 //numbered access list는 지원 x
# access-list OUT->IN extended permit udp any host 100.1.1.251 eq www
# access-list OUT->IN extended permit icmp any 100.1.1.0 255.255.255.0
# access-list OUT->IN extended deny ip any any
# access-group OUT-IN in interface Outside
# object network SALES
# subenet 200.1.1.0 255.255.255.0
!
# object network MGM
# subnet 200.2.2.0 255.255.255.0
!
# object network DNS_SVR
# host 100.1.1.250
!
# object network WEB_SVR
# host 100.1.1.251
3. 결론
ASA의 UI가 생각보다 너무 좋지 않다.
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
클라우드 엔지니어를 꿈꾸며 공부를 시작한 초보 엔지니어입니다. 틀린점 또는 조언해주실 부분이 있으시면 친절하게 댓글 부탁드립니다. 방문해 주셔서 감사합니다 :)
댓글남기기