I have searched latest two days and can't find which guide to use to config vpn-server and wireguard-server.
I would prefer to find a instruction so I can configure by myself and configure firewall and interface right.
I found this: https://openwrt.org/docs/guide-user/services/vpn/start
and that is copy and paste configure for eg vpn and wireguard.
Is that what all of you using or do I missed somethig here?
Can someone give a suggestion or is this what applies.
If you're setting up your OpenWrt device as a 'server' for Wireguard (i.e. listening for inbound connections) and you expect to connect from your devices while out of the house, this would be the "road warrior" configuration.
Did I got it right? Copy script (wg_roadwarrior.sh) and run it with my chosen config and then run peers (add_roadwarrior_peer.sh ) script to get client side config file?
Once installed, I can change the config to suit my needs.
Yup... that's the idea, although if you are likely to have any significant changes, it might be easier to either incorporate them into the script, or just configure this on your own (without the script). It's pretty easy to do via CLI, editing the config files, or LuCI web interface.
Wireguard is a VPN, and the script on the linked page sets the router up as a server (wireguard doesn't differentiate between server and client -- everything is just peers, but the setup in that config treats the router as the server and the remote devices as clients).