frkn-dev / FRKN

FRKN: freedom of speech and information
https://frkn.org/
GNU General Public License v3.0
656 stars 64 forks source link

[BUG]: Parameter is set incorrectly (Windows 10 Pro) #106

Closed lukyanov closed 2 years ago

lukyanov commented 2 years ago

Description of the bug

Set up everything according to the instructions. Adding the profile goes well. However, when connecting the following error appears: "Parameter is set incorrectly" ("Параметр задан неверно"). I'm trying this in Windows 10 Pro.

Steps To Reproduce

  1. Run the instruction: https://github.com/nezavisimost/FuckRKN1/blob/main/instructions/en/Windows.md
  2. Connect.
  3. Observe the error.
lukyanov commented 2 years ago
===================================================================
Welcome! Use this helper script to import an IKEv2 configuration
into a PC running Windows 8, 10 or 11.
For more details, see https://vpnsetup.net/ikev2

Before continuing, you must put the .p12 file you transferred from
the VPN server in the *same folder* as this script.
===================================================================

Enter the name of the IKEv2 VPN client to import.
Note: This is the same as the .p12 filename without extension.
To accept the suggested client name, press Enter.
VPN client name: [vpnclient]

Enter the IP address (or DNS name) of the VPN server.
Note: This must exactly match the VPN server address in the output
of the IKEv2 helper script on your server.
VPN server address: lt.fuckrkn1.xyz

Provide a name for the new IKEv2 connection.
To accept the suggested connection name, press Enter.
IKEv2 connection name: [IKEv2 VPN lt.fuckrkn1.xyz]

Importing .p12 file...

Creating VPN connection...

Name                  : IKEv2 VPN lt.fuckrkn1.xyz
ServerAddress         : lt.fuckrkn1.xyz
AllUserConnection     : False
Guid                  : {96566BE8-51B7-4B05-8E7C-9243768DA719}
TunnelType            : Ikev2
AuthenticationMethod  : {MachineCertificate}
EncryptionLevel       : Required
L2tpIPsecAuth         :
UseWinlogonCredential : False
EapConfigXmlStream    :
ConnectionStatus      : Disconnected
RememberCredential    : False
SplitTunneling        : False
DnsSuffix             :
IdleDisconnectSeconds : 0

Setting IPsec configuration...

AuthenticationTransformConstants : GCMAES128
CipherTransformConstants         : GCMAES128
DHGroup                          : Group14
IntegrityCheckMethod             : SHA256
PfsGroup                         : None
EncryptionMethod                 : AES256

IKEv2 configuration successfully imported!
To connect to the VPN, click on the wireless/network icon in your system tray,
select the "IKEv2 VPN lt.fuckrkn1.xyz" VPN entry, and click Connect.

Press any key to exit.
Schultz68 commented 2 years ago

I have same problem on Windows 11. I did everything according to the instructions.

evgenyKozlov1996 commented 2 years ago

The same problem on Windows 10 Home. Laptop environment.

tr1gl1de commented 2 years ago

I have the same problem on Win10 Home, but everything works on IOS.

Cotovich commented 2 years ago

This helped me on win 11, might be useful to you as well delete VPN connection before doing instructions

  1. run cmd as administrator
  2. run this commands netsh int ip reset netsh int ipv6 reset netsh winsock reset
  3. restart computer
  4. open Device Manager
  5. find Network Adapters
  6. uninstall all WAN Miniport devices (IKEv2, IP, IPv6, etc)
  7. click Action > scan for hardware changes the adapters you just uninstalled should come back
  8. set VPN connection

Credit to: alexmelSC

Schultz68 commented 2 years ago

Thank You. The problem is solved, everything works.

tr1gl1de commented 2 years ago

Yep, it really works. Thanks.

theyllneverfindyourgrave commented 2 years ago

@lukyanov does the @Cotovich 's solution helped you?

stransh commented 2 years ago

Thanks for the instructions Cotovich!

The only thing I did is just removed/rescanned wan adapters in device manager and it worked. So may be try that before going though the all steps you described.

theyllneverfindyourgrave commented 2 years ago

Most of people solved the problem with this solution, so I am closing the ticket.

ridebmxrus commented 1 year ago

Thank you! God bless you! This method helped me to repair Windows 10 22H2 x64 IKEv2 VPN connection

weirdogradova commented 1 year ago

This helped me on win 11, might be useful to you as well delete VPN connection before doing instructions

  1. run cmd as administrator
  2. run this commands netsh int ip reset netsh int ipv6 reset netsh winsock reset
  3. restart computer
  4. open Device Manager
  5. find Network Adapters
  6. uninstall all WAN Miniport devices (IKEv2, IP, IPv6, etc)
  7. click Action > scan for hardware changes the adapters you just uninstalled should come back
  8. set VPN connection

Credit to: alexmelSC

@Cotovich, thank you a ton, it worked for Windows 10 21H2 x64