From the manual of OpenVPN:
Code: Select all
--up cmd
Run command cmd after successful TUN/TAP device open (pre --user UID change).
For --dev tun execute as:
cmd tun_dev tun_mtu link_mtu ifconfig_local_ip ifconfig_remote_ip [ init | restart ]
For --dev tap execute as:
cmd tap_dev tap_mtu link_mtu ifconfig_local_ip ifconfig_netmask [ init | restart ]
Code: Select all
/sbin/ip addr add dev tun11 10.1.1.3/24 broadcast 10.1.1.255
/etc/openvpn/up_script.sh tun11 1500 1555 10.1.1.3 255.255.255.0 init