Added udptunnel to circumvent some firewalls

This commit is contained in:
Héctor Molinero Fernández
2020-06-19 00:12:25 +02:00
parent cc4f0c40f1
commit de9b62e764
5 changed files with 64 additions and 2 deletions

View File

@@ -43,12 +43,16 @@ build {
apt-get purge -y \
snapd
apt-get install -y \
build-essential \
dns-root-data \
git \
htop \
iperf3 \
libsystemd-dev \
nano \
nftables \
openresolv \
pkgconf \
qrencode \
rng-tools \
ssh-import-id \
@@ -58,6 +62,14 @@ build {
apt-get autoremove -y
EOF
,
<<EOF
mkdir /usr/local/src/udptunnel/ && cd /usr/local/src/udptunnel/
git clone 'https://github.com/hectorm/udptunnel.git' ./
git checkout '2e32c0db162c6bfb61031c90d23ad941bf65797f'
PREFIX=/usr/local ./udptunnel-installer.sh
udptunnel --help
EOF
,
<<EOF
systemctl disable --now systemd-resolved.service
unlink /etc/resolv.conf && printf 'nameserver 127.0.0.1\n' > /etc/resolv.conf
@@ -67,7 +79,7 @@ build {
<<EOF
systemctl enable --now nftables.service rng-tools.service ssh.service
systemctl enable --now apt-daily-upgrade.timer apt-daily.timer unattended-upgrades.service
systemctl enable wg-quick@wg0.service
systemctl enable udptunnel.service wg-quick@wg0.service
EOF
,
<<EOF