Score:0

Vpn . Nps . Active directory . Strongswan ikev2

co flag

please help me I configured a strongswan IKEV2 On Centos7 vps and NPS and Active Directory for my authentication and accounting(radius) on windows server 2016 vps when i want to connect to my ikev2 vpn on windows 10 i get this error:

the remote connection was denied because the username and password combination you provided is not recognized or the selected authentication protocol is not permitted on the remote access server

this is my IPSEC.CONF

config setup

charondebug="ike 2, knl 2, cfg 2, net 2, esp 2, dmn 2, mgr 2"

uniqueids=no

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-modp1024!

dpdaction=clear

dpddelay=300s

rekey=no

left=%any

leftauth=pubkey

[email protected]

leftcert=/etc/ipsec.d/certs/vpn.cr-51-test.local.crt.pem

leftsendcert=always

leftsubnet=0.0.0.0/0

lefthostaccess=yes

leftfirewall=yes

right=%any

rightid=%any

rightauth=eap-radius

rightgroups="CN=VPN_USERS/CN=Users"

rightsourceip=10.10.0.0/24

rightdns=192.150.150.10

rightsendcert=never

rightfirewall=yes

eap_identity=%identity


EAP-RADIUS.conf

load = yes

...

secret = radius secret server = radius ip address


ipsec.secrets:

domain or vpnip : RSA vpnhostkey.der

: PSK "radius secret"


on NPS server and active directory

i configured radius

Freindly name: vpn

Addresss (IP or DNS): STRONGSWAN IP ADDRESS

Shared secret: RADIUS SECRET

us flag
Sounds a bit like my issue with Windows clients due to how username and password is exchanged with strongswan. Have you tried adding `eap_start = yes` to `EAP-RADIUS.conf`?
Artursa avatar
co flag
yes brother , on etc/strongswan/strongswan.d/charon/eap-radius.conf
us flag
Also: Windows does not pass username to `eap_identity`, so set to `%any` instead of `%identity`. But for more help: Please past output from server log during the moment a client tries to connect along with your question. There are a lot of insight gained from reading the log.
Artursa avatar
co flag
i change it to %any , not working
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.