公司局域网能连上vpn,外网无法连上该vpn
FW直连外网,跟交换机连接后接内网,配置vpn后外网无法访问
(0)
最佳答案
您好,请知:
关于外网无法进行L2TP VPN连接,以下是排查要点,请参考:
1、检查LAC到LNS的基础网络和路由是否可达。
2、检查LAC侧连接LNS时使用的用户名、密码是否准确。
3、检查LAC侧连接LNS时是否能获取到LNS分配的IP地址、子网掩码,如果无法获取到,需要检查LNS上的地址池和VT内的配置。
4、由于是防火墙,防火墙上涉及到的物理端口和VT需要加入安全域,并放通安全策略或域间策略。
其次说到VPN配置后外网无法访问,是指在LNS的后端内网么?如果是,还是检查下NAT和路由、安全策略的配置。
(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
(0)
你好,可以参考我的配置命令
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
#
(0)
验证请注意:window 7 可以正常 L2TP VPN 连接使用;部分 window 10不能连接,需要改注册表,方法如下: https://blog.51cto.com/morgan363/2131626
验证请注意:window 7 可以正常 L2TP VPN 连接使用;部分 window 10不能连接,需要改注册表,方法如下: https://blog.51cto.com/morgan363/2131626
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明