# OpenVPN Management Interface Pass-through in openvpn-auth-oauth2 The OpenVPN management interface pass-through feature in openvpn-auth-oauth2 is designed to allow existing OpenVPN frontends to continue functioning while openvpn-auth-oauth2 is running. This feature is particularly useful because the OpenVPN daemon can support at most a single management client at any one time, and this feature has the same limitation. ## How it Works openvpn-auth-oauth2 acts as a middleman, forwarding commands and responses between the frontend and the OpenVPN management interface. This allows the frontend to control and monitor the OpenVPN server as if it were directly connected to the management interface. ## Configuration You can configure the pass-through feature using the following options:
| CLI configuration |
| ```bash openvpn-auth-oauth2 \ --openvpn.pass-through.enabled=true \ --openvpn.pass-through.address=unix:///run/openvpn/pass-through.sock \ # --openvpn.pass-through.password=secret # optional # --openvpn.pass-through.socket-group=openvpn-auth-oauth2 # optional # --openvpn.pass-through.socket-mode=0660 # optional ``` |
| env/sysconfig configuration |
| ```ini OPENVPN_AUTH_OAUTH2_OPENVPN_PASS_THROUGH_ENABLED=true OPENVPN_AUTH_OAUTH2_OPENVPN_PASS_THROUGH_ADDRESS=unix:///run/openvpn/pass-through.sock # OPENVPN_AUTH_OAUTH2_OPENVPN_PASS_THROUGH_PASSWORD=secret # optional # OPENVPN_AUTH_OAUTH2_OPENVPN_PASS_THROUGH_SOCKET_GROUP=openvpn-auth-oauth2 # optional # OPENVPN_AUTH_OAUTH2_OPENVPN_PASS_THROUGH_SOCKET_MODE=0660 # optional ``` |
| yaml configuration |
| ```yaml openvpn: pass-through: enabled: true address: "unix:///run/openvpn/pass-through.sock" #password: "secret" # optional #socket-group: "openvpn-auth-oauth2" # optional #socket-mode: "0660" # optional ``` |