Advertisement
sa_drug

[MT]: L2TP Server Quick configuration

Dec 4th, 2019
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.80 KB | None | 0 0
  1. /interface bridge
  2. add comment="=L2TP-SRV-LOOPBACK=" name=loopback10 protocol-mode=none
  3. /ip pool
  4. add comment="=L2TP-SRV-POOL=" name=l2tp-POOL ranges=172.0.34.10-172.0.34.250
  5. /interface list
  6. add name=l2tp-conn comment="userconf: contains l2tp connected interfaces"
  7.  
  8. /ppp profile
  9. add address-list=alst-L2TP-CONNECTED change-tcp-mss=yes interface-list=l2tp-conn local-address=172.0.34.1 name=l2tp-profile only-one=yes remote-address=l2tp-POOL use-compression=no use-encryption=no use-mpls=no use-upnp=no
  10.  
  11. /interface l2tp-server server
  12. set authentication=mschap2 default-profile=l2tp-profile enabled=yes ipsec-secret=qwerty1234567 mrru=1614 use-ipsec=yes
  13.  
  14. /interface l2tp-server
  15. add comment="=L2TP-SRV-TEST-ACC01=" name=vpn-acc01-ppp user=vpn-acc01
  16.  
  17. /ppp secret
  18. add name=vpn-acc01 password=qwe123 service=l2tp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement