hi
Server:
wireguard wg0 { address 192.168.3.1/24 firewall { out { } } listen-port 443 mtu 1420 peer ****************************************** { allowed-ips 192.168.3.2/32 } private-key **************** route-allowed-ips false }
Android Client
[Interface] Address = 192.168.3.2/32 DNS = 192.168.2.1 PrivateKey = ************************************************ [Peer] PublicKey = ************************************************ Endpoint = [public ip]:443 AllowedIPs = 0.0.0.0/0, ::/0 PersistentKeepalive = 25
Access to the lan once connected works fine: route tables looks like this:
0.0.0.0/24 dev wg0 proto kernel scope link default via [isp gateway] dev eth0 proto zebra [isp subnet] dev eth0 proto kernel scope link src [public ip] 192.168.2.0/24 dev eth1 proto kernel scope link src 192.168.2.1 192.168.3.0/24 dev wg0 proto kernel scope link src 192.168.3.1