Về cơ bản Firewall Cisco ASA cũng bao gồm các mode giống như trên các dòng switch hay router của Cisco, bao gồm: User EXEC mode, Privileged EXEC mode, Global configuration mode và Sub-configuration mode. Các bạn đăng nhập vào ASA với password để trống:
ciscoasa(config)# hostname CNTTSHOP-FW Logoff -------------------------------------------- Type help or '?' for a list of available commands. |
CNTTSHOP-FW(config)# show password encryption Password Encryption: Disabled Master key hash: Not set(saved) CNTTSHOP-FW(config)# key config-key password-encryption cisco123 CNTTSHOP-FW(config)# password encryption aes CNTTSHOP-FW(config)# show password encryption Password Encryption: Enabled Master key hash: 0x45ebef8e 0x77a0f287 0x90247f80 0x2a184246 0xe85cbcc4(not saved) CNTTSHOP-FW(config)# |
Trên firewall Cisco ASA, các luồng traffic được chia theo các zone, thông thường là 3 zone: outside (vùng kết nối ra internet), inside (vùng mạng LAN nội bộ), DMZ (vùng chưa các máy chủ dịch vụ public ra internet) và được đặt theo nameif với các mức bảo mật (security level) khác nhau.
CNTTSHOP-FW(config)# interface vlan 1 |
Gán Cổng layer 2 vào vlan:
CNTTSHOP-FW(config)# interface e0/0 |
Kiểm tra các port đã được gán vào VLAN
CNTTSHOP-FW#show switch vlan | |||
VLAN ------ 1 2 3 |
Name ---------------------------------- inside outside dmz |
Status ------ up up up |
Ports --------------------------------- Et0/2, Et0/3, Et0/4, Et0/5, Et0/6, Et0/7 Et0/0 Et0/1 |
CNTTSHOP-FW# |
Kiểm tra IP
CNTTSHOP-FW#show interface ip brief | |||||
Interface Ethernet0/0 Ethernet0/1 Ethernet0/2 Ethernet0/3 Ethernet0/4 Ethernet0/5 Ethernet0/6 Ethernet0/7 Internal-Data0/0 Internal-Data0/1 Vlan1 Vlan2 Vlan3 Virtual0 |
IP-Address unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned 192.168.1.1 100.0.0.100 10.0.0.1 127.1.0.1 |
OK? |
Method unset unset unset unset unset unset unset unset unset unset manual manual manual unset |
Status up up up up up up up up up up up up up up |
Protocol up up up up up up up up up up up up up up |
CNTTSHOP-FW(config)# route outside 0.0.0.0 0.0.0.0 100.0.0.1 S* 0.0.0.0 0.0.0.0 [1/0] via 100.0.0.1, outside |
CNTTSHOP-FW(config)# password cisco CNTTSHOP-FW(config)# telnet 192.168.1.3 255.255.255.255 inside CNTTSHOP-FW(config)# telnet timeout 3 CNTTSHOP-FW(config)# show run telnet telnet 192.168.1.3 255.255.255.255 inside telnet timeout 3 CNTTSHOP-FW(config)# |
CNTTSHOP-FW(config)# username admin password cnttshop@123 Do you really want to replace them? [yes/no]: y |
CNTTSHOP-FW(config)# ntp authenticate CNTTSHOP-FW(config)# ntp trusted-key 1 CNTTSHOP-FW(config)# ntp authentication-key 1 md5 cnttshop@123 CNTTSHOP-FW(config)# ntp server 192.168.1.254 |
CNTTSHOP-FW(config)# dhcpd address 192.168.1.10-192.168.1.200 inside CNTTSHOP-FW(config)# dhcpd lease 1800 CNTTSHOP-FW(config)# dhcpd dns 8.8.8.8 8.8.4.4 inside CNTTSHOP-FW(config)# dhcpd address 10.0.0.10-10.0.0.200 outside CNTTSHOP-FW(config)# dhcpd lease 1800 CNTTSHOP-FW(config)# dhcpd dns 8.8.8.8 8.8.4.4 outside |
Trong bài này mình chỉ hướng dẫn các cấu hình cơ bản trên các dòng firewall Cisco ASA thấp với các cổng mặc định ban đầu là layer2 như ASA5505, ASA5506... Đối với các dòng Cisco ASA cao hơn thì các cổng mặc định là Layer 3 cấu hình sẽ khác so với bài viết này.
Bình luận bài viết!