i am new to OpenWRT and trying to install Wireguard but also want that only some Computers are using the VPN and others can bypass and directly go over lan.
I tried now 2 days to configure this correctly but basically, always fail - as soon as i activate wireguard i can only access the internet over the vpn and not over wan. if i disable the wireguard interface and restart the wan interface i can access the internet over wan
can anyone give me a tip whats wrong in my configuration?
If they're helpful, I posted my configs here.. I deviated a little from Mullvad's tutorial (e.g. I put the interface in the lan firewall zone rather than creating a new firewall zone), but everything's been working well for me.
after a reboot wan is not even connecting anymore and if i try to open the interface on the gui its empty. If i remove the lines again the function is back to normal. Can you give me some sample how you think the config should look for my settings?
In the rules, try to use small letters for the interfaces rather than capitals.
In the route sections you'll have to either add a valid gateway or omit it, if it is changing every time you connect. Also use small letters if the interface was entered in small letters (verify with command ifstatus lan)
Finally don't forget to add a route for the local network (192.168.15.0/24) otherwise you won't be able to communicate with the router from these hosts.
As per guidelines , please refrain from signing your posts, we know who wrote each post.
If your problem is solved, feel free to mark the relevant post as the solution; and edit the title to add "[SOLVED]" to the beginning (click the pencil behind the topic).