post-up & pre-down in openvpn ?

This forum is for admins who are looking to build or expand their OpenVPN setup.

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
alex.tls
OpenVpn Newbie
Posts: 14
Joined: Fri Nov 12, 2021 11:05 am

post-up & pre-down in openvpn ?

Post by alex.tls » Mon Nov 15, 2021 10:38 am

I want to know if openvpn has a way that similar to post-up & pre-down in linux/wireguard to run some command after dev is up.

if I use --up , it will add additional parameters into my programs as mentioned in openvpn manual, which will break my purpose.

Code: Select all

For --dev tun execute as:
cmd tun_dev tun_mtu link_mtu ifconfig_local_ip ifconfig_remote_ip [ init | restart ]
I want to set firewall stuff after the dev tun is up , any one can help on this ?

Post Reply