Answer the question
In order to leave comments, you need to log in
Strongwan how to make even stronger?
Good day! Set up vpn channel through VPS. I use strongwan. What recommendations can you give to improve the security of the vpn channel?
The configs are the following.
Server
conn my-super-vpn
auto=add
compress=no
type=tunnel # defines the type of connection, tunnel.
keyexchange=ikev2
fragmentation=yes
forceencaps=yes
dpdaction=clear
dpddelay=300s
rekey=no
left=%any
leftauth=pubkey
[email protected] #If using IP, define it without the @ sign
leftsourceip=18.18.18.18
leftcert=vpn_server_cert.pem #Reads the VPN server cert in /etc/ipsec.d/certs
leftsendcert=always
leftsubnet=0.0.0.0/0
right=%any
rightid=%any
rightauth=eap-mschapv2
rightsourceip=10.0.1.0/24 #IP address Pool to be assigned to the clients
# rightdns=8.8.8.8
rightsendcert=never
eap_identity=%identity #Defines the identity the client uses to reply to an EAP Identity request.
conn my-super-vpn
auto=start
right=18.18.18.18
rightid=my.super.vpn
rightsubnet=0.0.0.0/0
rightauth=pubkey
leftsourceip=%config
leftid=client1
leftauth=eap-mschapv2
eap_identity=%identity
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question