Skip to content

Commit

Permalink
Add network/Forward Proxy vs Reverse Proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
hyh1016 committed May 29, 2024
1 parent e7e219f commit 49abb2d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions network/Forward_Proxy_vs_Reverse_Proxy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Forward Proxy vs Reverse Proxy

## Proxy Server

- ν”„λ‘μ‹œ μ„œλ²„λž€, 톡신할 두 κΈ°κΈ° 사이에 μœ„μΉ˜ν•˜λŠ” 쀑간 λ‹¨κ³„μ˜ μ„œλ²„
- 보톡 λ³΄μ•ˆ, μ„±λŠ₯ λ“±μ˜ 이유둜 μ‚¬μš©λ¨
- Forward Proxy, Reverse Proxy둜 λ‚˜λ‰¨

## Forward Proxy

- **ν΄λΌμ΄μ–ΈνŠΈ μ•ž**에 μœ„μΉ˜ν•˜μ—¬ μ™ΈλΆ€ μ„œλ²„μ™€μ˜ 톡신을 μ€‘μž¬
- λ‹€μŒμ˜ μš©λ„λ‘œ μ‚¬μš©
- μ ‘κ·Ό μ œμ–΄ - ν΄λΌμ΄μ–ΈνŠΈκ°€ μ ‘κ·Όν•  수 μžˆλŠ” μ‚¬μ΄νŠΈλ₯Ό μ œν•œ/λͺ¨λ‹ˆν„°λ§
- 캐싱 - 자주 μš”μ²­λ˜λŠ” μ½˜ν…μΈ λ₯Ό 캐싱
- μ•”ν˜Έν™”λ₯Ό ν†΅ν•œ 정보 은닉 - μ„œλ²„ μž…μž₯μ—μ„œλŠ” ν”„λ‘μ‹œ μ„œλ²„κ°€ ν΄λΌμ΄μ–ΈνŠΈμ΄λ―€λ‘œ μ‹€μ œ ν΄λΌμ΄μ–ΈνŠΈμ˜ IPλ₯Ό μ•Œ 수 μ—†κ²Œ 됨

## Reverse Proxy

- **μ„œλ²„ μ•ž**에 μœ„μΉ˜ν•˜μ—¬ ν΄λΌμ΄μ–ΈνŠΈμ™€ μ„œλ²„ κ°„ 톡신을 μ€‘μž¬
- λ‹€μŒμ˜ μš©λ„λ‘œ μ‚¬μš©
- 기본적인 μ•”ν˜Έν™” 지원 - ν΄λΌμ΄μ–ΈνŠΈ-μ„œλ²„ κ°„ SSL/TLS 톡신을 ν•  λ•Œ, μ„œλ²„κ°€ 직접 이λ₯Ό μˆ˜ν–‰ν•˜κ²Œ 되면 λ§Žμ€ λΉ„μš©μ΄ λ°œμƒ. λ¦¬λ²„μŠ€ ν”„λ‘μ‹œλŠ” 이 역할을 λŒ€μ‹  μˆ˜ν–‰ν•΄μ€„ 수 있음
- ν΄λΌμ΄μ–ΈνŠΈ-ν”„λ‘μ‹œ μ„œλ²„ κ°„ SSL/TLS 톡신을 ν•˜κ³  λ‚˜λ©΄, ν”„λ‘μ‹œ μ„œλ²„μ™€ μ‹€μ œ μ„œλ²„ κ°„μ—λŠ” μ•”ν˜Έ 톡신을 ν•  ν•„μš” μ—†μŒ. μ™œ? 주둜 λ‚΄λΆ€λ§μœΌλ‘œ ν†΅μ‹ ν•˜λ―€λ‘œ (λ§Œμ•½ 그렇지 μ•Šλ‹€λ©΄ ν•„μš”ν•˜κ² μ§€λ§Œ)
- 캐싱 - 자주 μš”μ²­λ˜λŠ” μ½˜ν…μΈ λ₯Ό 캐싱
- μΊμ‹±μ˜ 경우 ν΄λΌμ΄μ–ΈνŠΈ μΈ‘μ—μ„œλŠ” 데이터λ₯Ό 빨리 λ°›μ•„λ³Ό 수 μžˆμ–΄ μ’‹κ³ , μ„œλ²„ μΈ‘μ—μ„œλŠ” λΆˆν•„μš”ν•˜κ²Œ λ¦¬μ†ŒμŠ€λ₯Ό μ œκ³΅ν•˜λŠ” 일을 μ€„μ—¬μ„œ μ’‹μŒ. μ΄λŸ¬ν•œ 이점 λ•Œλ¬Έμ— 캐싱은 두 가지 νƒ€μž…μ˜ ν”„λ‘μ‹œ λͺ¨λ‘ 적용됨
- μ•”ν˜Έν™”λ₯Ό ν†΅ν•œ 정보 은닉 - ν΄λΌμ΄μ–ΈνŠΈ μž…μž₯μ—μ„œλŠ” μš”μ²­μ„ μˆ˜μ‹ ν•˜λŠ” 것이 ν”„λ‘μ‹œ μ„œλ²„μ΄λ―€λ‘œ μ‹€μ œ μ„œλ²„μ˜ IPλ₯Ό μ•Œ 수 μ—†κ²Œ 됨

0 comments on commit 49abb2d

Please sign in to comment.