
* Version bump 4.2.1.0 * feat: add special handshake params to ui * feat: finish adding params * feat: android/ios & fix qml * chore: fix android impl & update 3rd-prebuilt branch * chore: trigger build with windows build * fix: special handshake params to client * chore: update submodule * feat: s3, s4 * chore: update submodule * feat: s3 s4 cont * fix: kt set * chore: update submodule * feat: add default values for s3, s4 * fix: make new parameters optional * chore: update submodules * chore: restore translation files * fix: fixed awg native config import with new junk * chore: restore translation files * AWG v1.5 Build * refactoring: removed s3 s4 fileds from ui part * chore: update link to amneziawg-apple --------- Co-authored-by: pokamest <pokamest@gmail.com> Co-authored-by: Mark Puha <p.mark95@gmail.com> Co-authored-by: albexk <albexk@proton.me> Co-authored-by: Mykola Baibuz <mykola.baibuz@gmail.com>
27 lines
881 B
Bash
27 lines
881 B
Bash
mkdir -p /opt/amnezia/awg
|
|
cd /opt/amnezia/awg
|
|
WIREGUARD_SERVER_PRIVATE_KEY=$(wg genkey)
|
|
echo $WIREGUARD_SERVER_PRIVATE_KEY > /opt/amnezia/awg/wireguard_server_private_key.key
|
|
|
|
WIREGUARD_SERVER_PUBLIC_KEY=$(echo $WIREGUARD_SERVER_PRIVATE_KEY | wg pubkey)
|
|
echo $WIREGUARD_SERVER_PUBLIC_KEY > /opt/amnezia/awg/wireguard_server_public_key.key
|
|
|
|
WIREGUARD_PSK=$(wg genpsk)
|
|
echo $WIREGUARD_PSK > /opt/amnezia/awg/wireguard_psk.key
|
|
|
|
cat > /opt/amnezia/awg/wg0.conf <<EOF
|
|
[Interface]
|
|
PrivateKey = $WIREGUARD_SERVER_PRIVATE_KEY
|
|
Address = $AWG_SUBNET_IP/$WIREGUARD_SUBNET_CIDR
|
|
ListenPort = $AWG_SERVER_PORT
|
|
Jc = $JUNK_PACKET_COUNT
|
|
Jmin = $JUNK_PACKET_MIN_SIZE
|
|
Jmax = $JUNK_PACKET_MAX_SIZE
|
|
S1 = $INIT_PACKET_JUNK_SIZE
|
|
S2 = $RESPONSE_PACKET_JUNK_SIZE
|
|
H1 = $INIT_PACKET_MAGIC_HEADER
|
|
H2 = $RESPONSE_PACKET_MAGIC_HEADER
|
|
H3 = $UNDERLOAD_PACKET_MAGIC_HEADER
|
|
H4 = $TRANSPORT_PACKET_MAGIC_HEADER
|
|
|
|
EOF
|