Skip to contentSkip to conversation

how to migrate users to "no compression" config

Openvpn-devel Илья Шипицин 3 participants 11 messages Jun 25, 2019 – Jun 28, 2019

lore
Share & tools
lore
#0 lore raw

Hello,

for example, let us imagine we provisioned a lot of users with config files containing "comp-lzo"
and we want to migrate them to server without compression.

I see two options

1) set up new server (actually, new udp/tcp ports on the same server) and send new config to users

2) use push "compress empty" (if there's such an option) ?

Thanks,
Ilya Shipitsin

#1 lore raw

Hi,

Quoted 1 line · ???????? ??????????????

2) use push "compress empty" (if there's such an option) ?

you can do

push "compress"

with no arguments. According to the docs, this will enable compression framing format, but no actual compression.

gert

Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]...
#2 lore raw

Am 26.06.19 um 08:35 schrieb Gert Doering:

Quoted 12 lines

Hi,

Quoted 1 line · ???????? ??????????????

2) use push "compress empty" (if there's such an option) ?

you can do

push "compress"

with no arguments. According to the docs, this will enable compression framing format, but no actual compression.

Better use stub-v2 since that has no extra byte added and is also compatible with clients that do not have a compress/comp-lzo directive.

(Unless you have packets that look like IPv5)

There is also a IV_STUB_V2=1 (or similar to detect if the client can do this)

Arne

#3 lore raw

Should we add some high level documentation on compression?

Quoted 24 lines · Arne Schwabe

Am 26.06.19 um 08:35 schrieb Gert Doering:

Quoted 12 lines

Hi,

Quoted 1 line · ???????? ??????????????

2) use push "compress empty" (if there's such an option) ?

you can do

push "compress"

with no arguments. According to the docs, this will enable compression framing format, but no actual compression.

Better use stub-v2 since that has no extra byte added and is also compatible with clients that do not have a compress/comp-lzo directive.

(Unless you have packets that look like IPv5)

There is also a IV_STUB_V2=1 (or similar to detect if the client can do this)

Arne

#4 lore raw

Am 26.06.2019 um 14:19 schrieb Илья Шипицин:

Quoted 1 line

Should we add some high level documentation on compression?

My patch that enables asymmetrical compression by default adds a bit of documentation in that regard iirc.

Arne

#5 lore raw

Hi,

Quoted 2 lines · Arne Schwabe

My patch that enables asymmetrical compression by default adds a bit of documentation in that regard iirc.

Where did that get stuck? Still in limbo between David and you?

gert

Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]...
#6 lore raw

Am 27.06.19 um 09:39 schrieb Gert Doering:

Quoted 8 lines

Hi,

Quoted 2 lines · Arne Schwabe

My patch that enables asymmetrical compression by default adds a bit of documentation in that regard iirc.

Where did that get stuck? Still in limbo between David and you?

Basically, sent it to mailing list, never got any review or feedback. So anyone could review/look at it.

Arne

#7 lore raw
In reply to Gert Doering

by "high level" compression doc I mean something like that

a) road warrior scenario (remote access for enterprise users) - should we enable compression ? or traffic usually is compressed ? RDP is compressed ? any way to estimate compression (like $gzip_ratio in nginx)
b) lz4, lzo, ... which one to choose ?
c) how to push compression settings, best practices on that

@mattock, what do you think, should some such documentation present on
https://openvpn.net ?

чт, 27 июн. 2019 г. в 12:39, Gert Doering <[email protected]...>:

Quoted 20 lines

Hi,

Quoted 2 lines · Arne Schwabe

My patch that enables asymmetrical compression by default adds a bit of documentation in that regard iirc.

Where did that get stuck? Still in limbo between David and you?

gert
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never
doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh
Mistress

Gert Doering - Munich, Germany
[email protected]...

#8 lore raw

Hi,

Quoted 10 lines · ???????? ??????????????

by "high level" compression doc I mean something like that

a) road warrior scenario (remote access for enterprise users) - should we enable compression ? or traffic usually is compressed ? RDP is compressed ? any way to estimate compression (like $gzip_ratio in nginx)
b) lz4, lzo, ... which one to choose ?
c) how to push compression settings, best practices on that

@mattock, what do you think, should some such documentation present on
https://openvpn.net ?

The high level document should propably specify "do not use compression at all, unless you have a specific need".

I'm fairly sure we did publish something along that lines already, but have no idea where to look for it.

gert

Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]...
#9 lore raw

пт, 28 июн. 2019 г. в 12:49, Gert Doering <[email protected]...>:

Quoted 12 lines

Hi,

Quoted 4 lines · ???????? ??????????????

by "high level" compression doc I mean something like that

a) road warrior scenario (remote access for enterprise users) - should we enable compression ? or traffic usually is compressed ? RDP is

compressed ?

Quoted 4 lines

any way to estimate compression (like $gzip_ratio in nginx)
b) lz4, lzo, ... which one to choose ?
c) how to push compression settings, best practices on that

Quoted 6 lines
Quoted 2 lines

@mattock, what do you think, should some such documentation present on
https://openvpn.net ?

The high level document should propably specify "do not use compression at all, unless you have a specific need".

I agree with that. It might not be very obvious.

Quoted 16 lines

I'm fairly sure we did publish something along that lines already, but have no idea where to look for it.

gert
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never
doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh
Mistress

Gert Doering - Munich, Germany
[email protected]...

#10 lore raw

Am 28.06.19 um 10:26 schrieb Илья Шипицин:

Quoted 18 lines

пт, 28 июн. 2019 г. в 12:49, Gert Doering <[email protected]... <mailto:[email protected]...>>:

Hi,

On Fri, Jun 28, 2019 at 12:14:40PM +0500, ???????? ?????????????? wrote:
> by "high level" compression doc I mean something like that >
> a) road warrior scenario (remote access for enterprise users) - should we
> enable compression ? or traffic usually is compressed ? RDP is compressed ?
> any way to estimate compression (like $gzip_ratio in nginx) > b) lz4, lzo, ... which one to choose ?
> c) how to push compression settings, best practices on that >

Quoted 8 lines

> @mattock, what do you think, should some such documentation present on > https://openvpn.net ?

The high level document should propably specify "do not use compression at all, unless you have a specific need".

I agree with that. It might not be very obvious.

The async compression patch will introduce warnings and docs to tell you not to use compression and will default to async compression effectively disabling it when used on both ends.

Arne