Multi Protocol (TCP/UDP)
Can a single OpenVPN Server instance support both TCP and UDP?
Have some socks proxy locations that require TCP, but would like to still use UDP for the others.
Unfortunately, no. But you can run a TCP version next to the UDP version and they can be identical except for the tunnel networks.
The clients can attempt to use both, with the correct "remote" syntax, e.g.
remote x.x.x.x 1194 udp remote x.x.x.x 1195 tcp
And make sure they don't have "proto udp" or "proto tcp-client" or similar elsewhere in the config.
Yup that's what I thought. Thanks for the confirmation. Sure would be nice, and cleaner, if a single instance could be used for both.
So if allow connected clients to communicate is enabled will the clients of each instance be able to also communicate with clients of the other instance?
Yes, so long as a route is pushed for the other tunnel network.
e.g. the UDP VPN pushes a route to the client's for the TCP VPN tunnel network, and vice versa.