当前位置: 首页 > article >正文

L2TP实验 作业

拓扑图

实验需求

让FW1(PPPoE Client)模拟拨号用户,向内部服务器发送建立拨号连接的请求,并保证连通

实验步骤

安全区域

firewall zone trust 
add int g1/0/0
策略

security-policy     
default action permit 
 

NAS

int g1/0/1
ip address 20.1.1.1 24

firewall zone trust 
add int g1/0/0
firewall zone untrust 

add int g1/0/1
 

LNS

int g1/0/0
ip add 20.1.1.2 24
int g 1/0/1    
ip address 192.168.1.254 24
 

firewall zone trust 
add int g1/0/1
firewall zone untrust 
add int g1/0/0
 

客户端
interface Dialer 1
dialer user user1
dialer-group 1
dialer bundle 1
ip address ppp-negotiate
ppp chap user user1
ppp chap password cipher Password123
dialer-rule 1 ip permit 
int g1/0/0    
pppoe-client dial-bundle-number 1
 

服务端

interface Virtual-Template 1
ppp authentication-mode chap 
The command is used to configure the PPP authentication mode on the local end. 
Confirm that the peer end adopts the corresponding PPP authentication. Continue[
Y/N]:y
ip address 2.2.2.2 24
firewall zone dmz     
]add interface Virtual-Template 1

pppoe-server bind virtual-template 1
aaa
domain default 
Info: The domain default is for common users.
service-type l2tp 

user-manage user user1 domain default 
password Password123

创建隧道

l2tp enable 
l2tp-group 1
tunnel authentication
tunnel password cipher Hello123
start l2tp ip 20.1.1.2 fullusername user1

LNS

ip pool l2tp
Info: It is successful to create an IP address pool.
section 0 172.16.0.2 172.16.0.100
aaa
service-scheme l2tp
Info: Create a new service scheme.
ip-pool l2tp
domain default 
Info: The domain default is for common users.
service-type l2tp
q
user-manage user user1 domain default 
password Password123

nterface Virtual-Template1    
ppp authentication-mode chap 
ip add 172.16.0.1 24
remote service-scheme l2tp
q
firewall zone dmz
add int Virtual-Template 1

l2tp enable 
l2tp-group 1
allow l2tp virtual-template 1 remote lac domain default    
tunnel authentication
tunnel password cipher Hello123
 

认证

l2tp-group 1   
mandatory-chap 
mandatory-lcp


IP route-static 0.0.0.0 0.0.0.0 Dialer1
 

安全策略

security-policy
default action deny 
 Warning: Setting the default interzone packet filtering to deny may affect actu
al data traffic. You are advised to configure the security policy based on the a
ctual services. Are you sure you want to continue? [Y/N]y
rule name l_un
source-zone local 
destination-zone untrust 
source-address 20.1.1.1 32
destination-address 20.1.1.2 32
service l2tp 
service protocol udp source-port 0 to 65535 desti
nation-port 1701
 

rule name l2tp
source-zone untrust 
destination-zone local 
source-address 20.1.1.1 32
destination-address 20.1.1.2 32
service l2tp
service protocol udp destination-port 1701
action permit 
rule name icmp
source-zone dmz 
destination-zone trust 
source-address 172.16.0.0 24
destination-address 192.168.1.0 24
action permit 
 


http://www.kler.cn/a/592744.html

相关文章:

  • 数据通信与计算机网络——网络模型
  • 10、基于osg引擎生成热力图高度图实现3D热力图可视化、3D热力图实时更新(带过渡效果)
  • skywalking微服务链路追踪
  • LLVM学习--外部项目
  • Mistral AI发布开源多模态模型Mistral Small 3.1:240亿参数实现超越GPT-4o Mini的性能
  • NVIDIA Isaac GR00T N1:世界首个开源通用人形机器人基础模型
  • 3D点云数据处理中的聚类算法总结
  • 15 数据结构及算法应用
  • 蓝桥杯真题——洛谷Day13 找规律(修建灌木)、字符串(乘法表)、队列(球票)
  • SqlServer Sql学习随笔
  • Apache Tomcat漏洞公开发布仅30小时后即遭利用
  • SQL Server数据库简介及应用
  • RNN及其变体
  • Deepseek r1 本地部署
  • 一键批量DWG_DXF文件互转——CAD c#插件实现(dwg转dxf dxf转dwg)
  • 物联网为什么用MQTT不用 HTTP 或 UDP?
  • 关于QMetaObject::invokeMethod的作用和用法
  • 2025火狐插件被禁用解决方案 could not be verified for use in Firefox and has been disabled
  • php 高性能,高并发,有哪些框架,扩展,推荐一下,或者技术的实现有哪些
  • Weblogic未授权远程命令执行漏洞复现