Forked from httpsx/WireGuard DPI обход РКН - Windows.md
Created
October 8, 2024 12:37
-
-
Save AyamiAlince/2ee6b20280dfc9930e04be646f30e096 to your computer and use it in GitHub Desktop.
Revisions
-
httpsx revised this gist
Apr 16, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -53,4 +53,4 @@ $Socket.Close() - Поменять ListenPort в конфиге клиента и поменять в скрипте значение $wgListenPort . Порт должен совпадать. - Либо подождать 5-10 минут, пока пройдет время блокировки порта. После этого запускаете сначало скрипт PowerShell - а затем пытаетесь подключиться к WireGuard 2. Как определить что проблема именно в блокировке протокола WireGuard от РКН ? - Если в информации о переданных данных будет статично при подключение: "Получено 92 Б" или "Получено 148 Б" - Значит ваш провайдер заблокировал Handshake Response с протоколом wireguard. Данный гайд помогает обойти эту блокировку. -
httpsx revised this gist
Oct 24, 2023 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -52,3 +52,5 @@ $Socket.Close() 1. Что делать, если я попытался подключиться к серверу без PowerShell Скрипта? - Поменять ListenPort в конфиге клиента и поменять в скрипте значение $wgListenPort . Порт должен совпадать. - Либо подождать 5-10 минут, пока пройдет время блокировки порта. После этого запускаете сначало скрипт PowerShell - а затем пытаетесь подключиться к WireGuard 2. Как определить что проблема именно в блокировке протокола WireGuard от РКН ? - Если в информации о переданных данных будет статично при подключение: "Получено 92 Б" - Значит ваш провайдер заблокировал Handshake Response с протоколом wireguard. Данный гайд помогает обойти эту блокировку. -
httpsx renamed this gist
Oct 24, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
httpsx revised this gist
Oct 24, 2023 . No changes.There are no files selected for viewing
-
httpsx revised this gist
Oct 24, 2023 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,11 +16,9 @@ ListenPort = 56123 Нажимаем сохранить. > [!WARNING] > 🔴 Важно! Не пытайтесь подключиться к серверу сразу после того как указали порт. ### Шаг 2: Открываем "Windows PowerShell" Необходимо изменить в скрипте данные сервера, к которому вы будете подключаться. <br> Их можно посмотреть в конфиге, [Peer] -> Endpoint <br> Как пример: <br> -
httpsx revised this gist
Oct 24, 2023 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,9 @@ ListenPort = 56123 [](#) Нажимаем сохранить. > [!WARNING] > 🔴 Важно! Не пытайтесь подключиться к серверу сразу после того как указали порт. ### 🔴 Важно! Не пытайтесь подключиться к серверу сразу после того как указали порт. ### Шаг 2: Открываем "Windows PowerShell" -
httpsx revised this gist
Oct 24, 2023 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,13 +5,13 @@ ### Шаг 1: Редактируем Клиент конфиг Добавим в него "ListenPort", это позволит иметь статичный порт на котором будет работать WireGuard<br> Нажмите ПКМ на нужный "туннель" и выберите "Редактировать выбранный туннель..." [](#) После DNS добавляем новую строку ```bash ListenPort = 56123 ``` [](#) Нажимаем сохранить. ### Важно! Не пытайтесь подключиться к серверу сразу после того как указали порт. @@ -23,7 +23,7 @@ ListenPort = 56123 Их можно посмотреть в конфиге, [Peer] -> Endpoint <br> Как пример: <br> [](#) В моем примере $wgIP и $wgPort будут следующие: <br> $wgIP = "154.77.3.272" <br> -
httpsx revised this gist
Oct 24, 2023 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,13 +6,12 @@ Добавим в него "ListenPort", это позволит иметь статичный порт на котором будет работать WireGuard<br> Нажмите ПКМ на нужный "туннель" и выберите "Редактировать выбранный туннель..."  После DNS добавляем новую строку ```bash ListenPort = 56123 ```  Нажимаем сохранить. ### Важно! Не пытайтесь подключиться к серверу сразу после того как указали порт. @@ -24,7 +23,7 @@ ListenPort = 56123 Их можно посмотреть в конфиге, [Peer] -> Endpoint <br> Как пример: <br>  В моем примере $wgIP и $wgPort будут следующие: <br> $wgIP = "154.77.3.272" <br> -
httpsx revised this gist
Oct 24, 2023 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,8 @@ ### Шаг 1: Редактируем Клиент конфиг Добавим в него "ListenPort", это позволит иметь статичный порт на котором будет работать WireGuard<br> Нажмите ПКМ на нужный "туннель" и выберите "Редактировать выбранный туннель..."  <img src="https://i.imgur.com/EbtEQIl.png" alt="Step1" usemap="#" /> После DNS добавляем новую строку ```bash -
httpsx revised this gist
Oct 24, 2023 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,16 +5,16 @@ ### Шаг 1: Редактируем Клиент конфиг Добавим в него "ListenPort", это позволит иметь статичный порт на котором будет работать WireGuard<br> Нажмите ПКМ на нужный "туннель" и выберите "Редактировать выбранный туннель..." {:alt=""} После DNS добавляем новую строку ```bash ListenPort = 56123 ``` {:alt=""} Нажимаем сохранить. ### Важно! Не пытайтесь подключиться к серверу сразу после того как указали порт. ### Шаг 2: Открываем "Windows PowerShell" @@ -23,7 +23,7 @@ ListenPort = 56123 Их можно посмотреть в конфиге, [Peer] -> Endpoint <br> Как пример: <br> {:alt=""} В моем примере $wgIP и $wgPort будут следующие: <br> $wgIP = "154.77.3.272" <br> -
httpsx renamed this gist
Oct 24, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
httpsx created this gist
Oct 24, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,54 @@ Для обхода блокировки достаточно отправить 1 любой udp пакет, тем самым нарушим начальное определение протокола WireGuard<br> Способ с использованием Windows PowerShell. Без скачивания Nmap и подобного софта. ### Шаг 0: Отключитесь от всех туннелей. ### Шаг 1: Редактируем Клиент конфиг Добавим в него "ListenPort", это позволит иметь статичный порт на котором будет работать WireGuard<br> Нажмите ПКМ на нужный "туннель" и выберите "Редактировать выбранный туннель..."  После DNS добавляем новую строку ```bash ListenPort = 56123 ```  Нажимаем сохранить. ### Важно! Не пытайтесь подключится к серверу сразу после того как указали порт. ### Шаг 2: Открываем "Windows PowerShell" Необходимо изменить в скрипте данные сервера, к которому вы будете подключаться. <br> Их можно посмотреть в конфиге, [Peer] -> Endpoint <br> Как пример: <br>  В моем примере $wgIP и $wgPort будут следующие: <br> $wgIP = "154.77.3.272" <br> $wgPORT = 51820 <br> --- Script: ```powerShell $wgListenPort = 56123 $wgIP = "DEST IP ADDRESS" $wgPORT = DEST PORT $EndPoints = New-Object System.Net.IPEndPoint([System.Net.IPAddress]::Parse([System.Net.Dns]::GetHostAddresses($wgIP)), $wgPORT) $Socket = New-Object System.Net.Sockets.UDPClient $wgListenPort $SendMessage = $Socket.Send([Text.Encoding]::ASCII.GetBytes(":)"), 2, $EndPoints) $Socket.Close() ``` После того, как изменили в скрипте $wgIP и $wgPORT, вставляем его в PowerShell и нажимаем Enter. Разрешите доступ Брандмауэру Windows если запросит. ### Шаг 3: Подключаемся к WireGuard Можете подключаться к своему WireGuard. ### F.A.Q 1. Что делать, если я попытался подключиться к серверу без PowerShell Скрипта? - Поменять ListenPort в конфиге клиента и поменять в скрипте значение $wgListenPort . Порт должен совпадать. - Либо подождать 5-10 минут, пока пройдет время блокировки порта. После этого запускаете сначало скрипт PowerShell - а затем пытаетесь подключиться к WireGuard