프록시
- 사전적 의미
대리인
- 클라이언트와 서버 사이의 중계자 역할. 대리통신을 수행
프록시 서버
- 컴퓨터 네트워크에서 다른 서버상의 자원을 찾는 클라이언트의 요청을 받아 중계하는 서버 → 중계서버라고 이해하면 된다
- 클라이언트가 다른 네트워크 서비스에 간접적으로 접속할 수 있게 해줌
- 보안상의 문제로 클라이언트-서버 직접 통신이 어려운 상황에서 프록시 서버를 이용해 중계통신을 진행
장점
- 보안
- 성능
- 캐싱 기능과 트래픽 분산으로 성능 향상을 이끌어낸다
- 프록시 서버가 대신 응답을 주어 서버의 자원 사용을 줄여
- 트래픽 분산
- 로드 밸런싱도 제공하여 여러 대의 분산된 서버가 있다면 트래픽을 분산시킨다
프록시 서버의 종류
- forward proxy
- 일반적으로 프록시 → 포워드 프록시
- 내부망에 있는 클라이언트가 외부 인터넷망의 서버에게 요청
- forward proxy가 먼저 요청을 받은 후, 인터넷에 연결하여 결과를 클라이언트에게 다시 forward
- 캐싱기능
- 정해진 사이트만 연결가능하도록 설정 → 웹 사용환경 통제
- 기업 내부망 환경에서 많이 사용
- 서버에게 클라이언트가 누구인지 감추는 역할
- 서버한테 요청하기 전에 프록시 서버를 먼저 호출하다보니까, 서버가 응답한 IP는 프록시 서버의 IP인것임
-
reverse proxy
- 포워드 프록시와 반대 방향
- 인터넷 망에 있는 클라이언트가 리버스 프록시를 통해 내부망 서버에게 요청하는 방식
- 프록시와 다르게 서버를 감추는 역할을 함
- 실제 서버의 IP를 알 수 없다