Mục tiêu thực hành:
- Cấu hình GRE VPN trên Firewall Fortigate bằng CLI.
- Cấu hình Static Route trên Firewall Fortigate.
- Cấu hình Firewall Policy trên Firewall Fortigate.
- Cấu hình GRE VPN trên Router HROffice.
- Cấu hình GRE VPN trên Router Site1.
Các bước triển khai:
Cấu hình GRE VPN trên Firewall Fortigate bằng CLI.
- Khởi tạo GRE Tunnel.
config system gre-tunneledit GreTunnel01set interface wan1set remote-gw 203.0.3.2set local-gw 203.0.2.2endconfig system interfaceedit GreTunnel01set vdom rootset ip 172.16.0.6 255.255.255.255set type tunnelset remote-ip 172.16.0.5 255.255.255.255set interface wan1set allowaccess ping https http telnetend
- Xóa GRE Tunnel.
config system gre-tunneldelete GreTunnel01end
Cấu hình Static Route trên Firewall Fortigate.
config router staticedit 8set dst 10.0.0.0 255.255.255.0set device GreTunnel01nextedit 9set dst 172.16.1.0 255.255.255.0set device GreTunnel01nextend
FGT90D3Z14001509 # get route info routing-table allRouting table for VRF=0Codes: K - kernel, C - connected, S - static, R - RIP, B - BGPO - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate defaultS* 0.0.0.0/0 [10/0] via 203.0.2.1, wan1S 10.0.0.0/24 [10/0] via 172.16.0.5, GreTunnel01C 172.16.0.5/32 is directly connected, GreTunnel01C 172.16.0.6/32 is directly connected, GreTunnel01S 172.16.1.0/24 [10/0] via 172.16.0.5, GreTunnel01C 203.0.2.0/24 is directly connected, wan1FGT90D3Z14001509 #
Cấu hình Firewall Policy trên Firewall Fortigate.
config firewall policyedit 2set name internal.to.greset srcintf internalset dstintf GreTunnel01set srcaddr allset dstaddr allset action acceptset schedule alwaysset service ALLnextedit 3set name gre.to.internalset srcintf GreTunnel01set dstintf internalset srcaddr allset dstaddr allset action acceptset schedule alwaysset service ALLnextend
Cấu hình GRE VPN trên Router HROffice.
interface Tunnel1ip address 172.16.0.1 255.255.255.252tunnel source 203.0.3.2tunnel destination 203.0.1.2exitinterface Tunnel2ip address 172.16.0.5 255.255.255.252tunnel source 203.0.3.2tunnel destination 203.0.2.2exitip route 172.16.1.0 255.255.255.0 Tunnel1ip route 172.16.2.0 255.255.255.0 Tunnel2
Cấu hình GRE VPN trên Router Site1.
interface Tunnel1ip address 172.16.0.2 255.255.255.252tunnel source 203.0.1.2tunnel destination 203.0.3.2exitip route 10.0.0.0 255.255.255.0 Tunnel1ip route 172.16.2.0 255.255.255.0 Tunnel1
Để tìm hiểu thêm về Firewall Fortigate, các bạn có thể tham khảo Khóa học Chuyên đề Firewall Fortigate, hoặc liên hệ với mình thông qua kênh Zalo (Jade Bùi) 076.877.2021.
0 comments