UDP server with tcp underlayer packets

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
Zed
OpenVpn Newbie
Posts: 2
Joined: Tue Jul 09, 2013 11:47 am

UDP server with tcp underlayer packets

Post by Zed » Tue Jul 09, 2013 11:53 am

Hi,

I have an OpenVPN server that uses the UDP protocol and a client that connected to it.
I wonder what happens if the client sends TCP packets to the server?
The TCP packets will be warrped with UDP because the initial connection between the 2 was UDP?
And if so do the TCP ack system will work? If the server won't get the TCP packet it will be retransmitted by the client?

Thanks in advance,

Zed.

mwandelaar
OpenVPN Super User
Posts: 219
Joined: Mon Nov 23, 2009 8:24 pm

Re: UDP server with tcp underlayer packets

Post by mwandelaar » Tue Jul 09, 2013 5:31 pm

Hopefully i understand your question correctly.

There are 2 ways to answer your question:
1) Your openvpn-server is listening on some UDP port, say 1194. TCP packets send to port 1194 (that is, external ip-address of the server and TCP port 1194) are rejected by the ip-stack of the server: There's nobody listeing on TCP-1194. No wrapping or whatsoever is done.

2) Inside the tunnel is a different situation. I wrote an explaination some time ago how that works.

Hope this helps

Zed
OpenVpn Newbie
Posts: 2
Joined: Tue Jul 09, 2013 11:47 am

Re: UDP server with tcp underlayer packets

Post by Zed » Sun Jul 14, 2013 2:35 pm

Yes it helps. Thank you!

Post Reply