Thursday, July 4, 2019

IKEv2 Linux Server (VPS) to Windows Client

I am trying to setup a road warrior VPN to my VPS on a CentOS 6.10 box and Libreswan

Following all instructions, I have successfully created and can log into my VPS using Windows VPN client with a 509 and IKEv2. I get an IP address from the IP pool and all is good.

However, I need to be able to configure the VPN so that all traffic can route through my VPS and a whatismyip will show my VPS's IP address.

As well, I have given my VPS an internal IP address which I cannot ping once connected.

Any advise would be appreciated

Server Config

conn ikev2

 left=%defaultroute leftcert=X.X.X.X leftid=X.X.X.X leftsendcert=always leftsubnet=192.168.103.0/24 leftsourceip=192.168.103.1 leftrsasigkey=%cert right=%any rightid=%fromcert rightaddresspool=192.168.44.10-192.168.44.250 rightca=%same rightrsasigkey=%cert narrowing=yes dpddelay=30 dpdtimeout=120 dpdaction=clear auto=add ikev2=insist rekey=no pfs=no ike-frag=yes ike=aes256-sha2,aes128-sha2,aes256-sha1,aes128-sha1,aes256-sha2;modp1024 

,aes128-sha1;modp1024 phase2alg=aes_gcm-null,aes128-sha1,aes256-sha1,aes128-sha2,aes256-sha2 modecfgdns="8.8.8.8 8.8.4.4" encapsulation=yes mobike=yes

when I connect:

PPP adapter VPN:

Connection-specific DNS Suffix . : IPv4 Address. . . . . . . . . . . : 192.168.44.10 Subnet Mask . . . . . . . . . . . : 255.255.255.255 Default Gateway . . . . . . . . . :

I noticed on my PPP adapter, there is no default gateway, which I am guessing is an issue but not too sure how to proceed

thank you



No comments:

Post a Comment