Running two servers with different configuration
I hardcoded like this
After a clean install with UDP mode
clone server.conf into server2.conf (manual edit UDP => TCP mode)
in server2.conf, change ip 10.8.0.1 to 10.9.0.1
add 10.9.0.1 in IPtables
at line 838 or close to it, add
sed -i 's|server2.conf' /lib/systemd/system/openvpn/server2.service
service openvpn@server restart and service openvpn@server2 restart
try lsof -i:1194 your port number, you will see both UDP & TCP openvpn services are running