• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

SecPath F1020 配置L2TP vpn,外网无法连接

2021-01-28提问
  • 1关注
  • 1收藏,1293浏览
依然 零段
粉丝:0人 关注:0人

问题描述:

公司局域网能连上vpn,外网无法连上该vpn

组网及组网描述:

FW直连外网,跟交换机连接后接内网,配置vpn后外网无法访问

最佳答案

粉丝:135人 关注:6人

您好,请知:

关于外网无法进行L2TP VPN连接,以下是排查要点,请参考:

1、检查LAC到LNS的基础网络和路由是否可达。

2、检查LAC侧连接LNS时使用的用户名、密码是否准确。

3、检查LAC侧连接LNS时是否能获取到LNS分配的IP地址、子网掩码,如果无法获取到,需要检查LNS上的地址池和VT内的配置。

4、由于是防火墙,防火墙上涉及到的物理端口和VT需要加入安全域,并放通安全策略或域间策略。

其次说到VPN配置后外网无法访问,是指在LNS的后端内网么?如果是,还是检查下NAT和路由、安全策略的配置。

4 个回答
粉丝:11人 关注:1人

1、排查一下外网的公网IP地址能否访问

2、安全策略配置是否有问题

依然 知了小白
粉丝:0人 关注:0人

公网IP可以,刚接手,安全策略这里不清楚,按照流程配来着。。配置文件看不到,贴下配置,大声帮忙看看。

<ZKY-SZ-WLYJS-FW>dis version
H3C Comware Software, Version 7.1.064, Release 9333P22
Copyright (c) 2004-2019 New H3C Technologies Co., Ltd. All rights reserved.
H3C SecPath F1020 uptime is 15 weeks, 2 days, 0 hours, 32 minutes

Boot image: flash:/f1000fw-cmw710-boot-R9333P22.bin
Boot image version: 7.1.064, Release 9333P22
Compiled Jul 17 2019 16:00:00
System image: flash:/f1000fw-cmw710-system-R9333P22.bin
System image version: 7.1.064, Release 9333P22
Compiled Jul 17 2019 16:00:00

SLOT 1
CPU type: Multi-core CPU
DDR3 SDRAM Memory 2046M bytes
Board PCB Version:Ver.A
CPLD_A Version: 2.0
CPLD_B Version: 4.0
Basic BootWare Version: 2.03
Extend BootWare Version: 2.03
Board PFC Version:Ver.A
NandFlash PCB Version:Ver.A
[SubSlot 0]16GE+8SFP (Hardware)Ver.A, (Driver)1.0, (Cpld)4.0
<ZKY-SZ-WLYJS-FW>dis cu
<ZKY-SZ-WLYJS-FW>dis current-configuration
#
version 7.1.064, Release 9333P22
#
sysname ZKY-SZ-WLYJS-FW
#
context Admin id 1
#
telnet server enable
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
security-policy disable
#
ip pool aaa 172.0.0.2 172.0.0.254
ip pool aaa gateway 172.0.0.1
#
dialer-group 1 rule ip permit
#
dhcp enable
#
lldp global enable
#
password-recovery enable
#
vlan 1
#
object-group ip address 192.168.100.0
0 network subnet 192.168.100.0 255.255.255.0
10 network subnet 192.168.101.0 255.255.255.0
20 network subnet 192.168.102.0 255.255.255.0
30 network subnet 192.168.103.0 255.255.255.0
#
object-group ip address 192.168.20.0
security-zone Trust
0 network subnet 192.168.20.0 255.255.255.0
#
object-group ip address 192.168.30.0
0 network subnet 192.168.30.0 255.255.255.0
#
object-group ip address neiwang
0 network subnet 192.168.101.0 255.255.255.0
10 network subnet 192.168.102.0 255.255.255.0
20 network subnet 192.168.103.0 255.255.255.0
30 network subnet 192.168.104.0 255.255.255.0
40 network subnet 192.168.100.0 255.255.255.0
#
object-group service 1701
0 service udp destination eq 1701
#
dhcp server ip-pool 1
gateway-list 192.168.101.1
network 192.168.101.0 mask 255.255.255.0
dns-list 61.177.7.1 8.8.8.8
#
l2vpn enable
#
interface Virtual-Template1
ppp authentication-mode chap domain system
remote address pool aaa
ip address 172.0.0.1 255.255.255.0
#
interface NULL0
#
interface Vlan-interface1
#
interface GigabitEthernet1/0/0
port link-mode route
ip address 192.168.0.1 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode route
#
interface GigabitEthernet1/0/2
port link-mode route
#
interface GigabitEthernet1/0/3
port link-mode route
ip address XXXXXXX 255.255.255.248 //这是公网地址,隐去
nat outbound 3001
ipsec apply policy center
#
interface GigabitEthernet1/0/4
port link-mode route
ip address 192.168.100.2 255.255.255.0
#
interface GigabitEthernet1/0/5
port link-mode route
ip address dhcp-alloc
nat outbound 3001
#
interface GigabitEthernet1/0/6
port link-mode route
#
interface GigabitEthernet1/0/7
port link-mode route
#
interface GigabitEthernet1/0/8
port link-mode route
#
interface GigabitEthernet1/0/9
port link-mode route
#
interface GigabitEthernet1/0/10
port link-mode route
#
interface GigabitEthernet1/0/11
port link-mode route
#
interface GigabitEthernet1/0/12
port link-mode route
#
interface GigabitEthernet1/0/13
port link-mode route
#
interface GigabitEthernet1/0/14
port link-mode route
#
interface GigabitEthernet1/0/15
port link-mode route
#
interface GigabitEthernet1/0/16
port link-mode route
#
interface GigabitEthernet1/0/17
port link-mode route
#
interface GigabitEthernet1/0/18
port link-mode route
#
interface GigabitEthernet1/0/19
port link-mode route
#
interface GigabitEthernet1/0/20
port link-mode route
#
interface GigabitEthernet1/0/21
port link-mode route
#
interface GigabitEthernet1/0/22
port link-mode route
#
interface GigabitEthernet1/0/23
port link-mode route
#
object-policy ip 1701
rule 0 pass service 1701
#
object-policy ip Any-Any
rule 0 pass counting
#
object-policy ip Local-Trust
rule 0 pass counting
#
object-policy ip Local-Untrust
rule 0 pass counting
#
object-policy ip Trust-Local
rule 0 pass counting
#
object-policy ip Trust-Untrust
rule 0 pass counting
#
object-policy ip Untrust-Local
rule 0 pass counting
#
object-policy ip Untrust-Trust
rule 0 pass counting
#
object-policy ip neiwang
rule 0 pass destination-ip neiwang
#
object-policy ip pass
rule 0 pass
#
security-zone name Local
#
security-zone name Trust
import interface GigabitEthernet1/0/4
#
security-zone name DMZ
#
security-zone name Untrust
import interface GigabitEthernet1/0/3
import interface GigabitEthernet1/0/5
import interface Virtual-Template1
#
security-zone name Management
import interface GigabitEthernet1/0/0
#
zone-pair security source Any destination Any
object-policy apply ip Any-Any
#
zone-pair security source Local destination Trust
object-policy apply ip Local-Trust
#
zone-pair security source Local destination Untrust
object-policy apply ip Local-Untrust
#
zone-pair security source Trust destination Local
object-policy apply ip Trust-Local
#
zone-pair security source Trust destination Untrust
object-policy apply ip Trust-Untrust
#
zone-pair security source Untrust destination Local
object-policy apply ip Untrust-Local
packet-filter 2000
#
zone-pair security source Untrust destination Trust
object-policy apply ip Untrust-Trust
#
scheduler logfile size 16
#
line class aux
user-role network-operator
#
line class console
authentication-mode scheme
user-role network-admin
#
line class usb
user-role network-operator
#
line class vty
user-role network-operator
#
line aux 0
user-role network-admin
#
line con 0
user-role network-admin
#
line vty 0 63
authentication-mode scheme
user-role network-admin
#
ip route-static 0.0.0.0 0 XXXXXXX //这是公网路由,隐去
ip route-static 0.0.0.0 0 192.168.1.1 preference 70
ip route-static 192.168.101.0 24 192.168.100.1
ip route-static 192.168.102.0 24 192.168.100.1
#
ssh server enable
#
acl basic 2000
rule 0 permit
#
acl advanced 3001
rule 0 permit ip
#
domain system
authentication ppp local
#
domain default enable system
#
role name level-0
description Predefined level-0 role
#
role name level-1
description Predefined level-1 role
#
role name level-2
description Predefined level-2 role
#
role name level-3
description Predefined level-3 role
#
role name level-4
description Predefined level-4 role
#
role name level-5
description Predefined level-5 role
#
role name level-6
description Predefined level-6 role
#
role name level-7
description Predefined level-7 role
#
role name level-8
description Predefined level-8 role
#
role name level-9
description Predefined level-9 role
#
role name level-10
description Predefined level-10 role
#
role name level-11
description Predefined level-11 role
#
role name level-12
description Predefined level-12 role
#
role name level-13
description Predefined level-13 role
#
role name level-14
description Predefined level-14 role
#
user-group system
#
local-user admin class manage
password hash $h$6$b2NPQP+TlAGWYWu0$y6XiVEgseIUfZJBtixdQ/yQ+Y1Zca6GidsXl3dA3K5a
N2AxzAynYZNWmW4P6LbdQ3Ap31EONx6tFOXFFs5TMuA==
service-type ssh telnet terminal http https
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
#
local-user vpdnuser class network
password cipher $c$3$sHODGMYtw9nXBnGD3c/GI8IbzhdzUBxddI5RaWZ+bg==
service-type ppp
authorization-attribute user-role network-operator
#
ssl client-policy 1
#
session statistics enable
session top-statistics enable
#
ipsec logging negotiation enable
#
ipsec policy center 1 isakmp template center
#
l2tp-group 1 mode lns
allow l2tp virtual-template 1
undo tunnel authentication
tunnel name LNS
tunnel password cipher $c$3$/rZ56tkzB/jrqrw5CjK/nwCLtBGf+XB/8gEL
#
l2tp enable
#
ike logging negotiation enable
#
ike profile center_IPv4_1
keychain center_IPv4_1
exchange-mode aggressive
local-identity fqdn center
match remote identity address 0.0.0.0 0.0.0.0
match local address GigabitEthernet1/0/3
#
ike keychain center_IPv4_1
match local address GigabitEthernet1/0/3
pre-shared-key address 0.0.0.0 0.0.0.0 key cipher $c$3$Qk6bYino0PgU5hOcNfU2P43g
Yg1ll6pZpw==
#
ip http enable
ip https enable
webui log enable
#
return     

知了小白
粉丝: 关注:

客户端能登录成功么?

能获取到地址么?

到内网的路由有么?

接口加入到域里没有?

策略是否放通

粉丝:1人 关注:1人

你好,可以参考我的配置命令
sys

local-user vpnuser class network     //L2tp账户
password simple vpnuser               //L2tp密码
service-type ppp
quit
domain system
authentication ppp local
quit
l2tp enable
ip pool aaa 172.16.100.10 172.16.100.200     //L2tp地址池
ip pool aaa gateway 172.16.100.1                 //L2tp虚拟网关
int virtual-template 1
ppp authentication-mode chap domain system
remote address pool aaa
quit
security-zone name Untrust
import interface Virtual-Template 1
quit
acl basic 2000
rule permit source any
quit
zone-pair security source untrust destination local
packet-filter 2000
quit
l2tp-group 1 mode lns
tunnel name LNS
allow l2tp virtual-template 1
undo tunnel authentication
qu
sa f
#

验证请注意:window 7 可以正常 L2TP VPN 连接使用;部分 window 10不能连接,需要改注册表,方法如下: https://blog.51cto.com/morgan363/2131626

烟花里的尘埃 发表时间:2021-01-28 更多>>

验证请注意:window 7 可以正常 L2TP VPN 连接使用;部分 window 10不能连接,需要改注册表,方法如下: https://blog.51cto.com/morgan363/2131626

烟花里的尘埃 发表时间:2021-01-28

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明