Page 1 of 1
Windows client and Tomcat?
Posted: Fri Jan 21, 2011 11:47 pm
by bjorntj
I have a strange problem.. I have set up an OpenVPN server at work, running Linux.. When using a Linux client to connect to the server, everything work as expected... But when using a Windows client (tried from both Windows XP and Windows 7), we have a problem accessing some Tomcat servers running in our work LAN. When trying to access the webapp, the browser displays the html header title but then just keeps trying to download the rest without succeeding. Accessing standard html webpages, like Apache, is no problem. I also tried using mod_proxy through the Apache server but that didn't help either...
I really can't understand what's the difference accessing our internal LAN using the Windows client compared to the Linux client (we are also using the same client.conf file)... Does anyone have any suggestions?
Is this a known problem or do you perhaps need more information?
Regards,
BTJ
Re: Windows client and Tomcat?
Posted: Mon Jan 24, 2011 8:14 am
by maikcat
hi there,
can you please post more info on your setup..
client - server confs, os versions....
cheers,
michael
Re: Windows client and Tomcat?
Posted: Mon Jan 24, 2011 8:29 am
by bjorntj
Yes, I can...
Here is the server config..:
Code: Select all
port 1194
proto udp
dev tun
ca keys/ca.crt
cert keys/server.crt
key keys/server.key
dh keys/dh1024.pem
server 10.66.77.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 10.4.34.0 255.255.255.0"
push "route 10.4.125.0 255.255.255.0"
push "route 10.4.16.0 255.255.255.0"
push "route 10.4.129.0 255.255.255.0"
push "route 10.4.18.0 255.255.255.0"
push "route 172.29.34.0 255.255.255.0"
push "route 172.29.6.0 255.255.255.0"
push "route 172.29.27.0 255.255.255.0"
push "route 172.29.28.0 255.255.255.0"
push "route 172.29.17.0 255.255.255.0"
push "route 172.18.3.0 255.255.255.0"
push "route 10.4.40.0 255.255.255.0"
push "route 10.3.112.0 255.255.255.0"
push "route 10.4.75.0 255.255.255.0"
push "route 10.4.92.0 255.255.255.0"
push "route 172.29.41.0 255.255.255.0"
push "route 192.168.25.0 255.255.255.0"
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
The client config looks like this..:
Code: Select all
client
dev tun
proto udp
remote xxx.xxx.xxx.xxx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client-pah.crt
key client-pah.key
ns-cert-type server
comp-lzo
verb 3
The OpenVPN server runs on CentOS 5.5 and running OpenVPN 2.1.4..
The client is OpenVPN 2.1.4 and I have tried running it on Windows XP and Windows 7, with the same result..
BTJ
Re: Windows client and Tomcat?
Posted: Mon Jan 24, 2011 8:50 am
by maikcat
i know is sounds silly...
can you setup your server on another os? (ubuntu,windows..)
michael.
Re: Windows client and Tomcat?
Posted: Mon Jan 24, 2011 8:53 am
by bjorntj
Well, I can... But do you say that running OpenVPN on CentOS does not work?
BTJ
Re: Windows client and Tomcat?
Posted: Mon Jan 24, 2011 9:00 am
by maikcat
i didnt say that..
but once i had a very strange problem ,installing centos 5.4 on a hp blade system,
clients connected ok ,copy file from vpn server itself worked perfect,but when i opened
rdp to windows server it was veeeery slow...
changed to ubuntu and...worked perfectly..same config..
maybe was nic driver issue...
cheers,
Re: Windows client and Tomcat?
Posted: Mon Jan 24, 2011 9:31 am
by bjorntj
Oki... Installing Ubuntu as we speak....

Btw, the "server" we are using is a guest under VMware ESXi, does that has any implications?
BTJ
Re: Windows client and Tomcat?
Posted: Mon Jan 24, 2011 9:51 am
by maikcat
i dont use esxi so i cant express an opinion about it..
mostly i use kvm both on ubuntu & centos (x64) without problems..
but i have no expirience on type 1 hypervisors (as esx or xen)
cheers,
michael.
Re: Windows client and Tomcat?
Posted: Mon Jan 24, 2011 8:40 pm
by bjorntj
Oki, just tried the Ubuntu install but got the same result....
But thx for the suggestion...
Anymore suggestions from anyone?
BTJ
Re: Windows client and Tomcat?
Posted: Tue Jan 25, 2011 7:25 am
by maikcat
if you use verb 5 ,you anything strange in the openvpn server logs?
inside tomcat logs anything unusual..?
ps: surely its not a browser problem on windows pcs?
cheers,
michael
Re: Windows client and Tomcat?
Posted: Tue Jan 25, 2011 7:29 am
by bjorntj
Nope, tried that... Nothing special in the logs, not for OpenVPN or Tomcat..
And I have tried bot IE and Firefox under Windows, with the same result...
BTJ
Re: Windows client and Tomcat?
Posted: Tue Jan 25, 2011 7:44 am
by maikcat
so..if you connect those win pcs directly on your lan,tomcat works fine?
and if you try through openvpn tomcat fails?
brrr.....

Re: Windows client and Tomcat?
Posted: Tue Jan 25, 2011 7:47 am
by bjorntj
Yes, that's correct...
BTJ