Skip to content

Instantly share code, notes, and snippets.

@phantomtypist
Created September 14, 2016 02:15
Show Gist options
  • Save phantomtypist/e5aaf5cb2b9637ef61f4a7413dde6e43 to your computer and use it in GitHub Desktop.
Save phantomtypist/e5aaf5cb2b9637ef61f4a7413dde6e43 to your computer and use it in GitHub Desktop.
Example L2TP config for Ubiquiti EdgeRouter/USG
l2tp {
remote-access {
authentication {
local-users {
username TheUserName {
password ThePassword
}
}
mode local
require mschap-v2
}
client-ip-pool {
start 192.168.1.141
stop 192.168.1.150
}
dhcp-interface eth0
dns-servers {
server-1 192.168.1.2
server-2 192.168.1.3
}
ipsec-settings {
authentication {
mode pre-shared-secret
pre-shared-secret TheSecretKey
}
ike-lifetime 3600
}
mtu 1024
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment