Wireguard network: 10.7.0.0/24; WG Phone IP: 10.7.0.3; WG Mikrotik IP 10.7.0.2; WG server IP: 10.7.0.1
On VPS server i have another network 10.8.0.0/24 and VPS server has 10.8.0.1 IP
On my Mikrotik is running LAN network 10.6.0.0/24
I want to connect to 10.6.0.0/24 network via my phone which is connected to the VPN, but all types of configuration which i try doesn't work. The most promising config too https://www.laroberto.com/remote-lan-ac ... wireguard/
So now I can ping:
from my phone connected to VPN:
- IPs from 10.7.0.0/24
- IPs from 10.8.0.0/24
(all network traffic is routed by VPN WG on phone AllowedIPs: 0.0.0.0/0)
from PCs in Mikrotik LAN network and Mikrotik console:
- IPs from 10.6.0.0/24
- IPs from 10.7.0.0/24
- IPs from 10.8.0.0/24
Now i roll back all buged configuration and:
VPS WG server config /etc/wireguard/wg0.conf
Code: Select all
[Interface]
Address = 10.7.0.1/24, fddd:2c4:2c4:2c4::1/64
PrivateKey = XXXXXXXXX
ListenPort = 51820
# BEGIN_PEER MikroTik_hAPlite
[Peer]
PublicKey = XXXXXXXXX
PresharedKey = XXXXXXXXX
AllowedIPs = 10.7.0.2/32, fddd:2c4:2c4:2c4::2/128
# END_PEER MikroTik_hAPlite
# BEGIN_PEER phone
[Peer]
PublicKey = XXXXXXXXX
PresharedKey = XXXXXXXXX
AllowedIPs = 10.7.0.3/32, fddd:2c4:2c4:2c4::3/128
# END_PEER phone