68 lines
1.7 KiB
Plaintext
68 lines
1.7 KiB
Plaintext
## /etc/ipsec.conf
|
|
#########################################################################
|
|
conn <<VPN-NAME>>
|
|
authby=secret
|
|
pfs=no
|
|
auto=start
|
|
keyexchange=ikev1
|
|
keyingtries=3
|
|
dpddelay=15
|
|
dpdtimeout=45
|
|
dpdaction=clear
|
|
rekey=no
|
|
ikelifetime=3600
|
|
keylife=3600
|
|
type=transport
|
|
left=%defaultroute
|
|
leftprotoport=17/1701
|
|
right=<<VPN-SERVER-ADDRESS>>
|
|
rightprotoport=17/%any
|
|
ike=aes128-sha1-modp2048,aes256-sha1-modp4096,aes128-sha1-modp1536,aes256-sha1-modp2048,aes128-sha1-modp1024,aes256-sha1-modp1536,aes256-sha1-modp1024,3des-sha1-modp1024!
|
|
esp=aes128-sha1-modp2048,aes256-sha1-modp4096,aes128-sha1-modp1536,aes256-sha1-modp2048,aes128-sha1-modp1024,aes256-sha1-modp1536,aes256-sha1-modp1024!
|
|
#########################################################################
|
|
|
|
|
|
## /etc/ipsec.secrets
|
|
#########################################################################
|
|
50.50.56.218 : PSK "<<VPN-PRE-SHARED-KEY>>"
|
|
#########################################################################
|
|
|
|
|
|
## /etc/xl2tpd/xl2tpd.conf
|
|
#########################################################################
|
|
[lac <<VPN-NAME>>]
|
|
lns = 50.50.56.218
|
|
ppp debug = yes
|
|
pppoptfile = /etc/ppp/options.l2tpd.client
|
|
length bit = yes
|
|
#########################################################################
|
|
|
|
|
|
## /etc/ppp/options.l2tpd.client
|
|
#########################################################################
|
|
ipcp-accept-local
|
|
ipcp-accept-remote
|
|
noccp
|
|
refuse-eap
|
|
refuse-chap
|
|
noauth
|
|
idle 1800
|
|
mtu 1410
|
|
mru 1410
|
|
defaultroute
|
|
#usepeerdns
|
|
debug
|
|
logfile /var/log/xl2tpd.log
|
|
connect-delay 5000
|
|
proxyarp
|
|
name <<VPN-USERNAME>>
|
|
password "<<VPN-PASSWORD>>"
|
|
#########################################################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|