$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt -weight: 500;">install wireguard -y
-weight: 600;">sudo -weight: 500;">apt -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt -weight: 500;">install wireguard -y
-weight: 600;">sudo -weight: 500;">apt -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt -weight: 500;">install wireguard -y
cd /etc/wireguard
umask 077
wg genkey | tee privatekey | wg pubkey > publickey
cd /etc/wireguard
umask 077
wg genkey | tee privatekey | wg pubkey > publickey
cd /etc/wireguard
umask 077
wg genkey | tee privatekey | wg pubkey > publickey
[Interface]
PrivateKey = Address = 10.0.0.1/24
ListenPort = 51820
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE [Peer]
PublicKey = AllowedIPs = 10.0.0.2/32
[Interface]
PrivateKey = Address = 10.0.0.1/24
ListenPort = 51820
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE [Peer]
PublicKey = AllowedIPs = 10.0.0.2/32
[Interface]
PrivateKey = Address = 10.0.0.1/24
ListenPort = 51820
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE [Peer]
PublicKey = AllowedIPs = 10.0.0.2/32
-weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable wg-quick@wg0
-weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable wg-quick@wg0
-weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable wg-quick@wg0 - Install the WireGuard app on your mobile device.
- Create a new tunnel using the client private key and server public key.
- Set the Endpoint to your home's public IP address followed by :51820.
- Ensure the server is running by executing -weight: 600;">sudo wg-quick up wg0. - How to Set Up a VLAN on a Home Network
- Pi-hole Setup Guide: Block Ads and Malware for Every Device on Your Network
- OPNsense vs pfSense: Choosing the Right Firewall for Your Network