route-up command pushed from server does not execute on client side

How to customize and extend your OpenVPN installation.
Post Reply
mehmetg
OpenVpn Newbie
Posts: 1
Joined: Thu Oct 14, 2021 11:06 pm

route-up command pushed from server does not execute on client side

Post by mehmetg » Thu Oct 14, 2021 11:09 pm

OpenVPN server with the following config will push the route-up command, but client won't execute on MacOS and no error messages...

I have also tried the up/down directives with the same results.

Client version: Version 3.3.1 (4000)

Server version: OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jul 19 2021 Any clues/pointers?
mode server

port 6179
proto udp
server 10.210.0.0 255.255.0.0

dev tun.veeampn

persist-key
persist-tun

topology subnet

auth SHA256
auth-nocache
cipher AES-256-CBC

tls-server
tls-version-min 1.2
tls-cipher TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-GCM-SHA384

remote-cert-tls client

push "allow-pull-fqdn"
push "route 172.30.0.0 255.255.0.0"
push "route 10.0.8.0 255.255.252.0"
push "script-security 1"
push "route-up \"/sbin/route add db.mysite.com 10.210.0.1\""
push "route-down \"/sbin/route delete db.mysite.com 10.210.0.1\""


fast-io
mssfix 1380
txqueuelen 1000

sndbuf 1048576
rcvbuf 1048576

keepalive 10 20

management mgmtEndpointOVPN unix
auth-user-pass-optional
management-client-auth
management-hold

User avatar
TinCanTech
Forum Team
Posts: 9945
Joined: Fri Jun 03, 2016 1:17 pm

Re: route-up command pushed from server does not execute on client side

Post by TinCanTech » Fri Oct 15, 2021 4:13 pm

:lol:

You can't push things like that .. try reading the manual.

Post Reply