pivpn/pivpn

[General Issue]: No Internet with Proxmox LXC

mxwmnn opened this issue · 1 comments

mxwmnn commented

In raising this issue I confirm that

Describe the issue

I can't connect to anything. Not the internet nor the local network

Expected behavior

I want if my device is connected to the wireguard vpn to surf the web and to access every device which is connected to the wireguard vpn.

Please describe the steps to replicate the issue

Running bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/wireguard.sh)" on the Proxmox Host.
initializing it with vmid 105 and the static internal vmbr1 ip to 10.0.0.105/32.
Port Forwarding with iptables -t nat -A PREROUTING -i vmbr0 -p udp --dport 51280 -j DNAT --to 10.0.0.105:51820 on the Proxmox Host
Adding

lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir

to /etc/pve/lxc/105.conf at the EOF
chown 100000:100000 /dev/net/tun on the Proxmox Host
Shutdown the LXC and Start
Adding a client with pivpn add and then generating qr with pivpn -qr trying to connect and seems to work but cant reach anything.

Additional Information:
It's a root server. Every port is open.
vmbr0 has the eno1 slave and is the connection to the internet with the public ip
vmbr1 is the internal lan.

Have you taken any steps towards solving your issue?

Tried pivpn -d, no errors

::: Generating Debug Output
::::            PiVPN debug              ::::
=============================================
::::            Latest commit            ::::
Branch: master
Commit: 4032a55c80f25b51419180eda93f44d579ab79e9
Author: 4s3ti
Date: Wed Mar 29 14:54:19 2023 +0200
Summary: docs(issues): Remove old markdown template
=============================================
::::        Installation settings        ::::
PLAT=Debian
OSCN=bullseye
USING_UFW=0
pivpnforceipv6route=1
IPv4dev=eth0
install_user=root
install_home=/root
VPN=wireguard
pivpnPORT=51820
pivpnDNS1=1.1.1.1
pivpnDNS2=8.8.8.8
pivpnHOST=REDACTED
INPUT_CHAIN_EDITED=0
FORWARD_CHAIN_EDITED=0
INPUT_CHAIN_EDITEDv6=
FORWARD_CHAIN_EDITEDv6=
pivpnPROTO=udp
pivpnMTU=1420
pivpnPERSISTENTKEEPALIVE=25
pivpnDEV=wg0
pivpnNET=10.6.0.0
subnetClass=24
pivpnenableipv6=0
ALLOWED_IPS="0.0.0.0/0, ::0/0"
UNATTUPG=1
INSTALLED_PACKAGES=(git dnsutils grepcidr net-tools bsdmainutils iptables-persistent wireguard-tools qrencode linux-headers-amd64 wireguard-dkms unattended-upgrades)
=============================================
::::  Server configuration shown below   ::::
[Interface]
PrivateKey = server_priv
Address = 10.6.0.1/24
MTU = 1420
ListenPort = 51820
### begin t ###
[Peer]
PublicKey = t_pub
PresharedKey = t_psk
AllowedIPs = 10.6.0.2/32
### end t ###
=============================================
::::  Client configuration shown below   ::::
[Interface]
PrivateKey = t_priv
Address = 10.6.0.2/24
DNS = 1.1.1.1, 8.8.8.8

[Peer]
PublicKey = server_pub
PresharedKey = t_psk
Endpoint = REDACTED:51820
AllowedIPs = 0.0.0.0/0, ::0/0
PersistentKeepalive = 25
=============================================
::::    Recursive list of files in       ::::
::::    /etc/wireguard shown below       ::::
/etc/wireguard:
configs
keys
wg0.conf

/etc/wireguard/configs:
clients.txt
t.conf

/etc/wireguard/keys:
server_priv
server_pub
t_priv
t_psk
t_pub
=============================================
::::            Self check               ::::
:: [OK] IP forwarding is enabled
:: [OK] Iptables MASQUERADE rule set
:: [OK] WireGuard is running
:: [OK] WireGuard is enabled 
(it will automatically start on reboot)
:: [OK] WireGuard is listening on port 51820/udp
=============================================
:::: Having trouble connecting? Take a look at the FAQ:
:::: https://docs.pivpn.io/faq
=============================================
:::: WARNING: This script should have automatically masked sensitive       ::::
:::: information, however, still make sure that PrivateKey, PublicKey      ::::
:::: and PresharedKey are masked before reporting an issue. An example key ::::
:::: that you should NOT see in this log looks like this:                  ::::
:::: YIAoJVsdIeyvXfGGDDadHh6AxsMRymZTnnzZoAb9cxRe                          ::::
=============================================
::::            Debug complete           ::::
::: 
::: Debug output completed above.
::: Copy saved to /tmp/debug.log
::: 

did: WireGuard, restart the server with sudo systemctl restart wg-quick@wg0. Run lsmod | grep wireguard and confirm that you get at least this output (numbers don't matter).
result:

root@wireguard:~# systemctl restart wg-quick@wg0
root@wireguard:~# lsmod | grep wireguard
wireguard              94208  0
curve25519_x86_64      36864  1 wireguard
libchacha20poly1305    16384  1 wireguard
libcurve25519_generic    49152  2 curve25519_x86_64,wireguard
ip6_udp_tunnel         16384  1 wireguard
udp_tunnel             24576  1 wireguard

did: Check that the current IP address of the interface IPv4dev is the same as IPv4addr. You can see the current IP with ip -f inet address show IPv4dev.
result:

root@wireguard:~# ip -f inet address show eth0
2: eth0@if63: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link-netnsid 0
    inet 10.0.0.105/32 brd 10.0.0.105 scope global eth0
       valid_lft forever preferred_lft forever

I also tried here to setup the lxc with 10.0.0.105/24 cidr, didn't worked.

did: Check that the current public IP of your connection is the same as pivpnHOST. To check the current public IP: curl -s https://checkip.amazonaws.com.
result: true

did: Packet capture at proxmox host
result:

root@PXHOST ~ # tcpdump -n -i eno1 udp port 51820
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eno1, link-type EN10MB (Ethernet), snapshot length 262144 bytes
20:24:37.247653 IP PUBLIC_IP_FROM_DEVICE.23135 > PUBLIC_IP_FROM_PROXMOXHOST.51820: UDP, length 148
20:24:42.407118 IP PUBLIC_IP_FROM_DEVICE.24914 > PUBLIC_IP_FROM_PROXMOXHOST.51820: UDP, length 148
20:24:47.408793 IP PUBLIC_IP_FROM_DEVICE.3965 > PUBLIC_IP_FROM_PROXMOXHOST.51820: UDP, length 148
20:24:52.417794 IP PUBLIC_IP_FROM_DEVICE.15818 > PUBLIC_IP_FROM_PROXMOXHOST.51820: UDP, length 148
20:24:57.427425 IP PUBLIC_IP_FROM_DEVICE.25774 > PUBLIC_IP_FROM_PROXMOXHOST.51820: UDP, length 148
20:25:02.427643 IP PUBLIC_IP_FROM_DEVICE.10110 > PUBLIC_IP_FROM_PROXMOXHOST.51820: UDP, length 148
20:25:07.436955 IP PUBLIC_IP_FROM_DEVICE.14914 > PUBLIC_IP_FROM_PROXMOXHOST.51820: UDP, length 148
20:25:12.448197 IP PUBLIC_IP_FROM_DEVICE.29891 > PUBLIC_IP_FROM_PROXMOXHOST.51820: UDP, length 148
20:25:17.440071 IP PUBLIC_IP_FROM_DEVICE.7570 > PUBLIC_IP_FROM_PROXMOXHOST.51820: UDP, length 148
20:25:22.460508 IP PUBLIC_IP_FROM_DEVICE.21590 > PUBLIC_IP_FROM_PROXMOXHOST.51820: UDP, length 148

tried to edit /etc/wireguard/wg0.conf and add postup and postdown rules, restart machine reconnect device
PostUp : iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown: iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
result: no connection to the internet nor the local network

Screenshots

No response

Where did you run pivpn?

Proxmox LXC Container

Please provide your output from uname -a

Host:

Linux PXHOST 5.19.17-2-pve #1 SMP PREEMPT_DYNAMIC PVE 5.19.17-2 (Sat, 28 Jan 2023 16:40:25  x86_64 GNU/Linux

LXC:

Linux wireguard 5.19.17-2-pve #1 SMP PREEMPT_DYNAMIC PVE 5.19.17-2 (Sat, 28 Jan 2023 16:40:25  x86_64 GNU/Linux

Details about Operative System

HOST:

cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

LXC:

root@wireguard:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Installation

✓ Started LXC Container
+ '[' debian == alpine ']'
++ wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/wireguard-install.sh
+ lxc-attach -n 105 -- bash -c '#!/usr/bin/env bash

# Copyright (c) 2021-2023 tteck
# Author: tteck (tteckster)
# License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE

source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os

msg_info "Installing Dependencies"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y gunicorn
msg_ok "Installed Dependencies"

msg_info "Installing WireGuard (using pivpn.io)"
OPTIONS_PATH='\''/options.conf'\''
cat >$OPTIONS_PATH <<'\''EOF'\''
IPv4dev=eth0
install_user=root
VPN=wireguard
pivpnNET=10.6.0.0
subnetClass=24
ALLOWED_IPS="0.0.0.0/0, ::0/0"
pivpnMTU=1420
pivpnPORT=51820
pivpnDNS1=1.1.1.1
pivpnDNS2=8.8.8.8
pivpnHOST=
pivpnPERSISTENTKEEPALIVE=25
UNATTUPG=1
EOF
$STD bash <(curl -fsSL https://install.pivpn.io) --unattended options.conf
msg_ok "Installed WireGuard"

motd_ssh
root

msg_info "Cleaning up"
$STD apt-get autoremove
$STD apt-get autoclean
msg_ok "Cleaned"'
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
+ STD=
+ '[' no == yes ']'
+ catch_errors
+ set -Eeuo pipefail
+ trap 'error_handler $LINENO "$BASH_COMMAND"' ERR
+ setting_up_container
+ msg_info 'Setting up Container OS'
+ local 'msg=Setting up Container OS'
+ echo -ne ' - \033[33mSetting up Container OS...'
 - Setting up Container OS...+ sed -i '/en_US.UTF-8/ s/\(^# \)//' /etc/locale.gen
+ locale-gen
+ echo Etc/UTC
+ ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime
+ (( i = RETRY_NUM ))
+ (( i > 0 ))
++ hostname -I
+ '[' '10.0.0.105 ' '!=' '' ']'
+ break
++ hostname -I
+ '[' '10.0.0.105 ' = '' ']'
+ msg_ok 'Set up Container OS'
+ local 'msg=Set up Container OS'
+ echo -e '\r\033[K \033[1;92m✓\033[m \033[1;92mSet up Container OS\033[m'
 ✓ Set up Container OS
++ hostname -I
+ msg_ok 'Network Connected: \033[36m10.0.0.105 '
+ local 'msg=Network Connected: \033[36m10.0.0.105 '
+ echo -e '\r\033[K \033[1;92m✓\033[m \033[1;92mNetwork Connected: \033[36m10.0.0.105 \033[m'
 ✓ Network Connected: 10.0.0.105 
+ network_check
+ set +e
+ trap - ERR
+ ping -c 1 -W 1 1.1.1.1
+ msg_ok 'Internet Connected'
+ local 'msg=Internet Connected'
+ echo -e '\r\033[K \033[1;92m✓\033[m \033[1;92mInternet Connected\033[m'
 ✓ Internet Connected
++ awk '{ print $1 }'
++ getent hosts github.com
+ RESOLVEDIP=140.82.121.4
+ [[ -z 140.82.121.4 ]]
+ msg_ok 'DNS Resolved github.com to \033[36m140.82.121.4\033[m'
+ local 'msg=DNS Resolved github.com to \033[36m140.82.121.4\033[m'
+ echo -e '\r\033[K \033[1;92m✓\033[m \033[1;92mDNS Resolved github.com to \033[36m140.82.121.4\033[m\033[m'
 ✓ DNS Resolved github.com to 140.82.121.4
+ set -e
+ trap 'error_handler $LINENO "$BASH_COMMAND"' ERR
+ update_os
+ msg_info 'Updating Container OS'
+ local 'msg=Updating Container OS'
+ echo -ne ' - \033[33mUpdating Container OS...'
 - Updating Container OS...+ apt-get update
Get:1 http://security.debian.org bullseye-security InRelease [48.4 kB]
Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://security.debian.org bullseye-security/main amd64 Packages [237 kB]
Get:5 http://security.debian.org bullseye-security/main Translation-en [156 kB]
Get:6 http://deb.debian.org/debian bullseye/main Translation-en [6,240 kB]
Get:7 http://deb.debian.org/debian bullseye/contrib Translation-en [46.9 kB]
Get:8 http://deb.debian.org/debian bullseye-updates/main amd64 Packages.diff/Index [17.3 kB]
Get:9 http://deb.debian.org/debian bullseye-updates/main Translation-en [7,929 B]
Get:10 http://deb.debian.org/debian bullseye-updates/main amd64 Packages T-2023-03-25-2025.40-F-2023-02-20-2009.57.pdiff [1,261 B]
Get:10 http://deb.debian.org/debian bullseye-updates/main amd64 Packages T-2023-03-25-2025.40-F-2023-02-20-2009.57.pdiff [1,261 B]
Fetched 6,915 kB in 1s (5,118 kB/s)
Reading package lists... Done
+ apt-get -y upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following packages will be upgraded:
  bind9-dnsutils bind9-host bind9-libs libcurl3-gnutls libgnutls30 libssl1.1 libxml2 openssl tzdata
9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,211 kB of archives.
After this operation, 94.2 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye-updates/main amd64 tzdata all 2021a-1+deb11u9 [286 kB]
Get:2 http://security.debian.org bullseye-security/main amd64 libgnutls30 amd64 3.7.1-5+deb11u3 [1,340 kB]
Get:3 http://security.debian.org bullseye-security/main amd64 libssl1.1 amd64 1.1.1n-0+deb11u4 [1,560 kB]
Get:4 http://security.debian.org bullseye-security/main amd64 libxml2 amd64 2.9.10+dfsg-6.7+deb11u4 [693 kB]
Get:5 http://security.debian.org bullseye-security/main amd64 bind9-dnsutils amd64 1:9.16.37-1~deb11u1 [404 kB]
Get:6 http://security.debian.org bullseye-security/main amd64 bind9-libs amd64 1:9.16.37-1~deb11u1 [1,424 kB]
Get:7 http://security.debian.org bullseye-security/main amd64 bind9-host amd64 1:9.16.37-1~deb11u1 [308 kB]
Get:8 http://security.debian.org bullseye-security/main amd64 libcurl3-gnutls amd64 7.74.0-1.3+deb11u7 [343 kB]
Get:9 http://security.debian.org bullseye-security/main amd64 openssl amd64 1.1.1n-0+deb11u4 [853 kB]
Fetched 7,211 kB in 0s (91.5 MB/s)
apt-listchanges: Reading changelogs...
Preconfiguring packages ...
(Reading database ... 19030 files and directories currently installed.)
Preparing to unpack .../libgnutls30_3.7.1-5+deb11u3_amd64.deb ...
Unpacking libgnutls30:amd64 (3.7.1-5+deb11u3) over (3.7.1-5+deb11u2) ...
Setting up libgnutls30:amd64 (3.7.1-5+deb11u3) ...
(Reading database ... 19030 files and directories currently installed.)
Preparing to unpack .../libssl1.1_1.1.1n-0+deb11u4_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1n-0+deb11u4) over (1.1.1n-0+deb11u3) ...
Setting up libssl1.1:amd64 (1.1.1n-0+deb11u4) ...
(Reading database ... 19030 files and directories currently installed.)
Preparing to unpack .../0-tzdata_2021a-1+deb11u9_all.deb ...
Unpacking tzdata (2021a-1+deb11u9) over (2021a-1+deb11u8) ...
Preparing to unpack .../1-libxml2_2.9.10+dfsg-6.7+deb11u4_amd64.deb ...
Unpacking libxml2:amd64 (2.9.10+dfsg-6.7+deb11u4) over (2.9.10+dfsg-6.7+deb11u3) ...
Preparing to unpack .../2-bind9-dnsutils_1%3a9.16.37-1~deb11u1_amd64.deb ...
Unpacking bind9-dnsutils (1:9.16.37-1~deb11u1) over (1:9.16.33-1~deb11u1) ...
Preparing to unpack .../3-bind9-libs_1%3a9.16.37-1~deb11u1_amd64.deb ...
Unpacking bind9-libs:amd64 (1:9.16.37-1~deb11u1) over (1:9.16.33-1~deb11u1) ...
Preparing to unpack .../4-bind9-host_1%3a9.16.37-1~deb11u1_amd64.deb ...
Unpacking bind9-host (1:9.16.37-1~deb11u1) over (1:9.16.33-1~deb11u1) ...
Preparing to unpack .../5-libcurl3-gnutls_7.74.0-1.3+deb11u7_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.74.0-1.3+deb11u7) over (7.74.0-1.3+deb11u3) ...
Preparing to unpack .../6-openssl_1.1.1n-0+deb11u4_amd64.deb ...
Unpacking openssl (1.1.1n-0+deb11u4) over (1.1.1n-0+deb11u3) ...
Setting up libcurl3-gnutls:amd64 (7.74.0-1.3+deb11u7) ...
Setting up tzdata (2021a-1+deb11u9) ...

Current default time zone: 'Etc/UTC'
Local time is now:      Wed Apr 26 20:01:45 UTC 2023.
Universal Time is now:  Wed Apr 26 20:01:45 UTC 2023.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Setting up openssl (1.1.1n-0+deb11u4) ...
Setting up libxml2:amd64 (2.9.10+dfsg-6.7+deb11u4) ...
Setting up bind9-libs:amd64 (1:9.16.37-1~deb11u1) ...
Setting up bind9-host (1:9.16.37-1~deb11u1) ...
Setting up bind9-dnsutils (1:9.16.37-1~deb11u1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+deb11u5) ...
+ msg_ok 'Updated Container OS'
+ local 'msg=Updated Container OS'
+ echo -e '\r\033[K \033[1;92m✓\033[m \033[1;92mUpdated Container OS\033[m'
 ✓ Updated Container OS
+ msg_info 'Installing Dependencies'
+ local 'msg=Installing Dependencies'
+ echo -ne ' - \033[33mInstalling Dependencies...'
 - Installing Dependencies...+ apt-get install -y curl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libcurl4
The following NEW packages will be installed:
  curl libcurl4
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 617 kB of archives.
After this operation, 1,198 kB of additional disk space will be used.
Get:1 http://security.debian.org bullseye-security/main amd64 libcurl4 amd64 7.74.0-1.3+deb11u7 [346 kB]
Get:2 http://security.debian.org bullseye-security/main amd64 curl amd64 7.74.0-1.3+deb11u7 [270 kB]
Fetched 617 kB in 0s (16.9 MB/s)
Selecting previously unselected package libcurl4:amd64.
(Reading database ... 19033 files and directories currently installed.)
Preparing to unpack .../libcurl4_7.74.0-1.3+deb11u7_amd64.deb ...
Unpacking libcurl4:amd64 (7.74.0-1.3+deb11u7) ...
Selecting previously unselected package curl.
Preparing to unpack .../curl_7.74.0-1.3+deb11u7_amd64.deb ...
Unpacking curl (7.74.0-1.3+deb11u7) ...
Setting up libcurl4:amd64 (7.74.0-1.3+deb11u7) ...
Setting up curl (7.74.0-1.3+deb11u7) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+deb11u5) ...
+ apt-get install -y sudo
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  sudo
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,061 kB of archives.
After this operation, 4,699 kB of additional disk space will be used.
Get:1 http://security.debian.org bullseye-security/main amd64 sudo amd64 1.9.5p2-3+deb11u1 [1,061 kB]
Fetched 1,061 kB in 0s (55.4 MB/s)
Selecting previously unselected package sudo.
(Reading database ... 19048 files and directories currently installed.)
Preparing to unpack .../sudo_1.9.5p2-3+deb11u1_amd64.deb ...
Unpacking sudo (1.9.5p2-3+deb11u1) ...
Setting up sudo (1.9.5p2-3+deb11u1) ...
Processing triggers for man-db (2.9.4-2) ...
+ apt-get install -y mc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libglib2.0-0 libglib2.0-data libgpm2 mc-data shared-mime-info unzip xdg-user-dirs
Suggested packages:
  gpm arj catdvi | texlive-binaries dbview djvulibre-bin epub-utils genisoimage gv imagemagick libaspell-dev links
  | w3m | lynx odt2txt poppler-utils python python-boto python-tz unar wimtools xpdf | pdf-viewer zip
The following NEW packages will be installed:
  libglib2.0-0 libglib2.0-data libgpm2 mc mc-data shared-mime-info unzip xdg-user-dirs
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,376 kB of archives.
After this operation, 26.9 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 libglib2.0-0 amd64 2.66.8-1 [1,370 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libglib2.0-data all 2.66.8-1 [1,164 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 libgpm2 amd64 1.20.7-8 [35.6 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 mc-data all 3:4.8.26-1.1 [1,346 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 mc amd64 3:4.8.26-1.1 [534 kB]
Get:6 http://deb.debian.org/debian bullseye/main amd64 shared-mime-info amd64 2.0-1 [701 kB]
Get:7 http://deb.debian.org/debian bullseye/main amd64 unzip amd64 6.0-26+deb11u1 [172 kB]
Get:8 http://deb.debian.org/debian bullseye/main amd64 xdg-user-dirs amd64 0.17-2 [53.8 kB]
Fetched 5,376 kB in 0s (90.0 MB/s)  
Selecting previously unselected package libglib2.0-0:amd64.
(Reading database ... 19187 files and directories currently installed.)
Preparing to unpack .../0-libglib2.0-0_2.66.8-1_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.66.8-1) ...
Selecting previously unselected package libglib2.0-data.
Preparing to unpack .../1-libglib2.0-data_2.66.8-1_all.deb ...
Unpacking libglib2.0-data (2.66.8-1) ...
Selecting previously unselected package libgpm2:amd64.
Preparing to unpack .../2-libgpm2_1.20.7-8_amd64.deb ...
Unpacking libgpm2:amd64 (1.20.7-8) ...
Selecting previously unselected package mc-data.
Preparing to unpack .../3-mc-data_3%3a4.8.26-1.1_all.deb ...
Unpacking mc-data (3:4.8.26-1.1) ...
Selecting previously unselected package mc.
Preparing to unpack .../4-mc_3%3a4.8.26-1.1_amd64.deb ...
Unpacking mc (3:4.8.26-1.1) ...
Selecting previously unselected package shared-mime-info.
Preparing to unpack .../5-shared-mime-info_2.0-1_amd64.deb ...
Unpacking shared-mime-info (2.0-1) ...
Selecting previously unselected package unzip.
Preparing to unpack .../6-unzip_6.0-26+deb11u1_amd64.deb ...
Unpacking unzip (6.0-26+deb11u1) ...
Selecting previously unselected package xdg-user-dirs.
Preparing to unpack .../7-xdg-user-dirs_0.17-2_amd64.deb ...
Unpacking xdg-user-dirs (0.17-2) ...
Setting up libgpm2:amd64 (1.20.7-8) ...
Setting up xdg-user-dirs (0.17-2) ...
Setting up libglib2.0-0:amd64 (2.66.8-1) ...
No schema files found: doing nothing.
Setting up unzip (6.0-26+deb11u1) ...
Setting up libglib2.0-data (2.66.8-1) ...
Setting up shared-mime-info (2.0-1) ...
Setting up mc-data (3:4.8.26-1.1) ...
Setting up mc (3:4.8.26-1.1) ...
update-alternatives: using /usr/bin/mcview to provide /usr/bin/view (view) in auto mode
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for libc-bin (2.31-13+deb11u5) ...
+ apt-get install -y gunicorn
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  python3-distutils python3-gunicorn python3-lib2to3 python3-setuptools
Suggested packages:
  python3-pastedeploy python3-setproctitle python3-tornado python-setuptools-doc
The following NEW packages will be installed:
  gunicorn python3-distutils python3-gunicorn python3-lib2to3 python3-setuptools
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 669 kB of archives.
After this operation, 3,055 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 python3-lib2to3 all 3.9.2-1 [77.8 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 python3-distutils all 3.9.2-1 [143 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 python3-setuptools all 52.0.0-4 [366 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 python3-gunicorn all 20.1.0-1 [62.8 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 gunicorn all 20.1.0-1 [18.7 kB]
Fetched 669 kB in 0s (34.1 MB/s)
Selecting previously unselected package python3-lib2to3.
(Reading database ... 19933 files and directories currently installed.)
Preparing to unpack .../python3-lib2to3_3.9.2-1_all.deb ...
Unpacking python3-lib2to3 (3.9.2-1) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../python3-distutils_3.9.2-1_all.deb ...
Unpacking python3-distutils (3.9.2-1) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../python3-setuptools_52.0.0-4_all.deb ...
Unpacking python3-setuptools (52.0.0-4) ...
Selecting previously unselected package python3-gunicorn.
Preparing to unpack .../python3-gunicorn_20.1.0-1_all.deb ...
Unpacking python3-gunicorn (20.1.0-1) ...
Selecting previously unselected package gunicorn.
Preparing to unpack .../gunicorn_20.1.0-1_all.deb ...
Unpacking gunicorn (20.1.0-1) ...
Setting up python3-lib2to3 (3.9.2-1) ...
Setting up python3-distutils (3.9.2-1) ...
Setting up python3-setuptools (52.0.0-4) ...
Setting up python3-gunicorn (20.1.0-1) ...
Setting up gunicorn (20.1.0-1) ...
Processing triggers for man-db (2.9.4-2) ...
+ msg_ok 'Installed Dependencies'
+ local 'msg=Installed Dependencies'
+ echo -e '\r\033[K \033[1;92m✓\033[m \033[1;92mInstalled Dependencies\033[m'
 ✓ Installed Dependencies
+ msg_info 'Installing WireGuard (using pivpn.io)'
+ local 'msg=Installing WireGuard (using pivpn.io)'
+ echo -ne ' - \033[33mInstalling WireGuard (using pivpn.io)...'
 - Installing WireGuard (using pivpn.io)...+ OPTIONS_PATH=/options.conf
+ cat
+ bash /dev/fd/63 --unattended options.conf
++ curl -fsSL https://install.pivpn.io
:::
::: You are root.
::: --unattended passed to install script, no whiptail dialogs will be displayed
::: Hostname length OK
::: Verifying free disk space...
:::
::: Package Cache update is needed, running apt-get update -y ...
 done!
:::
::: Checking apt-get for upgraded packages.... done!
:::
::: Your system is up to date! Continuing with PiVPN installation...
:::    Checking for git... not installed!
:::    Checking for tar... already installed!
:::    Checking for curl... already installed!
:::    Checking for grep... already installed!
:::    Checking for dnsutils... not installed!
:::    Checking for grepcidr... not installed!
:::    Checking for whiptail... already installed!
:::    Checking for net-tools... not installed!
:::    Checking for bsdmainutils... not installed!
:::    Checking for bash-completion... already installed!
:::    Checking for iptables-persistent... not installed!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  git-man iptables liberror-perl libip6tc2 libnetfilter-conntrack3 libnfnetlink0 ncal netfilter-persistent
Suggested packages:
  calendar whois vacation mailutils git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-cvs git-mediawiki git-svn firewalld
Recommended packages:
  patch
The following NEW packages will be installed:
  bsdmainutils dnsutils git git-man grepcidr iptables iptables-persistent liberror-perl libip6tc2
  libnetfilter-conntrack3 libnfnetlink0 ncal net-tools netfilter-persistent
0 upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
Need to get 8450 kB of archives.
After this operation, 42.3 MB of additional disk space will be used.
Get:1 http://security.debian.org bullseye-security/main amd64 dnsutils all 1:9.16.37-1~deb11u1 [267 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libip6tc2 amd64 1.8.7-1 [35.0 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 libnfnetlink0 amd64 1.0.1-3+b1 [13.9 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 libnetfilter-conntrack3 amd64 1.0.8-3 [40.6 kB]
Get:5 http://security.debian.org bullseye-security/main amd64 git-man all 1:2.30.2-1+deb11u2 [1828 kB]
Get:6 http://deb.debian.org/debian bullseye/main amd64 iptables amd64 1.8.7-1 [382 kB]
Get:7 http://deb.debian.org/debian bullseye/main amd64 netfilter-persistent all 1.0.15 [11.0 kB]
Get:8 http://deb.debian.org/debian bullseye/main amd64 iptables-persistent all 1.0.15 [12.4 kB]
Get:9 http://deb.debian.org/debian bullseye/main amd64 ncal amd64 12.1.7+nmu3 [30.1 kB]
Get:10 http://deb.debian.org/debian bullseye/main amd64 bsdmainutils all 12.1.7+nmu3 [16.4 kB]
Get:11 http://deb.debian.org/debian bullseye/main amd64 liberror-perl all 0.17029-1 [31.0 kB]
Get:12 http://deb.debian.org/debian bullseye/main amd64 grepcidr amd64 2.0-2 [14.5 kB]
Get:13 http://deb.debian.org/debian bullseye/main amd64 net-tools amd64 1.60+git20181103.0eebece-1 [250 kB]
Get:14 http://security.debian.org bullseye-security/main amd64 git amd64 1:2.30.2-1+deb11u2 [5518 kB]
Fetched 8450 kB in 0s (95.2 MB/s)                           
Preconfiguring packages ...
Selecting previously unselected package libip6tc2:amd64.
(Reading database ... 20279 files and directories currently installed.)
Preparing to unpack .../libip6tc2_1.8.7-1_amd64.deb ...
Unpacking libip6tc2:amd64 (1.8.7-1) ...
Selecting previously unselected package libnfnetlink0:amd64.
Preparing to unpack .../libnfnetlink0_1.0.1-3+b1_amd64.deb ...
Unpacking libnfnetlink0:amd64 (1.0.1-3+b1) ...
Selecting previously unselected package libnetfilter-conntrack3:amd64.
Preparing to unpack .../libnetfilter-conntrack3_1.0.8-3_amd64.deb ...
Unpacking libnetfilter-conntrack3:amd64 (1.0.8-3) ...
Selecting previously unselected package iptables.
Preparing to unpack .../iptables_1.8.7-1_amd64.deb ...
Unpacking iptables (1.8.7-1) ...
Selecting previously unselected package netfilter-persistent.
Preparing to unpack .../netfilter-persistent_1.0.15_all.deb ...
Unpacking netfilter-persistent (1.0.15) ...
Setting up libip6tc2:amd64 (1.8.7-1) ...
Setting up libnfnetlink0:amd64 (1.0.1-3+b1) ...
Setting up libnetfilter-conntrack3:amd64 (1.0.8-3) ...
Setting up iptables (1.8.7-1) ...
update-alternatives: using /usr/sbin/iptables-legacy to provide /usr/sbin/iptables (iptables) in auto mode
update-alternatives: using /usr/sbin/ip6tables-legacy to provide /usr/sbin/ip6tables (ip6tables) in auto mode
update-alternatives: using /usr/sbin/iptables-nft to provide /usr/sbin/iptables (iptables) in auto mode
update-alternatives: using /usr/sbin/ip6tables-nft to provide /usr/sbin/ip6tables (ip6tables) in auto mode
update-alternatives: using /usr/sbin/arptables-nft to provide /usr/sbin/arptables (arptables) in auto mode
update-alternatives: using /usr/sbin/ebtables-nft to provide /usr/sbin/ebtables (ebtables) in auto mode
Selecting previously unselected package iptables-persistent.
(Reading database ... 20512 files and directories currently installed.)
Preparing to unpack .../0-iptables-persistent_1.0.15_all.deb ...
Unpacking iptables-persistent (1.0.15) ...
Selecting previously unselected package ncal.
Preparing to unpack .../1-ncal_12.1.7+nmu3_amd64.deb ...
Unpacking ncal (12.1.7+nmu3) ...
Selecting previously unselected package bsdmainutils.
Preparing to unpack .../2-bsdmainutils_12.1.7+nmu3_all.deb ...
Unpacking bsdmainutils (12.1.7+nmu3) ...
Selecting previously unselected package dnsutils.
Preparing to unpack .../3-dnsutils_1%3a9.16.37-1~deb11u1_all.deb ...
Unpacking dnsutils (1:9.16.37-1~deb11u1) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../4-liberror-perl_0.17029-1_all.deb ...
Unpacking liberror-perl (0.17029-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../5-git-man_1%3a2.30.2-1+deb11u2_all.deb ...
Unpacking git-man (1:2.30.2-1+deb11u2) ...
Selecting previously unselected package git.
Preparing to unpack .../6-git_1%3a2.30.2-1+deb11u2_amd64.deb ...
Unpacking git (1:2.30.2-1+deb11u2) ...
Selecting previously unselected package grepcidr.
Preparing to unpack .../7-grepcidr_2.0-2_amd64.deb ...
Unpacking grepcidr (2.0-2) ...
Selecting previously unselected package net-tools.
Preparing to unpack .../8-net-tools_1.60+git20181103.0eebece-1_amd64.deb ...
Unpacking net-tools (1.60+git20181103.0eebece-1) ...
Setting up net-tools (1.60+git20181103.0eebece-1) ...
Setting up ncal (12.1.7+nmu3) ...
Setting up dnsutils (1:9.16.37-1~deb11u1) ...
Setting up liberror-perl (0.17029-1) ...
Setting up bsdmainutils (12.1.7+nmu3) ...
Setting up grepcidr (2.0-2) ...
Setting up netfilter-persistent (1.0.15) ...
Created symlink /etc/systemd/system/multi-user.target.wants/netfilter-persistent.service -> /lib/systemd/system/netfilter-persistent.service.
Setting up git-man (1:2.30.2-1+deb11u2) ...
Setting up iptables-persistent (1.0.15) ...
update-alternatives: using /lib/systemd/system/netfilter-persistent.service to provide /lib/systemd/system/iptables.service (iptables.service) in auto mode
Setting up git (1:2.30.2-1+deb11u2) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+deb11u5) ...
:::    Package git successfully installed!
:::    Package dnsutils successfully installed!
:::    Package grepcidr successfully installed!
:::    Package net-tools successfully installed!
:::    Package bsdmainutils successfully installed!
:::    Package iptables-persistent successfully installed!
::: PiVPN Automated Installer
::: This installer will transform your Debian host into an OpenVPN or WireGuard server!
::: Initiating network interface
::: IPv6 test connections to google.com have failed. Disabling IPv6 support. (The curl test failed with code: 7)
::: Enable forced IPv6 route with no IPv6 uplink on server.
::: Using interface: eth0 for IPv4
::: Since we think you are not using Raspberry Pi OS, we will not configure a static IP for you.
::: User root does not exist, creating...
useradd: user 'root' already exists
::: User created without a password, please do sudo passwd root to create one
:::
::: Checking for existing base files...
:::    Checking /usr/local/src/pivpn is a repo... not found!
:::    Cloning https://github.com/pivpn/pivpn.git into /usr/local/src/pivpn ... done!
::: WireGuard will be installed
::: Installing WireGuard from Debian package...
:::    Checking for wireguard-tools... not installed!
:::    Checking for qrencode... not installed!
:::    Checking for linux-headers-amd64... not installed!
:::    Checking for wireguard-dkms... not installed!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu cpp-10 dctrl-tools dkms dpkg-dev gcc-10 libasan6 libatomic1
  libbinutils libcc1-0 libctf-nobfd0 libctf0 libdpkg-perl libgcc-10-dev libgomp1 libisl23 libitm1 liblsan0 libmpc3
  libmpfr6 libpng16-16 libqrencode4 libquadmath0 libtsan0 libubsan1 linux-compiler-gcc-10-x86
  linux-headers-5.10.0-21-amd64 linux-headers-5.10.0-21-common linux-kbuild-5.10 lsb-release make patch
Suggested packages:
  binutils-doc gcc-10-locales debtags menu debian-keyring gcc-10-multilib gcc-10-doc gnupg bzr make-doc ed
  diffutils-doc openresolv | resolvconf
Recommended packages:
  fakeroot build-essential gnupg libalgorithm-merge-perl libc6-dev libfile-fcntllock-perl wireguard
The following NEW packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu cpp-10 dctrl-tools dkms dpkg-dev gcc-10 libasan6 libatomic1
  libbinutils libcc1-0 libctf-nobfd0 libctf0 libdpkg-perl libgcc-10-dev libgomp1 libisl23 libitm1 liblsan0 libmpc3
  libmpfr6 libpng16-16 libqrencode4 libquadmath0 libtsan0 libubsan1 linux-compiler-gcc-10-x86
  linux-headers-5.10.0-21-amd64 linux-headers-5.10.0-21-common linux-headers-amd64 linux-kbuild-5.10 lsb-release
  make patch qrencode wireguard-dkms wireguard-tools
0 upgraded, 38 newly installed, 0 to remove and 0 not upgraded.
Need to get 58.2 MB of archives.
After this operation, 223 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 lsb-release all 11.1.0 [27.9 kB]
Get:2 http://security.debian.org bullseye-security/main amd64 linux-compiler-gcc-10-x86 amd64 5.10.162-1 [544 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 libisl23 amd64 0.23-1 [676 kB]
Get:4 http://security.debian.org bullseye-security/main amd64 linux-headers-5.10.0-21-common all 5.10.162-1 [9060 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 libmpfr6 amd64 4.1.0-3 [2012 kB]
Get:6 http://deb.debian.org/debian bullseye/main amd64 libmpc3 amd64 1.2.0-1 [45.0 kB]
Get:7 http://deb.debian.org/debian bullseye/main amd64 cpp-10 amd64 10.2.1-6 [8528 kB]
Get:8 http://security.debian.org bullseye-security/main amd64 linux-kbuild-5.10 amd64 5.10.162-1 [790 kB]
Get:9 http://security.debian.org bullseye-security/main amd64 linux-headers-5.10.0-21-amd64 amd64 5.10.162-1 [1066 kB]
Get:10 http://security.debian.org bullseye-security/main amd64 linux-headers-amd64 amd64 5.10.162-1 [1180 B]
Get:11 http://deb.debian.org/debian bullseye/main amd64 libcc1-0 amd64 10.2.1-6 [47.0 kB]
Get:12 http://deb.debian.org/debian bullseye/main amd64 binutils-common amd64 2.35.2-2 [2220 kB]
Get:13 http://deb.debian.org/debian bullseye/main amd64 libbinutils amd64 2.35.2-2 [570 kB]
Get:14 http://deb.debian.org/debian bullseye/main amd64 libctf-nobfd0 amd64 2.35.2-2 [110 kB]
Get:15 http://deb.debian.org/debian bullseye/main amd64 libctf0 amd64 2.35.2-2 [53.2 kB]
Get:16 http://deb.debian.org/debian bullseye/main amd64 binutils-x86-64-linux-gnu amd64 2.35.2-2 [1809 kB]
Get:17 http://deb.debian.org/debian bullseye/main amd64 binutils amd64 2.35.2-2 [61.2 kB]
Get:18 http://deb.debian.org/debian bullseye/main amd64 libgomp1 amd64 10.2.1-6 [99.9 kB]
Get:19 http://deb.debian.org/debian bullseye/main amd64 libitm1 amd64 10.2.1-6 [25.8 kB]
Get:20 http://deb.debian.org/debian bullseye/main amd64 libatomic1 amd64 10.2.1-6 [9008 B]
Get:21 http://deb.debian.org/debian bullseye/main amd64 libasan6 amd64 10.2.1-6 [2065 kB]
Get:22 http://deb.debian.org/debian bullseye/main amd64 liblsan0 amd64 10.2.1-6 [828 kB]
Get:23 http://deb.debian.org/debian bullseye/main amd64 libtsan0 amd64 10.2.1-6 [2000 kB]
Get:24 http://deb.debian.org/debian bullseye/main amd64 libubsan1 amd64 10.2.1-6 [777 kB]
Get:25 http://deb.debian.org/debian bullseye/main amd64 libquadmath0 amd64 10.2.1-6 [145 kB]
Get:26 http://deb.debian.org/debian bullseye/main amd64 libgcc-10-dev amd64 10.2.1-6 [2328 kB]
Get:27 http://deb.debian.org/debian bullseye/main amd64 gcc-10 amd64 10.2.1-6 [17.0 MB]
Get:28 http://deb.debian.org/debian bullseye/main amd64 libdpkg-perl all 1.20.12 [1551 kB]
Get:29 http://deb.debian.org/debian bullseye/main amd64 patch amd64 2.7.6-7 [128 kB]
Get:30 http://deb.debian.org/debian bullseye/main amd64 make amd64 4.3-4.1 [396 kB]
Get:31 http://deb.debian.org/debian bullseye/main amd64 dpkg-dev all 1.20.12 [2312 kB]
Get:32 http://deb.debian.org/debian bullseye/main amd64 dctrl-tools amd64 2.24-3+b1 [104 kB]
Get:33 http://deb.debian.org/debian bullseye/main amd64 dkms all 2.8.4-3 [78.2 kB]
Get:34 http://deb.debian.org/debian bullseye/main amd64 libpng16-16 amd64 1.6.37-3 [294 kB]
Get:35 http://deb.debian.org/debian bullseye/main amd64 libqrencode4 amd64 4.1.1-1 [40.4 kB]
Get:36 http://deb.debian.org/debian bullseye/main amd64 qrencode amd64 4.1.1-1 [42.6 kB]
Get:37 http://deb.debian.org/debian bullseye/main amd64 wireguard-dkms all 1.0.20210219-1 [255 kB]
Get:38 http://deb.debian.org/debian bullseye/main amd64 wireguard-tools amd64 1.0.20210223-1 [86.2 kB]
Fetched 58.2 MB in 1s (113 MB/s)       
Extracting templates from packages: 100%
Selecting previously unselected package lsb-release.
(Reading database ... 21597 files and directories currently installed.)
Preparing to unpack .../00-lsb-release_11.1.0_all.deb ...
Unpacking lsb-release (11.1.0) ...
Selecting previously unselected package libisl23:amd64.
Preparing to unpack .../01-libisl23_0.23-1_amd64.deb ...
Unpacking libisl23:amd64 (0.23-1) ...
Selecting previously unselected package libmpfr6:amd64.
Preparing to unpack .../02-libmpfr6_4.1.0-3_amd64.deb ...
Unpacking libmpfr6:amd64 (4.1.0-3) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../03-libmpc3_1.2.0-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.2.0-1) ...
Selecting previously unselected package cpp-10.
Preparing to unpack .../04-cpp-10_10.2.1-6_amd64.deb ...
Unpacking cpp-10 (10.2.1-6) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../05-libcc1-0_10.2.1-6_amd64.deb ...
Unpacking libcc1-0:amd64 (10.2.1-6) ...
Selecting previously unselected package binutils-common:amd64.
Preparing to unpack .../06-binutils-common_2.35.2-2_amd64.deb ...
Unpacking binutils-common:amd64 (2.35.2-2) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack .../07-libbinutils_2.35.2-2_amd64.deb ...
Unpacking libbinutils:amd64 (2.35.2-2) ...
Selecting previously unselected package libctf-nobfd0:amd64.
Preparing to unpack .../08-libctf-nobfd0_2.35.2-2_amd64.deb ...
Unpacking libctf-nobfd0:amd64 (2.35.2-2) ...
Selecting previously unselected package libctf0:amd64.
Preparing to unpack .../09-libctf0_2.35.2-2_amd64.deb ...
Unpacking libctf0:amd64 (2.35.2-2) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack .../10-binutils-x86-64-linux-gnu_2.35.2-2_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.35.2-2) ...
Selecting previously unselected package binutils.
Preparing to unpack .../11-binutils_2.35.2-2_amd64.deb ...
Unpacking binutils (2.35.2-2) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../12-libgomp1_10.2.1-6_amd64.deb ...
Unpacking libgomp1:amd64 (10.2.1-6) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../13-libitm1_10.2.1-6_amd64.deb ...
Unpacking libitm1:amd64 (10.2.1-6) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../14-libatomic1_10.2.1-6_amd64.deb ...
Unpacking libatomic1:amd64 (10.2.1-6) ...
Selecting previously unselected package libasan6:amd64.
Preparing to unpack .../15-libasan6_10.2.1-6_amd64.deb ...
Unpacking libasan6:amd64 (10.2.1-6) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../16-liblsan0_10.2.1-6_amd64.deb ...
Unpacking liblsan0:amd64 (10.2.1-6) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../17-libtsan0_10.2.1-6_amd64.deb ...
Unpacking libtsan0:amd64 (10.2.1-6) ...
Selecting previously unselected package libubsan1:amd64.
Preparing to unpack .../18-libubsan1_10.2.1-6_amd64.deb ...
Unpacking libubsan1:amd64 (10.2.1-6) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../19-libquadmath0_10.2.1-6_amd64.deb ...
Unpacking libquadmath0:amd64 (10.2.1-6) ...
Selecting previously unselected package libgcc-10-dev:amd64.
Preparing to unpack .../20-libgcc-10-dev_10.2.1-6_amd64.deb ...
Unpacking libgcc-10-dev:amd64 (10.2.1-6) ...
Selecting previously unselected package gcc-10.
Preparing to unpack .../21-gcc-10_10.2.1-6_amd64.deb ...
Unpacking gcc-10 (10.2.1-6) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../22-libdpkg-perl_1.20.12_all.deb ...
Unpacking libdpkg-perl (1.20.12) ...
Selecting previously unselected package patch.
Preparing to unpack .../23-patch_2.7.6-7_amd64.deb ...
Unpacking patch (2.7.6-7) ...
Selecting previously unselected package make.
Preparing to unpack .../24-make_4.3-4.1_amd64.deb ...
Unpacking make (4.3-4.1) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../25-dpkg-dev_1.20.12_all.deb ...
Unpacking dpkg-dev (1.20.12) ...
Selecting previously unselected package dctrl-tools.
Preparing to unpack .../26-dctrl-tools_2.24-3+b1_amd64.deb ...
Unpacking dctrl-tools (2.24-3+b1) ...
Setting up lsb-release (11.1.0) ...
Selecting previously unselected package dkms.
(Reading database ... 22814 files and directories currently installed.)
Preparing to unpack .../00-dkms_2.8.4-3_all.deb ...
Unpacking dkms (2.8.4-3) ...
Selecting previously unselected package libpng16-16:amd64.
Preparing to unpack .../01-libpng16-16_1.6.37-3_amd64.deb ...
Unpacking libpng16-16:amd64 (1.6.37-3) ...
Selecting previously unselected package libqrencode4:amd64.
Preparing to unpack .../02-libqrencode4_4.1.1-1_amd64.deb ...
Unpacking libqrencode4:amd64 (4.1.1-1) ...
Selecting previously unselected package linux-compiler-gcc-10-x86.
Preparing to unpack .../03-linux-compiler-gcc-10-x86_5.10.162-1_amd64.deb ...
Unpacking linux-compiler-gcc-10-x86 (5.10.162-1) ...
Selecting previously unselected package linux-headers-5.10.0-21-common.
Preparing to unpack .../04-linux-headers-5.10.0-21-common_5.10.162-1_all.deb ...
Unpacking linux-headers-5.10.0-21-common (5.10.162-1) ...
Selecting previously unselected package linux-kbuild-5.10.
Preparing to unpack .../05-linux-kbuild-5.10_5.10.162-1_amd64.deb ...
Unpacking linux-kbuild-5.10 (5.10.162-1) ...
Selecting previously unselected package linux-headers-5.10.0-21-amd64.
Preparing to unpack .../06-linux-headers-5.10.0-21-amd64_5.10.162-1_amd64.deb ...
Unpacking linux-headers-5.10.0-21-amd64 (5.10.162-1) ...
Selecting previously unselected package linux-headers-amd64.
Preparing to unpack .../07-linux-headers-amd64_5.10.162-1_amd64.deb ...
Unpacking linux-headers-amd64 (5.10.162-1) ...
Selecting previously unselected package qrencode.
Preparing to unpack .../08-qrencode_4.1.1-1_amd64.deb ...
Unpacking qrencode (4.1.1-1) ...
Selecting previously unselected package wireguard-dkms.
Preparing to unpack .../09-wireguard-dkms_1.0.20210219-1_all.deb ...
Unpacking wireguard-dkms (1.0.20210219-1) ...
Selecting previously unselected package wireguard-tools.
Preparing to unpack .../10-wireguard-tools_1.0.20210223-1_amd64.deb ...
Unpacking wireguard-tools (1.0.20210223-1) ...
Setting up libqrencode4:amd64 (4.1.1-1) ...
Setting up binutils-common:amd64 (2.35.2-2) ...
Setting up libctf-nobfd0:amd64 (2.35.2-2) ...
Setting up libgomp1:amd64 (10.2.1-6) ...
Setting up libasan6:amd64 (10.2.1-6) ...
Setting up make (4.3-4.1) ...
Setting up libmpfr6:amd64 (4.1.0-3) ...
Setting up libquadmath0:amd64 (10.2.1-6) ...
Setting up libpng16-16:amd64 (1.6.37-3) ...
Setting up libmpc3:amd64 (1.2.0-1) ...
Setting up libatomic1:amd64 (10.2.1-6) ...
Setting up wireguard-tools (1.0.20210223-1) ...
wg-quick.target is a disabled or a static unit, not starting it.
Setting up patch (2.7.6-7) ...
Setting up libdpkg-perl (1.20.12) ...
Setting up libubsan1:amd64 (10.2.1-6) ...
Setting up linux-kbuild-5.10 (5.10.162-1) ...
Setting up linux-headers-5.10.0-21-common (5.10.162-1) ...
Setting up libbinutils:amd64 (2.35.2-2) ...
Setting up libisl23:amd64 (0.23-1) ...
Setting up libcc1-0:amd64 (10.2.1-6) ...
Setting up liblsan0:amd64 (10.2.1-6) ...
Setting up cpp-10 (10.2.1-6) ...
Setting up dctrl-tools (2.24-3+b1) ...
Setting up libitm1:amd64 (10.2.1-6) ...
Setting up libtsan0:amd64 (10.2.1-6) ...
Setting up libctf0:amd64 (2.35.2-2) ...
Setting up qrencode (4.1.1-1) ...
Setting up libgcc-10-dev:amd64 (10.2.1-6) ...
Setting up binutils-x86-64-linux-gnu (2.35.2-2) ...
Setting up binutils (2.35.2-2) ...
Setting up dpkg-dev (1.20.12) ...
Setting up gcc-10 (10.2.1-6) ...
Setting up linux-compiler-gcc-10-x86 (5.10.162-1) ...
Setting up dkms (2.8.4-3) ...
Setting up wireguard-dkms (1.0.20210219-1) ...
Loading new wireguard-1.0.20210219 DKMS files...
It is likely that 5.19.17-2-pve belongs to a chroot's host
Building for 5.10.0-21-amd64
Building initial module for 5.10.0-21-amd64
Error!  The /var/lib/dkms/wireguard/1.0.20210219/5.10.0-21-amd64/x86_64/dkms.conf for module wireguard includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch.  This indicates that it should not be built.
Skipped.
Setting up linux-headers-5.10.0-21-amd64 (5.10.162-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 5.10.0-21-amd64:Error!  The /var/lib/dkms/wireguard/1.0.20210219/5.10.0-21-amd64/x86_64/dkms.conf for module wireguard includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch.  This indicates that it should not be built.
.
Setting up linux-headers-amd64 (5.10.162-1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+deb11u5) ...
:::    Package wireguard-tools successfully installed!
:::    Package qrencode successfully installed!
:::    Package linux-headers-amd64 successfully installed!
:::    Package wireguard-dkms successfully installed!
::: Using port 51820
::: Using DNS 1.1.1.1 8.8.8.8
::: No IP or domain name specified, using public IP PUBLIC_IP_FROM_PROXMOXHOST
::: Backing up the wireguard folder to /etc/wireguard_2023-04-26-200224.tar.gz
::: The Server Keys will now be generated.
::: Server Keys have been generated.
::: Server config generated.
::: Install Complete...
::: Restarting services...
::: Enabling unattended upgrades
:::    Checking for unattended-upgrades... not installed!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  python3-dbus python3-distro-info
Suggested packages:
  python-dbus-doc python3-dbus-dbg bsd-mailx needrestart powermgmt-base python3-gi
Recommended packages:
  python3-gi
The following NEW packages will be installed:
  python3-dbus python3-distro-info unattended-upgrades
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 205 kB of archives.
After this operation, 794 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 python3-dbus amd64 1.2.16-5 [108 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 python3-distro-info all 1.0 [8720 B]
Get:3 http://deb.debian.org/debian bullseye/main amd64 unattended-upgrades all 2.8 [88.6 kB]
Fetched 205 kB in 0s (12.5 MB/s)          
Preconfiguring packages ...
Selecting previously unselected package python3-dbus.
(Reading database ... 41729 files and directories currently installed.)
Preparing to unpack .../python3-dbus_1.2.16-5_amd64.deb ...
Unpacking python3-dbus (1.2.16-5) ...
Selecting previously unselected package python3-distro-info.
Preparing to unpack .../python3-distro-info_1.0_all.deb ...
Unpacking python3-distro-info (1.0) ...
Selecting previously unselected package unattended-upgrades.
Preparing to unpack .../unattended-upgrades_2.8_all.deb ...
Unpacking unattended-upgrades (2.8) ...
Setting up python3-dbus (1.2.16-5) ...
Setting up python3-distro-info (1.0) ...
Setting up unattended-upgrades (2.8) ...

Creating config file /etc/apt/apt.conf.d/20auto-upgrades with new version

Creating config file /etc/apt/apt.conf.d/50unattended-upgrades with new version
Created symlink /etc/systemd/system/multi-user.target.wants/unattended-upgrades.service -> /lib/systemd/system/unattended-upgrades.service.
Synchronizing state of unattended-upgrades.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable unattended-upgrades
Processing triggers for man-db (2.9.4-2) ...
:::    Package unattended-upgrades successfully installed!
::: Setupfiles copied to /etc/pivpn/wireguard/setupVars.conf
::: Installing scripts to /opt/pivpn...
 done.
::: Flushing writes to disk...
::: done.
::: Installation Complete!
::: Now run 'pivpn add' to create the client profiles.
::: Run 'pivpn help' to see what else you can do!

::: If you run into any issue, please read all our documentation carefully.
::: All incomplete posts or bug reports will be ignored or deleted.

::: Thank you for using PiVPN.
::: It is strongly recommended you reboot after installation.
:::
+ msg_ok 'Installed WireGuard'
+ local 'msg=Installed WireGuard'
+ echo -e '\r\033[K \033[1;92m✓\033[m \033[1;92mInstalled WireGuard\033[m'
 ✓ Installed WireGuard
+ motd_ssh
+ echo 'export TERM='\''xterm-256color'\'''
+ echo -e 'Wireguard LXC provided by https://tteck.github.io/Proxmox/\n'
+ chmod -x /etc/update-motd.d/10-uname /etc/update-motd.d/92-unattended-upgrades
+ [[ yes == \y\e\s ]]
+ sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
+ systemctl restart sshd
+ root
+ grep -q '^root:[^\!*]'
+ getent shadow root
+ msg_info 'Cleaning up'
+ local 'msg=Cleaning up'
+ echo -ne ' - \033[33mCleaning up...'
 - Cleaning up...+ apt-get autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ apt-get autoclean
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
+ msg_ok Cleaned
+ local msg=Cleaned
+ echo -e '\r\033[K \033[1;92m✓\033[m \033[1;92mCleaned\033[m'
 ✓ Cleaned
+ description
++ pct exec 105 ip a s dev eth0
++ awk '/inet / {print $2}'
++ cut -d/ -f1
+ IP=10.0.0.105
+ pct set 105 -description '# Wireguard LXC
  ### https://tteck.github.io/Proxmox/
  <a href='\''https://ko-fi.com/D1D7EP4GF'\''><img src='\''https://img.shields.io/badge/☕-Buy me a coffee-red'\'' /></a>'
+ msg_ok 'Completed Successfully!\n'
+ local 'msg=Completed Successfully!\n'
+ echo -e '\r\033[K \033[1;92m✓\033[m \033[1;92mCompleted Successfully!\n\033[m'
 ✓ Completed Successfully!```

### Profile / Client creation

pivpn add
Enter a Name for the Client: t
::: Client Keys generated
::: Client config generated
::: Updated server config
::: WireGuard reloaded
======================================================================
::: Done! t.conf successfully created!
::: t.conf was copied to /root/configs for easytransfer.
::: Please use this profile only on one device and create additional
::: profiles for other devices. You can also use pivpn -qr
::: to generate a QR Code you can scan with the mobile app.
======================================================================

### Debug output


::: Generating Debug Output
::::            PiVPN debug              ::::
=============================================
::::            Latest commit            ::::

Branch: master
Commit: 4032a55
Author: 4s3ti
Date: Wed Mar 29 14:54:19 2023 +0200
Summary: docs(issues): Remove old markdown template

:::: Installation settings ::::
PLAT=Debian
OSCN=bullseye
USING_UFW=0
pivpnforceipv6route=1
IPv4dev=eth0
install_user=root
install_home=/root
VPN=wireguard
pivpnPORT=51820
pivpnDNS1=1.1.1.1
pivpnDNS2=8.8.8.8
pivpnHOST=REDACTED
INPUT_CHAIN_EDITED=0
FORWARD_CHAIN_EDITED=0
INPUT_CHAIN_EDITEDv6=
FORWARD_CHAIN_EDITEDv6=
pivpnPROTO=udp
pivpnMTU=1420
pivpnPERSISTENTKEEPALIVE=25
pivpnDEV=wg0
pivpnNET=10.6.0.0
subnetClass=24
pivpnenableipv6=0
ALLOWED_IPS="0.0.0.0/0, ::0/0"
UNATTUPG=1
INSTALLED_PACKAGES=(git dnsutils grepcidr net-tools bsdmainutils iptables-persistent wireguard-tools qrencode linux-headers-amd64 wireguard-dkms unattended-upgrades)

:::: Server configuration shown below ::::
[Interface]
PrivateKey = server_priv
Address = 10.6.0.1/24
MTU = 1420
ListenPort = 51820

begin t

[Peer]
PublicKey = t_pub
PresharedKey = t_psk
AllowedIPs = 10.6.0.2/32

end t

=============================================
:::: Client configuration shown below ::::
[Interface]
PrivateKey = t_priv
Address = 10.6.0.2/24
DNS = 1.1.1.1, 8.8.8.8

[Peer]
PublicKey = server_pub
PresharedKey = t_psk
Endpoint = REDACTED:51820
AllowedIPs = 0.0.0.0/0, ::0/0
PersistentKeepalive = 25

:::: Recursive list of files in ::::
:::: /etc/wireguard shown below ::::
/etc/wireguard:
configs
keys
wg0.conf

/etc/wireguard/configs:
clients.txt
t.conf

/etc/wireguard/keys:
server_priv
server_pub
t_priv
t_psk
t_pub

:::: Self check ::::
:: [OK] IP forwarding is enabled
:: [OK] Iptables MASQUERADE rule set
:: [OK] WireGuard is running
:: [OK] WireGuard is enabled
(it will automatically start on reboot)
:: [OK] WireGuard is listening on port 51820/udp

:::: Having trouble connecting? Take a look at the FAQ:
:::: https://docs.pivpn.io/faq

:::: WARNING: This script should have automatically masked sensitive ::::
:::: information, however, still make sure that PrivateKey, PublicKey ::::
:::: and PresharedKey are masked before reporting an issue. An example key ::::
:::: that you should NOT see in this log looks like this: ::::
:::: YIAoJVsdIeyvXfGGDDadHh6AxsMRymZTnnzZoAb9cxRe ::::

:::: Debug complete ::::
:::
::: Debug output completed above.
::: Copy saved to /tmp/debug.log
:::