Hi,
I try to use these scripts:
https://openwrt.org/docs/guide-user/services/vpn/wireguard/road-warrior
I think I did the prerequisites - installing the needed packages, installing the scripts by ssh and nano.
But I get errors in both scripts:
(I had some wg config from prior test, but also tried to remove the "wg" parts from "networks", "firewall" and deleted "wgserver".
OpenWrt 23.05.5, r24106-10cc5fcd00
=========================================================
| Automated WireGuard Script |
| Add road-warrior peer |
=========================================================
IPv4 only tunnel
only providing tunnel ingress via IPv4
Checking variables... using new peer ID 1 for mobil
Done
./add_roadwarrior_peer.sh#: line 269: syntax error: unexpected end of file (expecting "}")
root@Acheron:~# sh ./wg_roadwarrior.sh#
======================================
| Automated WireGuard Script |
| road-warrior server setup |
======================================
Defining variables... IPv4 only mode
Done
Creating directories and pre-defining permissions on those directories... Done
Removing pre-existing WireGuard interface... Disabling pre-existing firewall script... Done
Generating WireGuard server keys for 'vpn' network... Done
Creating WireGuard interface for 'vpn' network... Done
Adding firewall rules for 'vpn' network... ./wg_roadwarrior.sh#: line 282: syntax error: unexpected end of file (expecting "fi")