OpenVPN up/down script issues

rfdarter

New Member
Dec 2, 2024
2
0
1
My openvpn client is running in a unprivileged lxc container.

I tried setting up a up and down script, but whenever i add the lines

Code:
script-security 2
up "/etc/openvpn/client/up-lte-wald.sh"
to my config, starting the service fails with that message
Code:
Nov 25 22:29:53 openvpn-client openvpn[399]: openvpn_execve: unable to fork: Resource temporarily unavailable (errno=11)
Nov 25 22:29:53 openvpn-client openvpn[399]: Exiting due to fatal error

Here is my client config.
Code:
client
dev tun
proto udp
float
nobind
cipher AES-128-CBC
comp-lzo adaptive
resolv-retry infinite
persist-key
#persist-tun
verb 3
remote my-host 1199
script-security 2
up "/etc/openvpn/client/up-lte-wald.sh"

my `up-lte-wald.sh` looks like this
chmod 777 and chmod +x was applied to the file

Code:
#!/bin/sh

echo "nur ein test"

I allready modified `LimitNPROC` in `/lib/systemd/system/openvpn@.service` and set it to 1000
 
Have you tried running it in a priviledged container? If it works, it might just be a permission problem you could pin down then.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!