Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. # Edge Router Lite VPN Config Script
  2.  
  3. First, get into config mode with `configure`
  4.  
  5. From here, edit the following interface, pool. start and end, PSK, local users and DNS server (add more if needed):
  6.  
  7. ```
  8. set vpn ipsec ipsec-interfaces interface eth0
  9. set vpn l2tp remote-access dhcp-interface eth0
  10. set vpn l2tp remote-access client-ip-pool start 10.10.10.150
  11. set vpn l2tp remote-access client-ip-pool stop 10.10.10.199
  12. set vpn l2tp remote-access ipsec-settings authentication mode pre-shared-secret
  13. set vpn l2tp remote-access ipsec-settings authentication pre-shared-secret "ujbna9s8dkjnaskdjn89"
  14. set vpn l2tp remote-access authentication mode local
  15. set vpn l2tp remote-access authentication local-users username bob password bobbob
  16. set vpn l2tp remote-access mtu 1492
  17. set vpn l2tp remote-access dns-servers server-1 10.10.10.2
  18. ```
  19.  
  20. You can now commit the configuration with the `commit` command, and save it with `save`.
  21.  
  22. You can also verify what was written with the following command:
  23.  
  24. ```
  25. show vpn l2tp remote-access
  26. ```
  27.  
  28. Now type `exit` twice in order to exit the configuration editor.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement