[OpenVPN] OpenVPN ์ฐ๊ฒฐ ์ค๋ฅ Compression for receiving enabled.
๋ฐ๋จ
๋ณด์ํจ์น๋ ์ ๊ทธ๋ ์ด๋๋ฅผ ๋ ์ด์ ์ง์ํ์ง ์๋ CentOS 8.5(์ดํ A)์์ RHEL9.2(์ดํ B) ์ผ๋ก OS๋ฅผ ๋ณ๊ฒฝํ๊ธฐ ์ํด ์๋ฒ๋ฅผ ์๋ก ๊ตฌ์ถํ๋ ๊ณผ์ ์ค, ๊ธฐ์กด์ ์๋ ์๋น์ค๋ค์ ์ค์ ํ๋ ์ค ๋ฐ์ํ ์ด์์ด๋ค.
ํน์ API ์ ์ฐ๋์ ์ํด OpenVPN ์ ์ฌ์ฉํ๊ณ ์์๋๋ฐ, OpenVPN ๋ ๋ณด์์ฑ ๊ฐํ๋ฅผ ์ํด ์ต์ ๋ฒ์ ์ผ๋ก ๋ณ๊ฒฝํ๊ณ ์ ํ๋ค.
๊ธฐ์กด OpenVPN ๋ฒ์ : OpenVPN 2.4.12 x86_64-redhat-linux-gnu
๋ณ๊ฒฝ OpenVPN ๋ฒ์ : OpenVPN 2.5.9 x86_64-redhat-linux-gnu
์๋น์คํ๊ณ ์ ํ๋ ํญ๋ชฉ ์ค, ๋ ๊ฐ์ ๋ฒ์ ์ฐจ์ด์ ๋ฐ๋ฅธ ๊ตฌ๋ ์ด์๋ ๋ฑํ ์์ด์ OpenVPN ์ ๊ตฌ๋ํ์๋๋ฐ ์๋์ ๊ฐ์ ์ค๋ฅ๊ฐ ๋ฐ์ํ์๋ค.
์ด์ ํ์ธ
์ด๋ฐ.. OpenVPN ์ด 2.5 ๋ฒ์ ์ผ๋ก ๋ณ๊ฒฝ๋๋ฉฐ ๋น๋์นญ ์์ถ์ด ๊ธฐ๋ณธ ๋์์ผ๋ก ๋ณ๊ฒฝ๋์๋๋ฐ, ์ด๋ฅผ ๋ฐ๋์ ๋ช ์ํด์ผ๋ง ํ๋ ๊ฒ์ผ๋ก ๋ณ๊ฒฝ๋์๋ค.
OpenVPN ๊ณต์ ์ปค๋ฎค๋ํฐ์์๋ ์๋์ ๊ฐ์ด no ์ค์ ํ๋ผ๊ณ ํ๋ค.
Asymmetric Compression is the default behaviour in OpenVPN 2.5
--allow-compression and it comes in three flavours:
- asym (default in OpenVPN 2.5) - Use this.
- no
- yes - Use this if you really do need compression AND you understand the Risk you are taking.
Asymmetric Compression in asym mode means that:
- This node can receive compressed data but it will not send compressed data.
Example configurations:
- Recommended: Remove all --comp-lzo and --compress options from your Server and Client configs.
- Disable compression: Use --allow-compression no in your Server config.
- Asymmetric compression:
- Server use --allow-compression yes and --compress lz4
- Client use --allow-compression asym and --compress lz4
This will cause the Server to send compressed data but the Client will only send uncompressed data.
--comp-lzo and --compress
์ฒ๋ฆฌ
์ค์ ํ์ผ ๋ด, comp-lzo ๋ถ๋ถ์ no๋ฅผ ์ถ๊ฐํด์ค๋ค.
์ถ๊ฐํด์ฃผ๊ณ openVPN์ ์ฌ๊ฐ๋ํ๋ฉด ์ ์ ๋์ํ๋ ๊ฒ์ ํ์ธํ ์ ์๋ค.