
* 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>
47 lines
1.4 KiB
Docker
47 lines
1.4 KiB
Docker
FROM amneziavpn/amnezia-wg:latest
|
|
|
|
LABEL maintainer="AmneziaVPN"
|
|
|
|
#Install required packages
|
|
RUN apk add --no-cache bash curl dumb-init
|
|
RUN apk --update upgrade --no-cache
|
|
|
|
RUN mkdir -p /opt/amnezia
|
|
RUN echo -e "#!/bin/bash\ntail -f /dev/null" > /opt/amnezia/start.sh
|
|
RUN chmod a+x /opt/amnezia/start.sh
|
|
|
|
# Tune network
|
|
RUN echo -e " \n\
|
|
fs.file-max = 51200 \n\
|
|
\n\
|
|
net.core.rmem_max = 67108864 \n\
|
|
net.core.wmem_max = 67108864 \n\
|
|
net.core.netdev_max_backlog = 250000 \n\
|
|
net.core.somaxconn = 4096 \n\
|
|
\n\
|
|
net.ipv4.tcp_syncookies = 1 \n\
|
|
net.ipv4.tcp_tw_reuse = 1 \n\
|
|
net.ipv4.tcp_tw_recycle = 0 \n\
|
|
net.ipv4.tcp_fin_timeout = 30 \n\
|
|
net.ipv4.tcp_keepalive_time = 1200 \n\
|
|
net.ipv4.ip_local_port_range = 10000 65000 \n\
|
|
net.ipv4.tcp_max_syn_backlog = 8192 \n\
|
|
net.ipv4.tcp_max_tw_buckets = 5000 \n\
|
|
net.ipv4.tcp_fastopen = 3 \n\
|
|
net.ipv4.tcp_mem = 25600 51200 102400 \n\
|
|
net.ipv4.tcp_rmem = 4096 87380 67108864 \n\
|
|
net.ipv4.tcp_wmem = 4096 65536 67108864 \n\
|
|
net.ipv4.tcp_mtu_probing = 1 \n\
|
|
net.ipv4.tcp_congestion_control = hybla \n\
|
|
# for low-latency network, use cubic instead \n\
|
|
# net.ipv4.tcp_congestion_control = cubic \n\
|
|
" | sed -e 's/^\s\+//g' | tee -a /etc/sysctl.conf && \
|
|
mkdir -p /etc/security && \
|
|
echo -e " \n\
|
|
* soft nofile 51200 \n\
|
|
* hard nofile 51200 \n\
|
|
" | sed -e 's/^\s\+//g' | tee -a /etc/security/limits.conf
|
|
|
|
ENTRYPOINT [ "dumb-init", "/opt/amnezia/start.sh" ]
|
|
CMD [ "" ]
|
|
|