Repository navigation
Вход и выход VPN на разных IP, случайный порт и PresharedKey по умолчанию: установщик AmneziaWG v6.3 / Entry and exit on different IPs, a random port and PresharedKey by default: AmneziaWG installer v6.3 #394
bivlked
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
English version below
Вышли v6.3.0 и сразу за ней v6.3.1 установщика AmneziaWG. Ставить стоит v6.3.1, ниже про обе.
Вход и выход на разных IP
Если у сервера два публичных IPv4, клиенты теперь могут подключаться к одному адресу, а в интернет выходить со второго:
Конфиги клиентов смотрят на адрес входа, поэтому при смене адреса выхода они не меняются. Заблокировали выход: берёте у хостера новый адрес, ставите его на интерфейс сервера, одна команда, и раздавать ничего не нужно. Подробно в ADVANCED. Идею предложил @yuretzgt в #384, спасибо.
Для каскада в CASCADE.md два новых раздела: свои адреса для входа, выхода и туннеля и что делать, если выход заблокировали.
Случайный порт и смена порта одной командой
Новая установка без
--portбольше не ставит всем39743/udp, а берёт случайный свободный порт из 10000-59999. Одинаковый порт у всех установок был их общим признаком, на это справедливо указал 0ka на ntc.party. Порт называет итоговый отчёт установки. Работающие серверы остаются на своём порту, а сменить его теперь можно одной командой:Команда откроет новый порт в UFW, закроет старый и перевыпустит конфиги всех клиентов. Раздать их заново придётся вам, а фаервол хостера и проброс на роутере меняются руками.
PresharedKey у каждого нового клиента
Новые клиенты получают свой
PresharedKey, ещё один симметричный ключ поверх обычных. Размер пакетов и маскировку он не меняет, а с ним подключается, например, Shadowrocket. Клиент без PSK создаётся флагом--no-psk. Уже выданные клиенты не меняются. Предложил @AvgYan в D#371, спасибо.Что ещё в v6.3.1
sudo bash install_amneziawg.sh --repair-module: он поставит новый помощник модуля и пересоберёт модуль, обычную установку не запускает.S4= 16: при нём длина пакетов данных в профиле 2.0 всегда кратна 16, как у обычного WireGuard. Работающие серверы не меняются.--endpointзадан именем, адрес выхода сверяется и с адресами, на которые это имя указывает.Работающий сервер новая версия сама не перестраивает: порт и выданные конфиги остаются прежними. Как обновить скрипты на сервере, описано в INSTALL_VPS.
Все изменения: v6.3.0, v6.3.1.
v6.3.0 of the AmneziaWG installer is out, and v6.3.1 right after it. Install v6.3.1; both are covered below.
Entry and exit on different IPs
If your server has two public IPv4 addresses, clients can now connect to one and reach the internet from the other:
Client configs point at the entry address, so they stay the same when the exit address changes. If the exit gets blocked, you get a new address from your provider, put it on the server's interface, run one command, and there is nothing to hand out again. Details in ADVANCED. @yuretzgt suggested it in #384, thanks.
For the cascade, CASCADE.en.md has two new sections: your own addresses for entry, exit and tunnel and what to do when the exit is blocked.
A random port, and a port change in one command
An install without
--portno longer gives everyone39743/udp. It takes a random free port in 10000-59999. The same port on every install was something they all had in common, as 0ka rightly pointed out on ntc.party. The final install report names the port. Servers already running keep their port, and you can now change it with one command:It opens the new port in UFW, closes the old one and regenerates every client config. Handing out the new configs is up to you, and the provider's firewall or a router port forward have to be changed by hand.
A PresharedKey for every new client
New clients get their own
PresharedKey, one more symmetric key on top of the usual ones. It does not change packet sizes or the masking, and with it Shadowrocket, for example, connects.--no-pskcreates a client without one. Clients already issued stay as they are. @AvgYan suggested it in D#371, thanks.Also in v6.3.1
sudo bash install_amneziawg_en.sh --repair-module: it installs the new module helper and rebuilds the module without running a normal install.S4= 16: with it, data packets in the 2.0 profile are always a multiple of 16 bytes long, like plain WireGuard. Running servers do not change.--endpointis a name, the exit address is also checked against the addresses that name points to.A new version does not rebuild a running server by itself: the port and the configs you handed out stay the same. How to update the scripts on a server is in INSTALL_VPS.
All changes: v6.3.0, v6.3.1.
All reactions