#!/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=''; 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_ENABLED" = "yes" ]; then auto_chk=' checked'; else man_chk=' checked'; fi if [ "$OPENVPN_MODE" = "server" ]; then server_chk=' checked'; else client_chk=' checked'; fi if [ "$OPENVPN_PROTO" = "udp" ]; then udp_chk=' checked'; else tcp_chk=' checked'; fi if [ "$OPENVPN_KEEPALIVE" = "yes" ]; then keep_chk=' checked'; fi if [ "$OPENVPN_TYPE" = "tap" ]; then tap_chk=' checked'; else tun_chk=' checked'; fi if [ "$OPENVPN_AUTH_TYPE" = "certs" ]; then certs_chk=' checked'; else static_chk=' checked'; fi if [ "$OPENVPN_PUSH_REDIRECT" = "yes" ]; then redir_chk=' checked'; fi if [ "$OPENVPN_CLIENT2CLIENT" = "yes" ]; then client2client_chk=' checked'; fi if [ "$OPENVPN_FLOAT" = "yes" ]; then float_chk=' checked'; fi if [ "$OPENVPN_LOGFILE" = "yes" ]; then logfile_chk=' checked'; fi if [ "$OPENVPN_DHCP_CLIENT" = "yes" ]; then dhcpclient_chk=' checked'; fi if [ "$OPENVPN_PULL" = "yes" ]; then pull_chk=' checked'; fi if [ "$OPENVPN_TLS_AUTH" = "yes" ]; then tlsauth_chk=' checked'; fi case "$OPENVPN_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")
$(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")
$(lang de:"IP-Adresse" en:"IP-Address"): $(lang de:"Subnetzmaske" en:"Subnet Mask"):
$(lang de:"IP-Adresse" en:"IP-Address"):
Syntax: <ip> <subnetmask>
$(lang de:"Lokales Netzwerk" en:"Local Network Address"):
Syntax: <ip> <subnetmask>
$(lang de:"Entferntes Netzwerk" en:"Network Address"):
Syntax: <ip> <subnetmask>
$(lang de:"Client Adressbereich (nur mit Zertifikaten)" en:"Client Address Range (only when used with Certs)"):
Syntax: <start-ip> <end-ip>
Max. Clients:
DNS Server:
WINS Server:
EOF sec_end sec_begin '$(lang de:"Client-Einstellungen" en:"Client Configuration")' cat << EOFServer:
Server $(lang de:"Hostname oder IP-Adresse" en:"Hostname or IP-Address")
$(lang de:"Bandbreitenbegrenzung" en:"Traffic Shaping") (optional):
B/s (Bytes $(lang de:"pro Sekunde" en:"per second"))