OpenVPN community: push bash script on clients

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
ken84
OpenVpn Newbie
Posts: 1
Joined: Wed Apr 07, 2021 11:47 am

OpenVPN community: push bash script on clients

Post by ken84 » Wed Apr 07, 2021 12:02 pm

Hi guys.

When a client connects to an openVPN server, I need to transfer and run an arbitrary script on the client.

Is it possible to do this in free Openvpn?

Example script on the server:

Code: Select all

#!/bin/sh
export PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

touch /tmp/test_ovpn.txt

Post Reply