華三防火牆使用默認證書配置SSL VPN IP資源典型案例

1 配置需求及說明

1.1 適用的產品系列

本案例適用於軟件平臺為Comware V7系列防火牆:F100-X-G2、F1000-X-G2、F100-X-WiNet、F1000-AK、F10X0等。

注:本案例是在F1000-C-G2的Version 7.1.064, Release 9323P19版本上進行配置和驗證的。

1.2 配置需求及實現的效果

V7防火牆設備作為出口設備,外網PC通過inode軟件撥SSLVPN,認證成功後可以訪問內網192.168.10.0網段的資源。IP地址及接口規劃如下表所示:


華三防火牆使用默認證書配置SSL VPN IP資源典型案例


2 組網圖


華三防火牆使用默認證書配置SSL VPN IP資源典型案例


3 配置步驟

3.1 防火牆上網配置

防火牆上網配置已配置完成,本文只針對SSLVPN配置進行介紹。

3.2 配置SSL VPN網關

#SSLVPN網關IP地址填寫防火牆1口地址222.1.1.1.00,端口號修改為4433,缺省端口為443,443端口和https端口衝突,然後使能網關配置。

sys

[H3C]sslvpn gateway SSLVPNGW

[H3C-sslvpn-gateway-SSLVPNGW]ip address 222.1.1.100 port 4433

[H3C-sslvpn-gateway-SSLVPNGW]service enable

[H3C-sslvpn-gateway-SSLVPNGW]quit

#創建SSL VPN AC接口1,配置接口IP為10.10.10.1/24

[H3C]interface SSLVPN-AC 1

[H3C-SSLVPN-AC1] ip address 10.10.10.1 255.255.255.0

[H3C-SSLVPN-AC1]quit

#創建地址池名稱為“SSLPOOL”,指定IP地址範圍為10.10.10.2——10.10.10.254

[H3C]sslvpn ip address-pool SSLPOOL 10.10.10.2 10.10.10.254

#創建ACL 3999,允許SSL VPN用戶訪問的內網資源192.168.10.0/24網段

[H3C]acl advanced 3999

[H3C-acl-ipv4-adv-3999]rule permit ip destination 192.168.10.0 0.0.0.255

[H3C-acl-ipv4-adv-3999]quit

3.3 配置SSL VPN實例

# 配置SSL VPN訪問實例“SSLVPNSL”引用SSL VPN網關“SSLVPNGW”

[H3C] sslvpn context SSLVPN

[H3C-sslvpn-context-SSLVPN]gateway SSLVPNGW

#引用SSL VPN接口1

[H3C-sslvpn-context-SSLVPN] ip-tunnel interface SSLVPN-AC1

#引用SSL VPN地址池,掩碼和dns

[H3C-sslvpn-context-SSLVPN]ip-tunnel address-pool SSLPOOL mask 255.255.255.0

[H3C-sslvpn-context-SSLVPN]ip-tunnel dns-server primary 114.114.114.114

#創建路由列表“NEIWANG”,添加路由表項192.168.10.0/24

[H3C-sslvpn-context-SSLVPN] ip-route-list NEIWANG

[H3C-sslvpn-context-SSLVPN-route-list-NEIWANG] include 192.168.10.0 255.255.255.0

# 創建SSL VPN策略組“SSLVPNZIYUAN”,引用路由列表“NEIWANG”,配置ACL限制,只有通過ACL檢查的報文才可以訪問IP資源

[H3C-sslvpn-context-SSLVPN] policy-group SSLVPNZIYUAN

[H3C-sslvpn-context-SSLVPN-policy-group-SSLVPNZIYUAN]filter ip-tunnel acl 3999

[H3C-sslvpn-context-SSLVPN-policy-group-SSLVPNZIYUAN]ip-tunnel access-route ip-route-list NEIWANG

[H3C-sslvpn-context-SSLVPN-policy-group-SSLVPNZIYUAN]quit

[H3C-sslvpn-context-SSLVPN] service enable

[H3C-sslvpn-context-SSLVPN]quit

3.4 新建SSL VPN用戶,關聯SSLVPN資源組

#創建SSLVPN本地用戶,配置用戶名密碼user1,服務類型sslvpn,引用之前創建的SSLVPN資源組

[H3C]local-user user1 class network

[H3C-luser-network-user1]password simple user1

[H3C-luser-network-user1]service-type sslvpn

[H3C-luser-network-user1]authorization-attribute sslvpn-policy-group SSLVPNZIYUAN

[H3C-luser-network-user1]quit

3.5 將SSL VPN端口加入安全域,放通對應安全策略

#新建安全域,名稱為“SSLVPN”,將SSL VPN端口1加入到安全域“SSLVPN”

[H3C]security-zone name SSLVPN

[H3C-security-zone-SSLVPN]import interface SSLVPN-AC1

[H3C-security-zone-SSLVPN]quit

#創建服務對象組,組名稱為4433,匹配SSLVPN端

[H3C]object-group service 4433

[H3C-obj-grp-service-4433]service tcp destination eq 4433

[H3C-obj-grp-service-4433]quit

#配置配置安全策略將Untrust到Local域目的端口為TCP4433端口放通

[H3C]security-policy ip

[H3C-security-policy-ip]rule 5 name Untrst-Local

[H3C-security-policy-ip-5-Untrst-Local]action pass

[H3C-security-policy-ip-5-Untrst-Local]source-zone Untrust

[H3C-security-policy-ip-5-Untrst-Local]destination-zone Local

[H3C-security-policy-ip-5-Untrst-Local]service 4433

[H3C-security-policy-ip-5-Untrst-Local]quit

#配置配置安全策略,放通源安全域為SSLVPN,目前安全域為“Trust”的數據流量

[H3C-security-policy-ip]rule 10 name SSLVPN-Trust

[H3C-security-policy-ip-10-SSLVPN-Trust] action pass

[H3C-security-policy-ip-10-SSLVPN-Trust] source-zone SSLVPN

[H3C-security-policy-ip-10-SSLVPN-Trust] destination-zone Trust

[H3C-security-policy-ip-10-SSLVPN-Trust]quit

3.6 保存配置

save force

3.7 配置驗證,查看撥號成功的用戶

dis sslvpn session verbose

User : user1

Context : SSLVPN

Policy group :SSLVPNZIYUAN

Idle timeout : 30 min

Created at : 18:16:02 UTC Sun 08/26/2018

Lastest : 18:32:32 UTC Sun 08/26/2018

User IPv4 address : 222.1.1.99

Alloced IP : 10.10.10.2

Session ID : 3

Web browser/OS : Windows

4 注意事項

1、本案例適應的是默認證書,不需要手工導入CA證書和本地正常

2、不需要配置SSL服務器端策略,SSLVPN網關不需要引用SSL服務器端策略


分享到:


相關文章: