Cau Hinh IOS CA
Cau Hinh IOS CA
SAIGON(config)#interface loopback 1
SAIGON(config-if)#ip address 192.168.1.1 255.255.255.0
HANOI(config)#interface loopback 2
HANOI(config-if)#ip address 192.168.2.1 255.255.255.0
Buoc 2.1 Cau hinh chinh sach IKE (chinh sach pha 1)
Buoc 2.3 Xac dinh luong du lieu duoc ma hoa (luong du lieu duoc bao ve)
Buoc 2.1 Cau hinh chinh sach IKE (chinh sach pha 1)
Buoc 2.3 Xac dinh luong du lieu duoc ma hoa (luong du lieu duoc bao ve)
KIEM TRA: LUC NAY TREN SAIGON THUC HIEN ping 192.168.2.1 source 192.168.1.1 SE
KHONG THANH CONG
VI CHUA CAU HINH CHUNG THUC
TU BUOC 3 SE CAU HINH CHUNG THUC BANG IOS CA TREN ROUTER CISCO
Buoc 3: Cau hinh NTP dam bao dong bo thoi gian giua SAIGON, HANOI, ISP-R3
ISP-R3(config)#ntp master
SAIGON(config)#ntp server 192.168.13.3
HANOI(config)#ntp server 192.168.23.3
ISP-R3#show clock
21:03:04.839 UTC Fri Feb 24 2017
SAIGON#show clock
21:03:12.321 UTC Fri Feb 24 2017
HANOI#show clock
21:03:23.224 UTC Fri Feb 24 2017
SAIGON#show ntp status
Clock is synchronized, stratum 9, reference is 192.168.13.3
nominal freq is 250.0000 Hz, actual freq is 250.0000 Hz, precision is 2**18
ntp uptime is 14200 (1/100 of seconds), resolution is 4000
reference time is DC5B1DA6.BE78BAA9 (21:01:26.744 UTC Fri Feb 24 2017)
clock offset is -76.1153 msec, root delay is 83.94 msec
root dispersion is 5953.36 msec, peer dispersion is 1.45 msec
loopfilter state is 'CTRL' (Normal Controlled Loop), drift is 0.000000000 s/s
system poll interval is 64, last update was 140 sec ago.
Buoc 4: Cau hinh cap khoa RSA tren SAIGON, HANOI va IPS-R3
ISP-R3(cs-server)#issuer-name cn=IOS_CA,ou=Security,o=ngocdai
Buoc 5.4 Tu dong chap nhan yeu cau xin chung chi va cap chung chi
ISP-R3(cs-server)#grant auto
Feb 24 21:12:47.835: %PKI-6-CS_GRANT_AUTO: All enrollment requests will be
automatically granted.
ISP-R3(cs-server)#no shutdown
%Some server settings cannot be changed after CA certificate generation.
% Please enter a passphrase to protect the private key
% or type Return to exit
Password:
Re-enter password:
% Generating 1024 bit RSA keys, keys will be non-exportable...
[OK] (elapsed time was 1 seconds)
% Exporting Certificate Server signing certificate and keys...
Buoc 6: Cau hinh SAIGON, HANOI xac dinh CA, xac thuc CA va yeu cau chung chi tu CA
SAIGON(config)#crypto ca trustpoint CA
Buoc 6.2 Xac dinh thong tin dinh danh cua subject-name trong chung chi
SAIGON(ca-trustpoint)#subject-name cn=SAIGON,ou=Security,o=ngocdai
Buoc 6.3 Xac thuc phuong thuc yeu cau chung chi
Buoc 6.4 Khong yeu cau kiem tra danh sach chung chi khi bi huy bo tren CA
SAIGON(ca-trustpoint)#revocation-check none
Buoc 6.5 Thuc hien xac thuc voi CA
SAIGON(config)#crypto ca authenticate CA
Certificate has the following attributes:
Fingerprint MD5: C5CE6AC3 C9B9E0FD 7BB4C3CC B992BD49
Fingerprint SHA1: 3FDDD679 A349C1F7 13DD09D8 F7F462D8 5AC9531C
Buoc 6.6 Yeu cau chung chi, luc nay se duoc yeu cau 1 mat khau, mat khau nay duoc
dung trong
truong hop khi muon huy bo chung chi hien tai, dung de xac nhan voi CA
SAIGON(config)#crypto ca enroll CA
%
% Start certificate enrollment ..
% Create a challenge password. You will need to verbally provide this
password to the CA Administrator in order to revoke your certificate.
For security reasons your password will not be saved in the configuration.
Please make a note of it.
Password:
Re-enter password:
SAIGON(config)#
Mar 1 00:16:56.863: CRYPTO_PKI: Certificate Request Fingerprint MD5: 15BAE0EA
ED67B3E5 39B1140A B31997FC
Mar 1 00:16:56.867: CRYPTO_PKI: Certificate Request Fingerprint SHA1: C9EC29C3
1CEEE698 47DBEC75 7EEC7417 0406D709
SAIGON(config)#
Mar 1 00:16:58.367: %PKI-6-CERTRET: Certificate received from Certificate
Authority
(Dong nay co nghia la chung chi da duoc nhan thanh cong).
CA Certificate
Status: Available
Certificate Serial Number: 01
Certificate Usage: Signature
Issuer:
cn=IOS_CA
ou=Security
o=ngocdai
Subject:
cn=IOS_CA
ou=Security
o=ngocdai
Validity Date:
start date: 00:08:22 UTC Mar 1 2002
end date: 00:08:22 UTC Feb 28 2005
Associated Trustpoints: CA
HANOI(config)#crypto ca trustpoint CA
HANOI(ca-trustpoint)#subject-name cn=HANOI,ou=Security,o=ngocdai
HANOI(ca-trustpoint)#enrollment url http://192.168.23.3
HANOI(ca-trustpoint)#revocation-check none
HANOI(ca-trustpoint)#exit
HANOI(config)#crypto ca authenticate CA
Certificate has the following attributes:
Fingerprint MD5: C5CE6AC3 C9B9E0FD 7BB4C3CC B992BD49
Fingerprint SHA1: 3FDDD679 A349C1F7 13DD09D8 F7F462D8 5AC9531C
HANOI(config)#crypto ca enroll CA
%
% Start certificate enrollment ..
% Create a challenge password. You will need to verbally provide this
password to the CA Administrator in order to revoke your certificate.
For security reasons your password will not be saved in the configuration.
Please make a note of it.
Password:
Re-enter password:
HANOI(config)#
Mar 1 00:21:17.125: CRYPTO_PKI: Certificate Request Fingerprint MD5: 57C847B6
A38AFA84 2235B1C2 511BE324
Mar 1 00:21:17.129: CRYPTO_PKI: Certificate Request Fingerprint SHA1: F9C108E0
2C8C41C7 CF3421CE 093584A9 16178596
HANOI(config)#
Mar 1 00:21:18.633: %PKI-6-CERTRET: Certificate received from Certificate
Authority
CA Certificate
Status: Available
Certificate Serial Number: 01
Certificate Usage: Signature
Issuer:
cn=IOS_CA
ou=Security
o=ngocdai
Subject:
cn=IOS_CA
ou=Security
o=ngocdai
Validity Date:
start date: 00:08:22 UTC Mar 1 2002
end date: 00:08:22 UTC Feb 28 2005
Associated Trustpoints: CA
KIEM TRA: LUC NAY TU SAIGON THUC HIEN LENH ping 192.168.2.1 source 192.168.1.1
THANH CONG
interface: FastEthernet0/0
Crypto map tag: VPN, local addr 192.168.13.1
inbound ah sas:
interface: FastEthernet0/0
Crypto map tag: VPN, local addr 192.168.23.2
inbound ah sas:
outbound ah sas:
Dung phan mem wireshark bat cac goi tin isakmp va esp
Buoc 7: Cau hinh them tinh nang NAT tren SAIGON va HANOI
Cau hinh NAT tren SAIGON VA HANOI. Dam bao SAIGON va HANOI ping 100.100.100.100
thanh cong.
100.100.100.100 la dia chi interface loopback tren ISP-R3 va dai dien cho moi
truong Internet.
Cach kiem tra:
- Dung SAIGON ping 192.168.2.1 source 192.168.1.1 thi du lieu duoc bao ve. Dung
wireshark test.
- Dung SAIGON ping 100.100.100.100 source 192.168.1.1 thi du lieu khong duoc bao
ve. Dung wireshark test.