# Installation von WireGuard und WG-Dashboard auf AlmaLinux If you are not logged in as root then do `sudo su -` Change this part of your config file /etc/wireguard/site2site.conf down in this script: ```bash Address = 172.32.0.0/24 ListenPort = 51820 iptables -t nat -I POSTROUTING -o site2site -j SNAT --to 172.32.0.0 ``` # Installscript ```bash # Disable AlmaLinux build in Firewall systemctl disable --now firewalld # Update the System dnf update -y && dnf install -y nano iptables git wireguard-tools python3 python3-pip net-tools openssh-server # Enable SSH Server systemctl enable --now sshd # Install WG-Dashboard https://github.com/donaldzou/WGDashboard git clone -b v3.0.6 https://github.com/donaldzou/WGDashboard.git /opt/wgdashboard cd /opt/wgdashboard/src/ chmod +x wgd.sh ./wgd.sh install chmod -R 755 /etc/wireguard ./wgd.sh debug # Create systemd service tee /etc/systemd/system/wg-dashboard.service <> /etc/wireguard/site2site.conf # Adjust iptables rules iptables -t nat -I POSTROUTING -o site2site -j SNAT --to 172.32.0.0 iptables -A FORWARD -i site2site -j ACCEPT iptables -A FORWARD -o site2site -j ACCEPT # Enable serivce for the site2site WireGuard VPN and the Dashboard for it systemctl enable --now wg-quick@site2site systemctl enable --now wg-dashboard ```