cschaake
I have setup a openvpn (2.2.1) on Ubuntu 12.04.3 using TCP on TUN. The VPNServer binds to port 443 and I'm using the port-share option to share the openvpn port with an apache webserver on another host.
The vpn connection is working perfectly. Performance is fine. But the performance to the apache webserver via openvpn (via port-share) is terrible. The webserver itself is working fine when connecting directly. Even without any vpn clients, performance remains extremely poor.
CPU utilization is very low, and the server is not swapping.
server.conf:
port 443
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
keepalive 10 120
tls-auth ta.key
comp-lzo
persist-key
persist-tun
verb 3
port-share 10.0.0.20 443 # Link to apache webserver on other intranet host
openvpn.log contains the following lines:
Thu Sep 19 20:29:43 2013 83.163.95.137:49631 Non-OpenVPN client protocol detected
Thu Sep 19 20:29:43 2013 83.163.95.137:49631 SIGTERM[soft,port-share-redirect] received, client-instance exiting
Thu Sep 19 20:29:43 2013 TCP/UDP: Closing socket
Any help is welcome.