rasclient 20226 возвращен код 829

Rasclient 20226 возвращен код 829

SBS 2011 сборка 7601, сервиспак 1

Поднята служба Маршрутизация и удаленный доступ, клиенты подключаются и периодически само собой обрывается соединение, повторное переподключение выдает ошибку 800.

Приходится рестартовывать службу маршрутизации.

Проявляется с регулярность 1-2 дня. Клиентов удаленного доступа 3-5.

В журналах иногда такие сообщения (при этом на клиенте никакие настройки не изменяются)

Имя журнала: System
Источник: RemoteAccess
Дата: 14.03.2013 03:19:03
Код события: 20255
Категория задачи:Отсутствует
Уровень: Ошибка
Ключевые слова:Классический
Пользователь: Н/Д
Компьютер: AQUASERVER.aquaros.com
Описание:
CoID=: Следующая ошибка возникла в модуле протокола точка-точка (PPP), порт: VPN3-6, пользователь: sergm. Подключение не выполнено из-за политики, заданной на сервере службы удаленного доступа/виртуальной частной сети. В частности, способ проверки подлинности, используемый на сервере для проверки имени пользователя и пароля, может не соответствовать способу проверки подлинности, заданному в вашем профиле подключения. Обратитесь к администратору сервера службы удаленного доступа и сообщите ему об ошибке.
Xml события:

20255
2
0
0x80000000000000

22862
System
AQUASERVER.aquaros.com


VPN3-6
sergm
Подключение не выполнено из-за политики, заданной на сервере службы удаленного доступа/виртуальной частной сети. В частности, способ проверки подлинности, используемый на сервере для проверки имени пользователя и пароля, может не соответствовать способу проверки подлинности, заданному в вашем профиле подключения. Обратитесь к администратору сервера службы удаленного доступа и сообщите ему об ошибке.
2C030000

В списке соединений вижу, что пред. сессии остаются висеть, т.е. несколько соединений от имени одного и того же пользователя. Обновления все устанавливаются регулярно

Еще в журналах такие сообщения:

CoID=<7F00F005-A1FC-406F-9CEA-AA83BFD7B3F3>: пользователь AQUAROS\sergm подключился к порту VPN3-6 16.03.2013 в 13:05 и отключился 16.03.2013 в 13:19. Пользователь был активен в течение 14 мин. 18 сек. Отправлено: 838693 байт, получено: 338885 байт. Причина отключения: запрос пользователя. Использованный туннель: WAN Miniport (PPTP). Состояние карантина: «не поддерживает защиту доступа к сети».

Источник

question

Windows 10 Always On VPN clients regularly drop VPN connection with error 829

Since the November 2020 patch updates, we have a number of Windows 10 1909 (64-bit) laptop clients that periodically drop their Always On VPN device tunnels. The Windows 10 clients report a RasClient error 829 in most situations, although we sometimes see error 828.

There is no sign of the wireless connections failing when this occurs.

The Remote Access server runs Server 2016. Tunnels are certificate-based IPsec VPN links.

There was a known issue with Windows 10 2004 clients that should have been resolved with the September 2020 monthly update. Given that we’re a few months after that patch update and on a different Windows 10 build, it seems unlikely to be the same cause.

Any suggestions for what might be causing this or how to clear up the issue?

Just checking in to see if the information provided was helpful.

If yes, you may accept useful reply as answer, if not, welcome to feedback.

The explanation makes sense, but it doesn’t apply to our situation.

I wanted to wait until I could apply the latest round of BIOS and device driver updates to one of our affected computers, but that did not clear things up. The connection out is via wifi. so there is no «modem» attached to the computer to drop the signal. There has been no sign that the wifi is dropping or that there is a network outage with the user’s internet provider, either.

There is no sign on the RAS server of the connection dropping, either. We have multiple clients connected to the RAS server, and most of them continue to stay online when we see a client drop its connection. I have found nothing logged in the event log on the RAS server to indicate the VPN link dropped at all.

We have the same issue in POC environment

2 Answers

Thanks for your question.

The error 829 appears when the modem (in the case of dial-up or broadband connections) or tunnel (in the case of VPN connections) is disconnected due to a network failure or a failure in the physical link to the modem.

The following are possible reasons for the failure.

1)A problem in the network between the modem and the RAS server might have caused the basic dial-up or, in the case of a broadband connection, PPPoE connection, or VPN tunnel to fail.

2)Please check connectivity between the modem and the telephone/cable connection jack. If an external modem is being used, check the physical connectivity between the modem and the computer.

3)In the case of VPN connections set up over a wireless network, problems in the wireless network might have caused the connection to fail. Check the status of the wireless connection in Network Connections folder.

Some of the causes of problems in the wireless network are:

The wireless access point might have gone down due to loss of power or for other reasons.
The user’s computer might be out of the operating range of the wireless network or the RF signal strength might be weak.
4)The RAS server might have failed or restarted and closed the connection. Check the event logs on the RAS server.

5) Please also check the event viewer both on the VPN server and the problematic client if there’s any error event so that we can find more clue about this issue.

For more details, please refer to the following article.

If the Answer is helpful, please click «Accept Answer» and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Источник

AutoRedial для VPN соединений Windows 8/2008/10/2012

C удивлением, правда небольшим, обнаружил, что в Windows, начиная с версии 8 и в Windows Server, начиная с 2008, Microsoft слегка «доработал напильником» диалог настроек VPN соединения. Точнее, урезал настраиваемые параметры на вкладке Options. Вместо того, что было привычно в Windows 7 и выглядело как:

rasclient 20226 возвращен код 829. vpn connection options windows 7. rasclient 20226 возвращен код 829 фото. rasclient 20226 возвращен код 829-vpn connection options windows 7. картинка rasclient 20226 возвращен код 829. картинка vpn connection options windows 7. SBS 2011 сборка 7601, сервиспак 1Теперь убрали практически все и оставили только:

rasclient 20226 возвращен код 829. vpn connection options windows 2012. rasclient 20226 возвращен код 829 фото. rasclient 20226 возвращен код 829-vpn connection options windows 2012. картинка rasclient 20226 возвращен код 829. картинка vpn connection options windows 2012. SBS 2011 сборка 7601, сервиспак 1И возник закономерный вопрос– а как теперь настроить автоматическое переподключение и количество попыток повтора соединения если связь прервется?

Методов несколько. Давайте по порядку. По мере возрастания, так сказать, сложности.

Метод 1 — используем Notepad:

Установить нужные параметры вручную. Для этого необходимо перейти в папку

C:\Users\[USER]\AppData\Roaming\Microsoft\Network\Connections\Pbk\

Найти там (скорее всего единственный) файлик с именем rasphone.pbk. Это обычный текстовый файл, содерржащий настройки подключения к VPN

Файл можно открыть с помощью notepad.exe (Блокнот)

В общем случае, необходимо отыскать секцию, содержащую ваш VPN – например, такой [PPTP-VPN]

А в ней отыскать строки (TADA!)/ Если ничего не меняли, то выглядеть будет примерно так:

То есть опять “Microsoft за вас подумали и все решил”.

Но теперь вы знаете, где искать и менять необходимые параметры.

Чтобы параметры применились, необходимо, как и раньше, переподключить VPN.

А потом верить, что Microsoft Windows все сделает за вас 🙂

Метод 2 – настраиваем простейшую задачу:

Создать в Task Scheduler задачу, которая будет запускать bat-файл со строкой подключения к необходимому VPN и настроить эту задачу, на запуск, скажем, каждые 5 минут.

Напомню, командная строка для подключения VPN соединения выглядит так

C:\windows\system32\rasdial.EXE entryname [username [password|*]] [/DOMAIN:domain]

Там еще параметры есть, но их, если интересно, посмотрите сами.

В задаче не забываем указать, что “запускать всегда”

rasclient 20226 возвращен код 829. vpn redial task1. rasclient 20226 возвращен код 829 фото. rasclient 20226 возвращен код 829-vpn redial task1. картинка rasclient 20226 возвращен код 829. картинка vpn redial task1. SBS 2011 сборка 7601, сервиспак 1Указать выполняемый файл, например, такой

rasclient 20226 возвращен код 829. rasdial bat. rasclient 20226 возвращен код 829 фото. rasclient 20226 возвращен код 829-rasdial bat. картинка rasclient 20226 возвращен код 829. картинка rasdial bat. SBS 2011 сборка 7601, сервиспак 1Или сказать, чтобы запускался rasdial.exe (VPN User Password – это название вашего VPN-соединения имя_пользователя и ваш_пароль)

rasclient 20226 возвращен код 829. rasdial. rasclient 20226 возвращен код 829 фото. rasclient 20226 возвращен код 829-rasdial. картинка rasclient 20226 возвращен код 829. картинка rasdial. SBS 2011 сборка 7601, сервиспак 1Запускать, с интервалом 5 минут, каждый день.

rasclient 20226 возвращен код 829. repeat task every 5 minut. rasclient 20226 возвращен код 829 фото. rasclient 20226 возвращен код 829-repeat task every 5 minut. картинка rasclient 20226 возвращен код 829. картинка repeat task every 5 minut. SBS 2011 сборка 7601, сервиспак 1Метод 3. Настраиваем задачу “с вывертами” :)

rasclient 20226 возвращен код 829. task properties. rasclient 20226 возвращен код 829 фото. rasclient 20226 возвращен код 829-task properties. картинка rasclient 20226 возвращен код 829. картинка task properties. SBS 2011 сборка 7601, сервиспак 1

Ну вот, собственно и все.

Далее под спойлером привожу, без перевода, длинное, подробное и нудное описание Метода 1 и 3 на английском языке, взятое с форума Technet.

Had this problem for a few weeks but finally got a chance to spend some time on it last night. Came across this thread….My guess is that with Microsoft making the VPN connection RT-Like, they missed part of the dialog or put it that way for RT Tablets with the thought that you wouldn’t want the VPN reconnecting and using up data/battery. Of course they missed the point of keeping it for desktops…..

Anyways I was hoping that the dialogs info was missed by the actual code wasn’t as is the case sometimes. Looked promising when I checked the VPN config and found the settings generated in a Windows 8 connection. Unfortunately while the settings are enabled for redial, the redial function doesn’t work. I tried establishing a VPN connection with rasdial though dos but still no luck. Just occurred to me as I’m typing this email that I may try renaming the rasdial.pbk and loading it with the Rasdial comment to establish a VPN connection, maybe it will use the settings. Will give it a try later.

The C:\Users\Joe\AppData\Roaming\Microsoft\Network\Connections\Pbk\rasphone.pbk actually has the redial settings enabled in it…

RedialAttempts=3
RedialSeconds=60
IdleDisconnectSeconds=0
RedialOnLinkFailure=1 (This is set to one in Windows 7 when you enable the Redial checkbox)

In case anyone is interested, came up with a fairly good workaround last night until MS releases an update to put the settings back. I like this solution better than running a 3rd party solution to try to keep the VPN up. You can setup a Task Schedule job to trigger on a disconnect. I gave it a try last night and the VPN immediately reconnected. I’m checking for client/remote disconnect error codes excluding the «user disconnect» code to avoid it reconnecting when you actually want to disconnect. These are just two error codes I noted in the event log, MS lists a lot more error codes but I haven’t experienced them on disconnects though they could be added. If anyone uses this and thinks more codes should be added please update the xml query or let me know and I’ll update it. Forgive the XML query, not something I usually do so if it can be formatted better, let me know…for learning 😉

Here is a list of some error codes (this is not complete for Win8 but I didn’t spend much time searching)

How to setup a Scheduled Task to Trigger on a VPN Disconnect

General Tab

Name: VPN Redial
For descriptive use, you can use any name you want like My Company VPN Redial….whatever…..

Select: Run whether user is logged on or not
Provided you have a password associated to your login account, this option will prevent the dos window from opening everytime the job runs. If you don’t have a password, leave it and see the notes below these steps.
Triggers Tab

Click New button
To create a new trigger we will use to activate the job when the VPN connect disconnects

Begin the task: On an Event
The job will be triggered by an Application event log entry

Select: Custom
Custom gives us the flexibility of creating a more detailed query

Click New Event Filter… button
Here is where we build the query for the trigger

Click the XML tab
This tab allows us to write our own query (even more flexible)

Check Edit query manually
To start a manual edit

Copy the following query
This query will trigger on an Application Event for RasClient with an EventID of 20226 and error codes 829 (Remote Disconnect), 629 (Client Disconnect). Copy from and including to

Ensure Enabled is checked
Check it if it’s not checked to make sure the job will be enabled

Actions Tab

Click New
To create an action to be performed when the job is triggered

Action: Start a program
Selection this option will allow us to start rasdial to reestablish the VPN connection

Program/script: rasdial
Should already be in path so just enter rasdial command

Add arguments (optional): «VPN Name» username password
VPN name is the name you defined for your dialup connection. Example, when you click the network icon in the system tray, the name that’s listed for your VPN, make sure you enter it in exactly as displayed. Following the connect would be your username and password. Example, «MY VPN Connection» username password

Conditions Tab (not required unless you are using a laptop)

Uncheck: Stop if the computer switches to battery power

Settings TAB

Enable: If the task fails, restart every: 1 minute
In case there is a temporary issue re-establishing the VPN connection. You can specify whatever value you want instead of 1 minute

Attempt to restart up to: 7 times
Again in case there is a temporary issue re-establishing the VPN connection. You can specify whatever value you want instead of 7 times

Click Ok
Notes

4. I’m checking error codes because I don’t want the job to be reconnected if I purposely disconnect the VPN which generates a 631 code under Event ID 20226.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *