์ƒˆ์†Œ์‹

๐Ÿ“šStudy/ETC

[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์„ ์žฌ๊ฐ€๋™ํ•˜๋ฉด ์ •์ƒ ๋™์ž‘ํ•˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.

 

๋ฐ˜์‘ํ˜•
Contents

ํฌ์ŠคํŒ… ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค

์ด ๊ธ€์ด ๋„์›€์ด ๋˜์—ˆ๋‹ค๋ฉด ๊ณต๊ฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.