Errors in Automated WireGuard site-to-site VPN configuration

Hello,

I'm trying to use the information from https://openwrt.org/docs/guide-user/services/vpn/wireguard/site-to-site, but keep getting the following errors: (I have filled in the variables and set WG_TRIAL to non-empty.)

root@HOST:~# sh /root/s2s_combined.sh
: not foundombined.sh: line 27:
: not foundombined.sh: line 28: clear
======================================
|     Automated WireGuard Script     |
|          Site-to-Site VPN          |
|          Script generator          |
======================================
Donening variables...
: not foundombined.sh: line 78:
/root/s2s_combined.sh: line 242: syntax error: unexpected end of file (expecting "then")

I am new to this, my linux experience is beginner. I appreciate any help that you can offer. I'm trying to create a VPN between our house and office. I'm using 2 Linksys MR8300's that are bother running OpenWrt.

The file contains Windows newlines (\r\n). Convert it to UNIX format before executing it.

2 Likes

Thank you. I ALWAYS forget about that. :DOH:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.