UDP Connection Works fine but TCP connection wont ping

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
sonlas7y20
OpenVpn Newbie
Posts: 2
Joined: Wed Nov 24, 2010 11:35 pm

UDP Connection Works fine but TCP connection wont ping

Post by sonlas7y20 » Thu Nov 25, 2010 12:23 am

So i was struggling to get my configuration done, up and running, it was a TCP connection.
Connection was successful but when i was pinging the other side of the VPN (Server --> Client) it just wouldnt reply.

At first i thought it was because of my firewall. Well, it wasnt because i didnt have any firewall enabled, neither on the client nor server. So at last i couldnt set up my VPN TCP Connection, and ended up setting a UDP connection, and it did work, i was able to ping from both side!!!

But its not reasonable to have a udp connection, i need a tcp.

So i dont know if any of you can help me out on this :roll:

P.D: I dont have a router, i'm only directly connected to my cablemodem, both machines, server and client are on my computer.
Server machine is Host Windows 7 Ultimate and Client is a Virtual Machine Windows XP SP2
So this is my configuration for the client.
*********************
client
dev tun
proto udp
remote SERVER_IP 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca keys/ca.crt
cert keys/VPN-Client.crt
key keys/VPN-Client.key
ns-cert-type server
comp-lzo
verb 6

And this is my server
*****************

port 1194
proto tcp
dev tun
ca keys/ca.crt
cert keys/VPN-Server.crt
key keys/VPN-Server.key # This file should be kept secret
dh keys/dh1024.pem
server 10.15.69.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS DNS1"
push "dhcp-option DNS DNS2"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 6

So if any of you has an explanation, please let me know how to fix this :(

Thx beforehands!

arnotixe
OpenVpn Newbie
Posts: 7
Joined: Fri Jan 28, 2011 4:30 am

Re: UDP Connection Works fine but TCP connection wont ping

Post by arnotixe » Fri Jan 28, 2011 5:09 pm

Read on why openvpn over TCP is a bad idea: http://sites.inka.de/~bigred/devel/tcp-tcp.html

Why can't you use UDP?

Post Reply