Openvpn from an ipad, no config

Hi,

I use openvpn on a windows machine for years, and it works fine. No I try to make a connection over an Ipad. I use this wiki: wiki.ipfire.org - Configure iOS Device for OpenVPN. But all 3 methodes doesn’t work. I get with the script methode:

 bash openvpncmd.sh ipad-TO-IPFire.ovpn ******
openvpncmd.sh: line 2: $'\r': command not found
: invalid optionine 3: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
openvpncmd.sh: line 13: $'\r': command not found
openvpncmd.sh: line 30: syntax error near unexpected token `$'in\r''
'penvpncmd.sh: line 30: `    case "$key" in

Is there an newer wiki or annother way to get it running?

Regards Bernd

I am not a windows person but it looks like there are carriage returns \r (CR) in the openvpncmd.sh file. There should only be linefeeds (LF). I think that happens with a windows application called notepad.

Hopefully someone with windows experience will stop by and be able to assist!

1 Like

The below topic may be helpful

edit

tiny hint
open the file in Notepad++
then go to Edit–>EOL Conversion–> Unix (LF)
then Save

2 Likes

It is definitely helping at least for me. Thanks for the help man.

1 Like