Comments in OpenVPN client config files?
Is it possible to put comments in the client config files (those in the path specified by "client-config-dir") for OpenVPN, i.e. something beginning with "#" or "//" or the like? If so, what is the appropriate comment character?
As Jim says the examples on the OpenVPN site use # for comments and ; to comment out settings. There is no functional difference but this convention makes it easier to visually identify settings that are commented out.
From https://openvpn.net/index.php/open-source/documentation/howto.html#examples
#################################################
# Sample OpenVPN 2.0 config file for #
<snip>
# Comments are preceded with '#' or ';' #
#################################################
# Which local IP address should OpenVPN
# listen on? (optional)
;local a.b.c.d
# Which TCP/UDP port should OpenVPN listen on?
# If you want to run multiple OpenVPN instances
# on the same machine, use a different port
# number for each one. You will need to
# open up this port on your firewall.
port 1194
# TCP or UDP server?
;proto tcp
proto udp
The '#' prefix is the designated comment tag. The examples on the openvpn website use '#' comments extensively.
Also, the semi-colon - ';' - is used to comment out single lines or items.