I am wondering if I got this right. so I have a wireguard VPN server on a VPS and the main interface for all its traffic is wg0, and there are three different routers at 10.66.66.2,3, and 4. what I am trying to do is allow all the 3 subnets which are NAT’s behind the routers to talk to each other!!! did I do it right or did I mess it up? now I know you are gonna ask if the routers have routing tables as well I mean they can but I don’t know if the wireguard server routing table would be enough!!
sudo iptables -t nat -A POSTROUTING -d 192.168.0.0/24 -i wg0 DNAT --to-source 10.3.2.2 sudo iptables -t nat -A POSTROUTING -d 10.8.0.0/24 -i wg0 DNAT --to-source 10.3.2.3 sudo iptables -t nat -A POSTROUTING -d 10.66.66.0/24 -i wg0 DNAT --to-source 10.3.2.4