I'm using an old laptop as a Home server and I wanted to set up a VPN (Wireguard & DuckDNS using PiVPN
) following this guide: https://chriskalos.notion.site/The-0-Home-Server-Written-Guide-5d5ff30f9bdd4dfbb9ce68f0d914f1f6#4395816a03b5400e8b8634b578b66f40
so I got my Domain from DuckDNS
and I set a Static DHCP
like this: https://imgur.com/a/Y18BGgS
and I forwarded the port in my router following this guide: https://portforward.com/vodafone/gigabox/
this is what it looks like: https://imgur.com/a/4TsSxti
when setting up pivpn
I selected:
WireGuard
as Installation modethe default wireguard port:
51820
DNS provider:
CloudFlare
Public IP or DNS:
DNS Entry
Public DNS name of this server:
<mydns>.duckdns.org
and the Rebbot of the system
then I added a pivpn with pivpn add
then pivpn -qr
to generate a QR code I opened my WireGuard from my phone scanned the QR code and connected to my VPN but there was no internet connection in my phone.
this is a screenshot of my configuration: https://imgur.com/a/ge6TPek
sudo wg
output with my phone connected to the VPN using mobile data :
xxx@xxx:~$ sudo wg
interface: wg0
public key: xxxxx
private key: (hidden)
listening port: 51820
fwmark: 0xca6c
peer: xxxxxx
preshared key: (hidden)
allowed ips: 0.0.0.0/0
My router info:
Firmware version: Vodafone-H-300s-v1.0.11.05
WAN IPv4 Address: 212.xxx.xxx.xx
WAN IPv6 Address:
My Public IPv4 using whatismyip
is: 212.xxx.xxx.xx
ipvpn debug
output: https://pastebin.pl/view/9d8a1fc2
any help, please? Thanks
sudo wg
on your old laptop (after connecting to the VPN on your phone? Did you disconnect the phone from your local network before trying? // (Just ignore lazy flaggers and the resulting bot comments.)whatismyip
and it displayed this:My Public IPv4:##.###.##.### My Public IPv6: Not Detected
2-sudo wg
gives the same output whether the phone is connected or not and it's this:interface: wg0 public key: xxxxxxxxx private key: (hidden) listening port: 51820 peer: xxxxxxxxx preshared key: (hidden) allowed ips: 10.#5.###.2/3#
, and yes Im on 4g when I connected to the VPN