mikecamposgr
I haven't played around with OpenVPN in a while and I ran into this error during a fresh install of v.2.5.5 on a Windows 10 machine tonight. I'm beating my head against the wall at this point. I can't figure out what this error means. "Maximum option line length (256) exceeded" I could really use a hand here.
port 1234
proto udp
dev tun
ca “C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\ca.crt”
cert “C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\issued\\SERVER.crt”
key “C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\private\\SERVER.key” # This file should be kept secret
dh “C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\dh.pem”
server 10.20.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
client-to-client
duplicate-cn
keepalive 10 120
tls-auth “C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\easytls\\tls-auth.key” 0 # This file is secret
cipher AES-256-CBC
persist-key
persist-tun
status openvpn-status.log
verb 3
explicit-exit-notify 1
Options error: In server7.ovpn:1: Maximum option line length (256) exceeded, line starts with port 1194
proto udp
dev tun
ca “C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\ca.crt”
cert “C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\issued\\SERVER.crt”
key “C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\private\\SERVER.key” # This file should
Use --help for more information.
Thank you in advance!!
TinCanTech
You have probably stripped out all line endings, somehow ..
kimboslice
Wrong. Fresh install on windows has macintosh line endings (CR)
The correct answer here was use Notepad++ -> edit -> EOL Conversion -> Windows (CR LF)