Skip to content

Instantly share code, notes, and snippets.

@ahivert
Last active December 17, 2016 12:06
Show Gist options
  • Save ahivert/f1e54f0e3f31f03404c7b2edf623a3b9 to your computer and use it in GitHub Desktop.
Save ahivert/f1e54f0e3f31f03404c7b2edf623a3b9 to your computer and use it in GitHub Desktop.
Connect rasplex to plex server through openvpn (from benjaminwolf from plex forum)

Openvpn config files

Place them in /storage/openvpn/

Start and connect openvpn at boot

Systemd file

Create a file named openvpn.service in /storage/.config/system.d/with this content :

[Unit]
Description=OpenVPN Autorun Service
After=network-online.target
Requires=network-online.service

[Service]
WorkingDirectory=/storage/openvpn
Type=forking
ExecStart=/usr/sbin/openvpn --daemon --config /storage/openvpn/your_config_file.ovpn
TimeoutStopSec=1
Restart=always
RestartSec=2
StartLimitInterval=0

[Install]
WantedBy=multi-user.target

Enable service

systemctl enable MYOPENVPN.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment