Skip to main content
Version: current

server


interface/ovpn-server/server

Type: Directory

FlagNameDescription
IinactiveWhether the server is inactive.
XdisabledWhether an item is disabled.
ArgumentTypeDescription
namestringName of the server.
portnumPort to run the server on.
modeenum (ip | ethernet) { ip:0, ethernet:1 }Layer3 or Layer2 tunnel mode (alternatively tun, tap).
protocolenum (tcp | udp)Transport protocol to use when connecting with the remote endpoint.
netmasknumSubnet mask applied to the client.
mac-addressmacAddrAutomatically generated MAC address of the server.
max-mtunumMaximum Transmission Unit. Maximum packet size that the OVPN interface can send without packet fragmentation.
keepalive-timeoutenum (disabled) { disabled:0 }Defines the time period (in seconds) after which the router starts sending keepalive packets every second. If no traffic and no keepalive responses are received for twice the keepalive-timeout, the non-responding client is disconnected.
default-profileenumSpecifies which PPP profile configuration is used when establishing the tunnel.
certificateenumCertificate from the certificate store that the OVPN server uses.
require-client-certificateboolIf set to yes, the server checks whether the client's certificate belongs to the same certificate chain.
tls-versionenum (any | only-1.2) { any:0, only-1.2:2 }Specifies which TLS versions to allow.
authubit (sha1, md5, sha256, sha384, sha512, null)Authentication methods that the server accepts.
cipherubit (blowfish128, aes128-cbc, aes192-cbc, aes256-cbc, aes128-gcm, aes192-gcm, aes256-gcm, null)Allowed ciphers.
reneg-secnumEncryption key re-negotiation interval in seconds. 0 disables re-negotiation.
redirect-gatewayubit (disabled, def1, ipv6)Specifies which routes the OVPN client must add to the routing table. def1 - overrides the default gateway with 0.0.0.0/1 and 128.0.0.0/1 instead of 0.0.0.0/0. disabled - does not push redirect-gateway flags. ipv6 - redirects IPv6 routing into the tunnel by adding 2000::/4 and 3000::/4 routes.
push-routesstringRoutes to push to the client. Maximum input is limited to 1400 characters or 37 routes. IPv6 support added in version 7.21.
push-routes-ipv6stringIPv6 routes to push to the client.
enable-tun-ipv6boolWhether IPv6 tunneling is enabled for this OVPN server.
tun-server-ipv6ip6AddrIPv6 prefix address used when generating the OVPN interface on the server side.
ipv6-prefix-lennumPrefix length used for the tunneled IPv6 address.
vrfenumVRF in which to listen for connection attempts.
user-auth-methodenum (pap | mschap2) { pap:16, mschap2:2 }By default PAP authentication is used. Set to mschap2 to use CHAP challenge authentication.