Ive been trying to connect to openvpn by tunneling the udp connection trough a tcp one with netcat/socat but the tls handshake keeps failing this way.
If i tunnel tcp trough tcp the same way or let it connect directly with either udp/tcp it will work just fine using my config.
So basically my setup for this is:
UDP TCP UDP
Client Openvpn -----> Netcat ------> Netcat -----> Server Openvpn
The error i get on the server is:
Fri Nov 18 19:28:02 2011 127.0.0.1:45229TLS_ERROR: BIO read tls_read_plaintext error: error:1408A0BB:SSL routines:SSL3_GET_CLIENT_HELLO:no compression specified
Using netcat or socat i get the same error, what could be the cause of this?
The idea behind this weird stuff is to leave openvpn running in udp mode while still being able to connect to it using tcp because my uni for whatever reason decided to block outgoing udp completely.
This way other users dont have to suffer the performance loss from tcp trough tcp.