UDP Connection Works fine but TCP connection wont ping
Posted: 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
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!
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

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!