Vpn and wiregurd server installing "Q"

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.

Thank you!

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.

https://openwrt.org/docs/guide-user/services/vpn/wireguard/road-warrior

2 Likes

Thank you for answered

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.

Octopus

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.

I have looked around and confused what to use to config do CLI and luci configuration.
What to use here?

I don't have any heavy changes just some minor tweaks.

What would you be tweaking? The script may be perfectly fine.

I have some control script i want to use in openwrt. They are written to asuswrt and need to be converted.

Among other things this:

ifconfig-pool-persist /jffs/configs/openvpn/ipp.txt
client-connect /jffs/scripts/sendmail.sh
client-disconnect /jffs/scripts/sendmail.sh

Those have nothing to do with Wireguard.

Ops sorry you are right, my mistake. I had openvpn server in my head....

Is there any install script to VPN-server as well?

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).

Sorry if I was unclear, what I mean was openvpn.net server.
I shouldn't have asked that in the wireguard thread.

https://openwrt.org/docs/guide-user/services/vpn/openvpn/server