• 华为防火墙基础自学系列 | Hub Spoke IPsec VdPdNd


    视频来源:B站《乾颐堂HCIP-HCIE-security安全 2019年录制》

    一边学习一边整理老师的课程内容及试验笔记,并与大家分享,侵权即删,谢谢支持!

    附上汇总贴:华为防火墙基础自学系列 | 汇总_COCOgsta的博客-CSDN博客


    Hub Spke IPSec VPN组网

    本组网尝试使用IKE安全策略模板来建立IPSec VPN,策略模板适用于中心站点固定地址,分支站点较多并且使用动态地址的工程环境。

    删除S2SVPN环境

    FW1和FW2删除IPsec策略。

    FW1和FW2删除安全策略。

    配置流程图

    交换机底层桥接

    Hub(FW1)网络配置

    修改g0/0/2接口地址

    修改默认网关

    Spoke1(FW2)网络配置

    修改g0/0/2接口地址

    修改默认网关

    Internet(AR1)网络配置

    配置Internet底层网络

    Spoke(AR2)网络配置

    配置Spoke2底层网络

    Hub配置IPsec(Web)

    Hub新建IPsec策略

    场景为【点到多点】,对端接入类型为【分支网关】,不填写对端IP地址。

    配置感兴趣流,接受对方的安全提议。

    Hub配置安全策略(Web)

    配置地址组,匹配感兴趣的IP地址。

    放行安全策略

    Hub配置IPsec(CLI)

    Hub配置ACL

    Hub配置IKE Proposal

    Hub配置IKE Peer

    Hub配置IPsec proposal

    Hub配置IPsec模板

    Hub配置IPsec policy

    Hub调用IPsec policy

    Hub配置地址组

    Hub配置安全策略(CLI)

    Hub配置安全策略

    Spoke1配置IPsec(Web)

    Spoke配置IPsec策略方式,和配置点到点场景没有区别。

    配置感兴趣流

    Spoke1配置安全策略(Web)

    放行安全策略

    Spoke2配置IPsec

    配置ACL

    配置IKE proposal

    配置IKE peer

    配置IPsec proposal

    配置IPsec policy

    接口下调用ipsec policy

    Hub查看IPse状态

    在Hub上查看IPsec的状态,和两个Spoke协商成功。

    IPsec连通性测试

    使用PC1测试到PC2和PC3的连通性。

    Hub查看IKE SA

    Hub查看IPsec SA

    Spoke2查看IPsec SA

    实验

    SW1

    1. vlan batch 10 11 16 20 30 40 41
    2. interface Ethernet0/0/2
    3. description Link_Hub_G0/0/2
    4. port link-type access
    5. port default vlan 11
    6. interface Ethernet0/0/10
    7. description Link_Internet_G0/0/0
    8. port link-type access
    9. port default vlan 11
    10. interface Ethernet0/0/11
    11. description Link_Internet_G0/0/1
    12. port link-type access
    13. port default vlan 41
    14. interface Ethernet0/0/14
    15. description Link_Spoke2_G0/0/1
    16. port link-type access
    17. port default vlan 41
    18. interface Ethernet0/0/12
    19. description Link_Internet_G0/0/2
    20. port link-type access
    21. port default vlan 40
    22. interface Ethernet0/0/6
    23. description Link_Spoke1_G0/0/2
    24. port link-type access
    25. port default vlan 40
    26. interface Ethernet0/0/13
    27. description Link_Spoke2_G0/0/0
    28. port link-type access
    29. port default vlan 30
    30. interface Ethernet0/0/22
    31. description Link_HCNP_Spoke(PC3)
    32. port link-type access
    33. port default vlan 30
    34. 复制代码

    FW1(Hub)

    1. interface g0/0/1
    2. ip address 10.1.1.10 24
    3. interface g0/0/2
    4. ip address 202.100.10.10 24
    5. undo ip route-static 0.0.0.0 0.0.0.0 202.100.1.11
    6. ip route-static 0.0.0.0 0.0.0.0 202.100.10.254
    7. // 用图形化界面配置后的结果
    8. acl number 3000
    9. rule 5 permit ip source 10.1.1.0 0.0.0.255 destination 10.1.2.0 0.0.0.255
    10. rule 10 permit ip source 10.1.1.0 0.0.0.255 destination 10.1.3.0 0.0.0.255
    11. ike proposal 1
    12. authentication-algorithm sha2-256
    13. integrity-algorithm aes-xcbc-96 hmac-sha2-256
    14. ike peer ike48143238157
    15. exchange-mode auto
    16. pre-shared-key Huawei@123
    17. ike negotiate compatible
    18. ike-proposal 1
    19. remote-id-type none
    20. ipsec proposal prop48143238157
    21. encapsulation-mode auto
    22. esp authentication-algorithm sha2-256
    23. ipsec policy-template tpl48143238157 1
    24. security acl 3000
    25. ike-peer ike48143238157
    26. alias hub_ipsec
    27. proposal prop48143238157
    28. local-address applied-interface
    29. sa duration traffic-based 200000000
    30. sa duration time-based 3600
    31. ipsec policy ipsec4814323820 10000 isakmp template tpl48143238157
    32. interface GigabitEthernet0/0/2
    33. ipsec policy ipsec4814323820 auto-neg
    34. ip service-set ISAKMP type object
    35. service 0 protocol udp source-port 0 to 65535 destination-port 5000
    36. security-policy
    37. rule name ipsec1
    38. source-zone local
    39. destination-zone untrust
    40. source-address 202.100.10.10 mask 255.255.255.255
    41. service ISAKMP
    42. service esp
    43. action permit
    44. rule name ipsec2
    45. source-zone untrust
    46. destination-zone local
    47. destination-address 202.100.10.10 mask 255.255.255.255
    48. service ISAKMP
    49. service esp
    50. action permit
    51. rule name ipsec3
    52. source-zone trust
    53. source-zone untrust
    54. destination-zone trust
    55. destination-zone untrust
    56. source-address address-set ipsec
    57. destination-address address-set ipsec
    58. action permit
    59. 复制代码

    FW2(Spoke1)

    1. interface g0/0/1
    2. ip address 10.1.2.10 24
    3. interface g0/0/2
    4. ip address 202.100.1.10 24
    5. undo ip route-static 0.0.0.0 0.0.0.0 202.100.1.10
    6. ip route-static 0.0.0.0 0.0.0.0 202.100.1.254
    7. 复制代码

    AR1(Internet)

    1. interface g0/0/0
    2. undo portswitch
    3. ip address 202.100.10.254 24
    4. interface g0/0/1
    5. undo portswitch
    6. ip address 202.100.2.254 24
    7. interface g0/0/2
    8. undo portswitch
    9. ip address 202.100.1.254 24
    10. 复制代码

    AR2(Spoke2)

    1. interface g0/0/1
    2. undo portswitch
    3. ip address 202.100.2.10 24
    4. interface g0/0/0
    5. undo portswitch
    6. ip address 10.1.3.10 24
    7. ip route-static 0.0.0.0 0.0.0.0 202.100.2.254
    8. ike proposal 10
    9. encryption-algorithm aes-cbc-128
    10. authentication-algorithm sha2-256
    11. ike peer hub v1
    12. exchange-mode main
    13. pre-shared-key simple Huawei@123
    14. ike-proposal 10
    15. remote-address 202.100.10.10
    16. acl 3000
    17. rule permit ip source 10.1.3.0 0.0.0.255 destination 10.1.1.0 0.00.255
    18. ipsec proposal 10
    19. esp encryption-algorithm aes-128
    20. esp authentication-algorithm sha1
    21. ipsec policy ipsec_policy 10 isakmp
    22. security acl 3000
    23. ike-peer hub
    24. proposal 10
    25. interface g0/0/1
    26. ipsec policy ipsec_policy

  • 相关阅读:
    k8s之部署ingress-nginx
    vue-admin-better前端页面-菜单-权限配置
    springboot+vue房屋租赁系统-求租合同系统java
    【JavaScript】特殊格式的字符串—— JSON
    《Redis设计与实现》阅读总结-4
    基于SpringBoot的在线试题库系统设计与实现
    Java中带图片的数据导出到excel
    各种神经网络的特点、应用和发展史
    java.lang.unsupportedClassVersionError
    前端培训丁鹿学堂:vue3的setup语法糖总结(二)
  • 原文地址:https://blog.csdn.net/guolianggsta/article/details/126722181