Hello guys,
I'm struggling with OpenWrt and Wireguard config and some help with fresh look would be welcome.
I've got 2 routers in my home network: one with internet connection (from my internet provider) and second with OpenWrt (configured as dumb ap). I'm trying to setup Wireguard on OpenWrt router so I'll be able to reach PCs in my home network.
I've managed to configure connection, so I'm able to reach OpenWrt router (on 10.150.149.3 and 10.150.150.1), but I can't see any other device from the home network (10.150.149.0/24). If someone could take a look and point me what is done wrong or what else should be done I would releally appreciate.
Pasting configs below:
/etc/config/network
config interface 'lan'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ifname 'eth0 eth0.1 eth0.2'
option ipaddr '10.150.149.3'
option gateway '10.150.149.1'
option broadcast '10.150.149.255'
option dns '10.150.149.1 1.1.1.1'
config interface 'wg0'
option proto 'wireguard'
option private_key (hidden)
option listen_port (hidden)
list addresses '10.150.150.1/24'
config wireguard_wg0
option public_key (hidden)
option route_allowed_ips '1'
option persistent_keepalive '25'
option description 'notebook'
list allowed_ips '10.150.150.3'
/etc/config/firewall
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option network 'lan'
config zone
option input 'ACCEPT'
option output 'ACCEPT'
option name 'wireguard'
option network 'wg0'
option forward 'ACCEPT'
config rule
option target 'ACCEPT'
option src 'lan'
option name 'allow-lan-to-wireguard'
option dest 'wireguard'
config rule
option target 'ACCEPT'
option src 'wireguard'
option name 'allow-wireguard-to-lan'
option dest 'lan'
config forwarding
option dest 'wireguard'
option src 'lan'
config forwarding
option dest 'lan'
option src 'wireguard'
client config
[Interface]
PrivateKey = (hidden)
Address = 10.150.150.3/32
DNS = 1.1.1.1
[Peer]
PublicKey = (hidden)
Endpoint = (hidden)
AllowedIPs = 10.150.149.0/24, 10.150.150.0/24
PersistentKeepalive = 25