最佳答案
SSL缺省端口号是443
http://www.h3c.com/cn/d_201708/1024949_30005_0.htmMSR SSLVPN配置手册。。
Device A为SSL VPN网关设备,连接公网用户和企业私有网络VPN 1。用户通过Device A可以通过IP接入方式安全地访问VPN 1内的Server。Device A通过RADIUS server采用远程认证和授权方式对用户进行认证和授权。
图1-19 IP接入配置组网图
在开始下面的配置之前,假设已完成如下配置:
· Device A与SSL VPN客户端、Server之间路由可达。
· Server上存在到达网段10.1.1.0/24的路由。
· RADIUS server已经部署完成,能够对用户进行认证和授权。
[DeviceA] sslvpn gateway gw
[DeviceA-sslvpn-gateway-gw] ip address 1.1.1.2 port 2000
# 开启SSL VPN网关gw。
[DeviceA-sslvpn-gateway-gw] service enable
[DeviceA-sslvpn-gateway-gw] quit
# 创建地址池ippool,指定IP地址范围为10.1.1.1~10.1.1.10。
[DeviceA] sslvpn ip address-pool ippool 10.1.1.1 10.1.1.10
# 创建SSL VPN AC接口1,配置该接口绑定VPN实例VPN1,并配置接口的IP地址为10.1.1.100/24。
[DeviceA] interface sslvpn-ac 1
[DeviceA-SSLVPN-AC1] ip binding vpn-instance VPN1
[DeviceA-SSLVPN-AC1] ip address 10.1.1.100 24
[DeviceA-SSLVPN-AC1] quit
# 配置SSL VPN访问实例ctx引用SSL VPN网关gw,并配置SSL VPN访问实例关联的VPN实例为VPN1。
[DeviceA] sslvpn context ctx
[DeviceA-sslvpn-context-ctx] gateway gw
[DeviceA-sslvpn-context-ctx] vpn-instance VPN1
# 配置SSL VPN访问实例使用ISP域domain1进行AAA认证。
[DeviceA-sslvpn-context-ctx] aaa domain domain1
# 创建路由列表rtlist,并添加路由表项20.2.2.0/24。
[DeviceA-sslvpn-context-ctx] ip-route-list rtlist
[DeviceA-sslvpn-context-ctx-route-list-rtlist] include 20.2.2.0 255.255.255.0
[DeviceA-sslvpn-context-ctx-route-list-rtlist] quit
# 创建名称为uriacl的URI ACL,并创建对应的URI ACL过滤规则。
[DeviceA-sslvpn-context-ctx] uri-acl uriacl
[DeviceA-sslvpn-context-ctx-uri-acl-uriacl] rule 1 permit uri icmp://20.2.2.0
[DeviceA-sslvpn-context-ctx-uri-acl-uriacl] quit
# 配置SSL VPN访问实例ctx引用SSL VPN AC接口1
[DeviceA-sslvpn-context-ctx] ip-tunnel interface sslvpn-ac 1
# 配置SSL VPN访问实例ctx,并引用路由列表rtlist和地址池ippool,同时配置对IP接入进行URI ACL过滤。
[DeviceA-sslvpn-context-ctx] ip-tunnel address-pool ippool mask 255.255.255.0
[DeviceA-sslvpn-context-ctx] policy-group pgroup
[DeviceA-sslvpn-context-ctx-policy-group-pgroup] filter ip-tunnel uri-acl uriacl
[DeviceA-sslvpn-context-ctx-policy-group-pgroup] quit
# 开启SSL VPN访问实例ctx。
[DeviceA-sslvpn-context-ctx] service enable
[DeviceA-sslvpn-context-ctx] quit
# 配置Radius方案rscheme,指定认证和授权服务器地址均为3.3.3.2、认证和授权的共享密钥均为123456、发送给RADIUS服务器的用户名格式为不携带ISP域名。
[DeviceA] radius scheme rscheme
[DeviceA-radius-rscheme] primary authentication 3.3.3.2
[DeviceA-radius-rscheme] primary accounting 3.3.3.2
[DeviceA-radius-rscheme] accounting-on enable
[DeviceA-radius-rscheme] key authentication simple 123456
[DeviceA-radius-rscheme] key accounting simple 123456
[DeviceA-radius-rscheme] user-name-format without-domain
[DeviceA-radius-rscheme] quit
# 配置用户组group1,授权给该用户组的策略组为pgroup。
[DeviceA] user-group group1
[DeviceA-ugroup-group1] authorization-attribute sslvpn-policy-group pgroup
[DeviceA-ugroup-group1] quit
# 配置ISP域domain1,指定用户授权属性为用户组group1,认证、授权和计费使用的RADIUS方案为rscheme。
[DeviceA] domain domain1
[DeviceA-isp-domain1] authorization-attribute user-group group1
[DeviceA-isp-domain1] authentication sslvpn radius-scheme rscheme
[DeviceA-isp-domain1] authorization sslvpn radius-scheme rscheme
[DeviceA-isp-domain1] accounting sslvpn radius-scheme rscheme
[DeviceA-isp-domain1] quit
# 在Device A上查看SSL VPN网关状态,可见SSL VPN网关gw处于Up状态。
[DeviceA] display sslvpn gateway
Gateway name: gw
Operation state: Up
IP: 1.1.1.2 Port: 2000
SSL server policy configured: ssl
SSL server policy in use: ssl
Front VPN instance: Not configured
# 在Device A上查看SSL VPN访问实例状态,可见SSL VPN访问实例ctx处于Up状态。
[DeviceA] display sslvpn context
Context name: ctx
Operation state: Up
AAA domain: domain1
Certificate authentication: Disabled
Dynamic password: Disabled
Code verification: Disabled
Default policy group: Not configured
Associated SSL VPN gateway: gw
SSL client policy configured: ssl
SSL client policy in use: ssl
Maximum users allowed: 1048575
VPN instance: VPN1
Idle timeout: 30 min
# 用户在PC上启动IP接入客户端软件,输入访问地址1.1.1.2、端口号2000、用户名sslvpn、密码123456,登录成功。
# 在Device A上可以看到用户会话信息。
[DeviceA] display sslvpn session context ctx
SSL VPN context: ctx
Users: 1
Username Conn Idle Time Created User IP address
sslvpn 6 00:02:05 00:03:14 40.1.1.1
# 在PC上查看IPv4路由表,其中40.1.1.1/24为本地网卡地址,10.1.1.1/24为SSL VPN网关设备分配给用户的地址,20.2.2.0/24为到达内部服务器Server的路由。
>route -4 print
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
10.1.1.0 255.255.255.0 On-link 10.1.1.1 276
10.1.1.1 255.255.255.255 On-link 10.1.1.1 276
10.1.1.255 255.255.255.255 On-link 10.1.1.1 276
20.2.2.0 255.255.255.0 On-link 10.1.1.1 276
20.2.2.255 255.255.255.255 On-link 10.1.1.1 276
40.1.1.0 255.255.255.0 On-link 40.1.1.1 276
40.1.1.1 255.255.255.255 On-link 40.1.1.1 276
40.1.1.255 255.255.255.255 On-link 40.1.1.1 276
===========================================================================
# 在PC上可以Ping通服务器地址20.2.2.2。
>ping 20.2.2.2
Pinging 20.2.2.2 with 32 bytes of data:
Reply from 20.2.2.2: bytes=32 time=197ms TTL=254
Reply from 20.2.2.2: bytes=32 time=1ms TTL=254
Reply from 20.2.2.2: bytes=32 time=1ms TTL=254
Reply from 20.2.2.2: bytes=32 time=186ms TTL=254
Ping statistics for 20.2.2.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 197ms, Average = 96ms
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论