最佳答案
视频教程是没有,参考一下这个案例吧:
https://zhiliao.h3c.com/topic/huati/1247
Router侧设置:
设置连接PC的接口为外网接口,并设置对应的IP地址
interface GigabitEthernet0/1
port link-mode route
ip address 100.100.100.1 255.255.255.0
nat outbound
设置内网接口地址
interface GigabitEthernet0/2
port link-mode route
ip address 200.200.200.2 255.255.255.0
创建SSL VPN网关以及对应的接口地址、IP之后使能
sslvpn gateway gw
ip address 100.100.100.1 port 4400---SSL VPN的网关地址为100.100.100.1,端口为4400
service enable
创建SSL VPN地址池,给连接的终端分配IP地址
sslvpn ip address-pool sslpool 192.168.20.1 192.168.20.100
创建SSL VPN虚拟接口以及接口IP地址(IP地址与地址池地址不要重复)
interface SSLVPN-AC1
ip address 192.168.20.101 255.255.255.0
创建SSL VPN实例test。
sslvpn context test---创建SSL VPN实例test
gateway gw domain test----调用ssl VPN网关,并指定域名为test
ip-tunnel interface SSLVPN-AC1---调用ssl VPN AC接口1
ip-tunnel address-pool sslpool mask 255.255.255.0---调用SSL VPN地址池
ip-route-list rou----创建SSL VPN路由列表
include 30.30.30.0 255.255.255.0---添加路由表项去往要访问的服务器网段
policy-group ziyuan----创建SSL VPN策略
filter ip-tunnel acl 3000----调用ACL策略对IP接入进行过滤
ip-tunnel access-route ip-route-list rou---引用SSL VPN路由列表
service enable----使能ssl VPN实例
创建ACL策略,对IP接入进行过滤,只允许源为ssl vpn用户访问对应的服务器网段
acl advanced 3000
rule 0 permit ip source 192.168.20.0 0.0.0.255 destination 30.30.30.0 0.0.0.255
设置去往服务器的路由(服务器为30.30.30.0网段)
ip route-static 30.30.30.0 24 200.200.200.1
创建ssl用户,服务类型为sslvpn,授权的ssl vpn策略为ziyuan
local-user ssl class network
password cipher $c$3$pRDlynQJQ19IggX9nbCGN+jzZazeVw==
service-type sslvpn
authorization-attribute user-role network-operator
authorization-attribute sslvpn-policy-group ziyuan(0)
您好,请知:
以下是SSL VPN的配置关键点及案例链接:
[SSL_VPN]acl advanced 3000
[SSL_VPN-acl-ipv4-adv-3000]rule 0 permit ip source any
[SSL_VPN-acl-ipv4-adv-3000]quit
[SSL_VPN]sslvpn ip address-pool weijianing 172.16.1.2 172.16.1.254
[SSL_VPN]int SSLVPN-AC 1
[SSL_VPN-SSLVPN-AC1]ip address 172.16.1.1 24
[SSL_VPN-SSLVPN-AC1]quit
[SSL_VPN]sslvpn gateway james
[SSL_VPN-sslvpn-gateway-james]ip address 192.168.200.200
[SSL_VPN-sslvpn-gateway-james]service enable
[SSL_VPN-sslvpn-gateway-james]quit
[SSL_VPN]sslvpn context james
[SSL_VPN-sslvpn-context-james]gateway james
[SSL_VPN-sslvpn-context-james]ip-tunnel address-pool weijianing mask 24
[SSL_VPN-sslvpn-context-james]ip-tunnel interface SSLVPN-AC 1
[SSL_VPN-sslvpn-context-james]ip-route-list james
[SSL_VPN-sslvpn-context-james-route-list-james]include 10.0.0.0 24
[SSL_VPN-sslvpn-context-james-route-list-james]quit
[SSL_VPN-sslvpn-context-james]policy-group ip
[SSL_VPN-sslvpn-context-james-policy-group-ip]filter ip-tunnel acl 3000
[SSL_VPN-sslvpn-context-james-policy-group-ip]ip-tunnel access-route ip-route-list james
[SSL_VPN-sslvpn-context-james-policy-group-ip]quit
[SSL_VPN-sslvpn-context-james]service enable
[SSL_VPN-sslvpn-context-james]quit
[SSL_VPN]local-user weijianing class network
New local user added.
[SSL_VPN-luser-network-weijianing]password simple weijianing
[SSL_VPN-luser-network-weijianing]service-type sslvpn
[SSL_VPN-luser-network-weijianing]authorization-attribute sslvpn-policy-group ip
[SSL_VPN-luser-network-weijianing]quit
https://zhiliao.h3c.com/theme/details/102210
(0)
暂无评论
你好,可以参考如下配置案例:
https://www.h3c.com/cn/d_202103/1390183_30005_0.htm#_Toc65528808
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论