This is an automated archive.
The original was posted on /r/wireguard by /u/Eddybeans on 2023-12-29 09:16:14+00:00.
Hello,
I am a bit lost with wireguard configuration.
I would like to access LAN devices in a client sub network 192.168.8.169 for example so I added 192.168.8.0/24 to the list of allowed ip on the client conf but what when I do that I loose lan access from within the subnet 8 network and I still cannot access any subnet 8 device from another peer.
I also added net.ipv4.ip_forward = 1 on the client
Can someone help ? here is my client config file
[Interface]
PrivateKey = [redacted]
Address = 192.168.27.65/32
DNS = 212.27.38.253
MTU = 1360
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o wlan0 -j MASQUERADE
[Peer]
PublicKey = [redacted]
Endpoint = redacted:32612
AllowedIPs = 192.168.27.64/27, 192.168.1.0/24, 192.168.8.0/24
PersistentKeepalive = 25