一、编译

-> Network

添加pptp、l2tp客户端

-> Network

->VPN

添加pptp、l2tp客户端

二、配置

1、 L2TP配置

network配置文件增加:

config interface 'vpn1'
option proto 'l2tp'
option username 'tingpan'
option password '123456'
option server '104.236.136.116'

firewall配置文件增加:

config zone
option name 'wan'
option network 'wan vpn1'
option input REJECT
option forward REJECT
option output ACCEPT
option masq 1

2、pptp设置

编辑network配置文件

Vi /etc/config/network

添加如下:

config interface 'vpn2'
option proto 'pptp'

在防火墙配置文件中添加如下:

config zone
option name 'wan'
option network 'wan vpn1 vpn2 '
option input REJECT
option forward REJECT
option output ACCEPT
option masq 1

相关文章:

  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2022-01-09
  • 2021-07-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案