@yubiuser ,
As requested, I have reinstalled everything following the official guide only, and everything is working this time.
It didn't at first and since everything was "default", it was easy to play around.
Also, I could access Pi-Hole dashboard, but I couldn't access the router. I didn't check this lack of access to the router before. Yes, the iptables rules from the guide were added yesterday with no success. Something isn't entirely clean yet.
Few things I would like to mention:
During IP forwarding section, It is mentioned the file:
/etc/sysctl.d/99-sysctl.conf
instead of
/etc/sysctl.conf
Every-time I played with Debian, Ubuntu, /etc/sysctl.conf is always the mentioned one in order to enable IP forwarding.
/etc/sysctl.conf didn't have net.ipv4.ip_forward enabled. Both files were changed.
Under Troubleshooting section, it is mentioned the below which doesn't exist.
ifconfig does show it but interfaces and neither dhcpcd shows it
Disable auto wg0 in /etc/network/interfaces (put
I have also added:
DELAY_STARTUP=5
I have made simple changes regarding the Address/DNS only.
This is how my wg0.conf looks like:
[Interface]
Address = 10.100.0.1/24
Address = fd08:4711::1/64
SaveConfig = true
PostUp = iptables -w -t nat -A POSTROUTING -o eth0 -j MASQUERADE; ip6tables -w -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -w -t nat -D POSTROUTING -o eth0 -j MASQUERADE; ip6tables -w -t nat -D POSTROUTING -o eth0 -j MASQUERADE
ListenPort = 47111
PrivateKey = KEY_HERE
[Peer]
PublicKey = KEY_HERE
PresharedKey = KEY_HERE
AllowedIPs = 10.100.0.2/24
Endpoint = MY_PHONE_PUBLIC_4G_IP:4378 --- This appeared automatically.
This is how my note10plus.conf looks like:
[Interface]
Address = 10.100.0.2/24
DNS = 192.168.1.3
PrivateKey = KEY_HERE
[Peer]
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = ENDPOINT:47111
PersistentKeepalive = 25
PublicKey = KEY_HERE
PresharedKey = KEY_HERE
Speed.
Using WireGuard as DNS was quite slow so instead of setting the client DNS to 10.100.0.1, I am using 192.168.1.3 which is way faster.
Everything is still running after a reboot
Another Raspberry Pi 4 is arriving tomorrow so I can finally play without bringing down the whole network. I will repeat everything with the new one paying attention to the "possible cause" I mentioned before.
Thanks a lot for the support.