Follow this guide to set up WireGuard on your Linux system
Install WireGuard using your distribution's package manager:
sudo apt update
sudo apt install wireguard
sudo dnf install wireguard-tools
sudo pacman -S wireguard-tools
sudo yum install epel-release
sudo yum install wireguard-tools
Download your WireGuard configuration from the GetIP.online dashboard.
Set up your WireGuard configuration:
sudo cp ~/your-tunnel.conf /etc/wireguard/wg0.conf
sudo chmod 600 /etc/wireguard/wg0.conf
You can start WireGuard using either method:
# Start the tunnel
sudo wg-quick up wg0
# Stop the tunnel
sudo wg-quick down wg0
# Enable and start the service
sudo systemctl enable wg-quick@wg0
sudo systemctl start wg-quick@wg0
# Check status
sudo systemctl status wg-quick@wg0
enable will start your tunnel automatically on boot.
Check that your tunnel is working correctly:
sudo wg show
# Check your IPv6 address
ip -6 addr show
# Test IPv6 connectivity
ping6 google.com
# Check routing
ip -6 route show
# Temporary
sudo sysctl -w net.ipv6.conf.all.forwarding=1
# Permanent
echo "net.ipv6.conf.all.forwarding=1" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
If you're using a firewall, allow WireGuard traffic:
# For UFW
sudo ufw allow 51820/udp
# For firewalld
sudo firewall-cmd --add-port=51820/udp --permanent
sudo firewall-cmd --reload
lsmod | grep wireguardsudo wg-quick strip wg0sudo journalctl -xe | grep wireguardnslookup google.comcat /proc/sys/net/ipv6/conf/all/disable_ipv6 (should be 0)sudo sysctl -w net.core.default_qdisc=fq net.ipv4.tcp_congestion_control=bbrYou're now connected to the IPv6 internet through GetIP.online. Your tunnel will remain active for 30 days.