PDA

View Full Version : installing secureswan ikev2 vpn server



dmwilliams2
July 30th, 2017, 01:22 AM
Im trying to install an ikev2 vpn server.
i can't even get it to bind to port 500
500 is the default port right?

this is my ipsec.conf
i think something is wrong with this configuration file

what is rightsourceip?


conn ikev2-vpn auto=add
compress=no
type=tunnel
keyexchange=ikev2
fragmentation=yes
forceencaps=yes
ike=aes256-sha1-modp1024,3des-sha1-modp1024!
esp=aes256-sha1,3des-sha1!
dpdaction=clear
dpddelay=300s
rekey=no
left=%any
leftid=173.255.211.244
leftcert=/etc/ipsec.d/certs/vpn-server-cert.pem
leftsendcert=always
leftsubnet=0.0.0.0/0
right=%any
rightid=%any
rightauth=eap-mschapv2
rightdns=8.8.8.8,8.8.4.4
rightsourceip=173.255.211.244
rightsendcert=never
eap_identity=%identity

dmwilliams2
July 30th, 2017, 01:26 AM
typing random stuff into the ipsec.conf
only give me an error on

service strongswan restart

and my configuration file had no errors the whole time.

port 500 and 4500 remain closed.

dmwilliams2
July 30th, 2017, 01:36 AM
i really think its not even binding to the port.
telnet doesn't work even when i ssh tunnel.

dmwilliams2
July 30th, 2017, 01:46 AM
rightsourceip is probably a local ip?
10.0.1.5