#!/bin/sh PATH=/bin:/usr/bin:/sbin:/usr/sbin . /usr/lib/libmodcgi.sh auto_chk=''; man_chk='' client_chk=''; server_chk='' tcp_chk=''; udp_chk=''; keep_chk=''; comp_chk=''; tun_chk=''; tap_chk=''; static_chk=''; certs_chk=''; redir_chk=''; client2client_chk=''; bf_chk=''; aes128_chk=''; aes256_chk=''; des3_chk=''; float_chk=''; logfile_chk=''; dhcpclient_chk=''; pull_chk=''; tlsauth_chk=''; if [ "$OPENVPN_LZO_ENABLED" = "yes" ]; then auto_chk=' checked'; else man_chk=' checked'; fi if [ "$OPENVPN_LZO_MODE" = "server" ]; then server_chk=' checked'; else client_chk=' checked'; fi if [ "$OPENVPN_LZO_PROTO" = "udp" ]; then udp_chk=' checked'; else tcp_chk=' checked'; fi if [ "$OPENVPN_LZO_KEEPALIVE" = "yes" ]; then keep_chk=' checked'; fi if [ "$OPENVPN_LZO_COMPLZO" = "yes" ]; then comp_chk=' checked'; fi if [ "$OPENVPN_LZO_TYPE" = "tap" ]; then tap_chk=' checked'; else tun_chk=' checked'; fi if [ "$OPENVPN_LZO_AUTH_TYPE" = "certs" ]; then certs_chk=' checked'; else static_chk=' checked'; fi if [ "$OPENVPN_LZO_PUSH_REDIRECT" = "yes" ]; then redir_chk=' checked'; fi if [ "$OPENVPN_LZO_CLIENT2CLIENT" = "yes" ]; then client2client_chk=' checked'; fi if [ "$OPENVPN_LZO_FLOAT" = "yes" ]; then float_chk=' checked'; fi if [ "$OPENVPN_LZO_LOGFILE" = "yes" ]; then logfile_chk=' checked'; fi if [ "$OPENVPN_LZO_DHCP_CLIENT" = "yes" ]; then dhcpclient_chk=' checked'; fi if [ "$OPENVPN_LZO_PULL" = "yes" ]; then pull_chk=' checked'; fi if [ "$OPENVPN_LZO_TLS_AUTH" = "yes" ]; then tlsauth_chk=' checked'; fi case "$OPENVPN_LZO_CIPHER" in AES-128-CBC) aes128_chk=' selected' ;; AES-256-CBC) aes256_chk=' selected' ;; DES-EDE3-CBC) des3_chk=' selected' ;; *) bf_chk=' selected' ;; esac sec_begin '$(lang de:"Starttyp" en:"Start type")' cat << EOF

$(lang de:"Starttyp" en:"Start type")

EOF sec_end sec_begin '$(lang de:"Einstellungen" en:"Configuration")' cat << EOF

$(lang de:"OpenVPN als Server oder als Client?" en:"Use OpenVPN as a server or a client?"):  

$(lang de:"UDP oder TCP Protokoll?" en:"Protocol type UDP or TCP?"):  

$(lang de:"Port" en:"Port"): $(lang de:"Lokale Adresse" en:"Local Address") (optional):

$(lang de:"Modus" en:"Mode"):  

EOF sec_end sec_begin '$(lang de:"Sicherheit" en:"Security")' cat << EOF

$(lang de:"Authentifizierungsmethode" en:"Authentification Type"):  

Cipher:
$(lang de:"Muss auf Server und Client identisch sein" en:"Must be equal on server and client")

EOF sec_end sec_begin '$(lang de:"IP-Adressen" en:"IP-Addresses")' cat << EOF

$(lang de:"Lokaler Endpunkt" en:"Local endpoint")

$(lang de:"IP-Adresse" en:"IP-Address"): $(lang de:"Subnetzmaske" en:"Subnet Mask"):

$(lang de:"Entfernter Endpunkt (nur für" en:"Remote endpoint (only for") TUN)

$(lang de:"IP-Adresse" en:"IP-Address"):

$(lang de:"Netzwerksegment (nur für" en:"Network segment (only for") TUN-Server)


Syntax: <ip> <subnetmask>

EOF sec_end sec_begin 'Routing (optional)' cat << EOF

$(lang de:"Lokales Netzwerk" en:"Local Network Address"):
Syntax: <ip> <subnetmask>

$(lang de:"Entferntes Netzwerk" en:"Network Address"):
Syntax: <ip> <subnetmask>

EOF sec_end sec_begin '$(lang de:"Server-Einstellungen" en:"Server Configuration")' cat << EOF

$(lang de:"Client Adressbereich (nur mit Zertifikaten)" en:"Client Address Range (only when used with Certs)"):

Syntax: <start-ip> <end-ip>

Max. Clients:

Push $(lang de:"Optionen" en:"Options") (optional)

DNS Server:

WINS Server:

EOF sec_end sec_begin '$(lang de:"Client-Einstellungen" en:"Client Configuration")' cat << EOF

Server:
Server $(lang de:"Hostname oder IP-Adresse" en:"Hostname or IP-Address")

EOF sec_end sec_begin '$(lang de:"Optionen" en:"Options")' cat << EOF


$(lang de:"Muss auf Server und Client identisch sein" en:"Must be equal on server and client")

$(lang de:"Bandbreitenbegrenzung" en:"Traffic Shaping") (optional):
B/s (Bytes $(lang de:"pro Sekunde" en:"per second"))

EOF sec_end