Last active
June 20, 2017 12:37
-
-
Save konosukef/d84d5c883aebee41a7a5499c7ccfe070 to your computer and use it in GitHub Desktop.
L2TP/IPsec PSK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Secrets for authentication using CHAP | |
# client server secret IP addresses | |
username * password * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ipsec.conf - strongSwan IPsec configuration file | |
config setup | |
conn l2tp | |
left=%any | |
leftprotoport=udp/l2tp | |
right=%any | |
rightprotoport=udp/%any | |
keyingtries=1 | |
keyexchange=ikev1 | |
authby=secret | |
type=transport | |
auto=add |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file holds shared secrets or RSA private keys for authentication. | |
# RSA private key for this host, authenticating it to any other host | |
# which knows the public part. | |
: PSK "****" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ms-dns 8.8.8.8 | |
ms-dns 8.8.4.4 | |
auth | |
crtscts | |
lock | |
mru 1280 | |
mtu 1280 | |
proxyarp | |
refuse-pap | |
refuse-chap | |
refuse-mschap | |
require-mschap-v2 | |
noccp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
port = 1701 | |
[lns default] | |
ip range = 10.10.0.2-10.10.0.254 | |
local ip = 10.10.0.1 | |
length bit = yes | |
refuse pap = yes | |
refuse chap = yes | |
require authentication = yes | |
name = l2tp | |
pppoptfile = /etc/ppp/options.l2tpd.lns |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment