프록시(Proxy)란?
- 프락시 서버란 클라이언트 대신에 인터넷상의 다른 서버에 접속하는 서버이다.
- 서버와 클라이언트 사이에서 중계기로서 통신을 대리로 수행한다.
프록시의 종류
1. 포워드 프록시 (Forward Proxy)
포워드 프록시란?
- 클라이언트 바로 뒤에 위치
- 같은 내부망에 존재하는 클라이언트의 요청을 대신 받아 인터넷을 통해 외부서버에서 데이터를 가져와 클라이언트에게 응답해준다.
- (클라이언트는 서버의 url로 요청을 보냄)
포워드 프록시의 장점
- 클라이언트 보안
- 방화벽으로서 기능할 수 있음
- 사용자의 접근을 제어하여 보안을 강화하는 효과가 있다.
- ex) 프록시 서버에 룰을 추가해서 특정사이트로의 요청은 처리하지 않도록 설정하여, 내부망 사용자의 인터넷 사용을 제어할 수 있다.
- 캐싱
- 동일한 요청이 반복되는 경우, 프록시 서버에 캐싱된 정보를 대신 응답으로 줄 수 있음
- 서버로 도달하는 요청 수를 줄여 서버의 부하를 줄이는 효과가 있다.
- ex) clientA, clientB, clinetC가 각각 naver.com에 접속하고 싶은 경우, 프록시 서버는 외부서버로 요청을 각각 3번 하지말고 캐싱된게 있으면 그걸 줌
- 암호화
- 프록시서버는 클라이언트의 요청을 암호화하여 외부서버로 보내므로 보안효과가 있다.
- 또한, client가 아닌 프록시서버의 IP주소가 요청에 담기므로 client의 IP주소를 은닉하는 효과가 있다.
2. 리버스 프록시 (Reverse Proxy)