#!/bin/bash
sudo apt-get update -y
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:wireguard/wireguard
sudo apt-get update -y
sudo apt-get install -y wireguard
sudo apt-get remove -y dnsmasq
echo nameserver 1.1.1.1 >/etc/resolv.conf
modprobe wireguard
modprobe iptable_nat
modprobe ip6table_nat
sudo apt-get update -y
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:wireguard/wireguard
sudo apt-get update -y
sudo apt-get install -y wireguard
sudo apt-get remove -y dnsmasq
echo nameserver 1.1.1.1 >/etc/resolv.conf
modprobe wireguard
modprobe iptable_nat
modprobe ip6table_nat
[责任编辑:jumbot]