Community discussions

MikroTik App
 
alenthelong
just joined
Topic Author
Posts: 3
Joined: Mon Mar 23, 2020 4:28 am

<issue> PPPOE WAN and L2TP/IPSEC VPN

Fri May 22, 2020 10:35 am

Hi all,
We have a similar issue at our end too with PPPOE WAN and L2TP/IPSEC VPN.

We basically have a RB951G-2HnD with LT2P/IPSEC configured, that is connected to the internet via a PPPOE connection to a bridged modem
Following a reboot of either the modem or the mikrotik router the PPPOE connection would not be able to connect again.
The only way we found to revive the PPPOE connection is to disable the L2TP server from the PPP section on the mikrotik (disabling the VPN).

Any help on this matter would be greatly appreciated.
 
alenthelong
just joined
Topic Author
Posts: 3
Joined: Mon Mar 23, 2020 4:28 am

Re: <issue> PPPOE WAN and L2TP/IPSEC VPN

Tue May 26, 2020 7:30 am

hi, the config as below:

ppp profile add name=ipsec_vpn local-address=192.168.99.1 dns-server=1.1.1.1
/interface l2tp-server server set enabled=yes default-profile=ipsec_vpn authentication=mschap1,mschap2
/ip ipsec policy set [ find default=yes ] src-address=0.0.0.0/0 dst-address=0.0.0.0/0 protocol=all proposal=default template=yes
/ip ipsec peer add exchange-mode=main passive=yes name=l2tpserver
/ip ipsec identity add generate-policy=port-override auth-method=pre-shared-key secret="mikrotik" peer=l2tpserver
/ip ipsec proposal set default auth-algorithms=sha1 enc-algorithms=3des pfs-group=modp1024
/ip pool add name=vpn-pool range=192.168.99.2-192.168.99.100
/ppp profile
set default local-address=192.168.99.1 remote-address=vpn-pool
/ppp secret
add name=user1 password=123
add name=user2 password=234

/ip firewall filter add chain=input action=accept protocol=udp port=1701,500,4500
/ip firewall filter add chain=input action=accept protocol=ipsec-esp

Who is online

Users browsing this forum: eworm, Google [Bot] and 73 guests