Requesting help to get comp-lzo working
Posted: Wed Nov 23, 2011 7:17 pm
Is on the fly compression supposed to work? I'm having problems getting "comp-lzo" option to work.
My config file:
dev tun
comp-lzo yes
secret my.key
ifconfig 10.12.12.1 10.12.12.2
verb 3
(client side is similar)
I am using the Fedora16 distributed openvpn 2.2.1 and also tried an executable compiled myself from the sources with the lzo library and headers explicitly configured, showing the same behavior.
I'm running a 10 megabit connection between both ends. If I tranfer (sftp) a large highly compressable file (mkfile 10240k FILE) I clearly see that no compression is taking place (speed is 966 KBytes/s) over the vpn connection.
When I transfer the file over the same network (but not using the vpn) using ssh's compression option sftp -O "Compression=yes" I see a 12-fold speedup due to compression taking place, so the file compresses fine.
An sftp -o "Compression=yes" over the vpn connection also compresses fine (10-fold speedup) but I would like openvpn to handle the compression like it seems intended with comp-lzo.
Am I configuring openvpn wrong? Why is it not compressing, how can I debug the problem?
My config file:
dev tun
comp-lzo yes
secret my.key
ifconfig 10.12.12.1 10.12.12.2
verb 3
(client side is similar)
I am using the Fedora16 distributed openvpn 2.2.1 and also tried an executable compiled myself from the sources with the lzo library and headers explicitly configured, showing the same behavior.
I'm running a 10 megabit connection between both ends. If I tranfer (sftp) a large highly compressable file (mkfile 10240k FILE) I clearly see that no compression is taking place (speed is 966 KBytes/s) over the vpn connection.
When I transfer the file over the same network (but not using the vpn) using ssh's compression option sftp -O "Compression=yes" I see a 12-fold speedup due to compression taking place, so the file compresses fine.
An sftp -o "Compression=yes" over the vpn connection also compresses fine (10-fold speedup) but I would like openvpn to handle the compression like it seems intended with comp-lzo.
Am I configuring openvpn wrong? Why is it not compressing, how can I debug the problem?