/ip pool
add name=dhcp_poll_VPN_L2TP ranges=192.168.130.15-192.168.130.159
/ppp profile
add dns-server=8.8.8.8,8.8.4.4 local-address=192.168.130.1 name=\
VPN_L2TP remote-address=dhcp_poll_VPN_L2TP
/interface l2tp-server server
set default-profile=VPN_L2TP enabled=yes ipsec-secret=SUA-SENHA-IPSEC \
use-ipsec=yes
/ppp secret
add name=usuario-vpn password=#senha-usuario-vpn# profile=VPN_L2TP service=l2tp
/ip firewall filter
add action=accept chain=input comment="allow L2TP VPN (ipsec-esp)" \
in-interface=WAN1 protocol=ipsec-esp
add action=accept chain=input comment="allow L2TP VPN (1701/udp)" dst-port=\
1701 in-interface=WAN1 protocol=udp
add action=accept chain=input comment="allow L2TP VPN (4500/udp)" dst-port=\
4500 in-interface=WAN1 protocol=udp
add action=accept chain=input comment="allow L2TP VPN (500/udp)" dst-port=500 \
in-interface=WAN1 protocol=udp
Posted by L3UNIX to L3UNIX's deck (2020-08-14 13:36)