네트워크 주소 변환(NAT, Network Address Translation) 로드 밸런스 설정

네트워크 주소 변환(NAT, Network Address Translation) 로드 밸런스를 설정하여 요청을 프록시로 분배하십시오.

시작하기 전에

NAT 로드 밸런스에는 3개의 IP 주소가 필요합니다.
또한, 이 IP 주소를 알고 있어야 합니다.
  • 클라이언트 게이트웨이: 클라이언트 게이트웨이는 수신 클라이언트를 위한 라우터 주소입니다. 클라이언트 게이트웨이를 기본 게이트웨이로 설정하십시오.
  • 서버 라우터: 로드 밸런서가 라우터를 통과하여 동일한 서브넷에 없는 백엔드 서버에 접속하는 경우 서버 라우터를 서버 라우터 주소로 설정하십시오. 라우터를 사용하지 않는 경우, 서버 라우터를 서버 주소로 설정하십시오.
  • 서버 주소: 로드 밸런스되는 모든 백엔드 서버의 호스트 이름 또는 IP 주소입니다.

이 태스크 정보

이 태스크에서 사용자에게는 clmproxy1.example.org 및 clmproxy2.example.org의 두 개의 프록시가 있고 둘은 요청을 포트 443에서 SSL(secure sockets layer)을 통해 라우트합니다. 이 프록시 서버를 http://clm.example.org:443으로 맵핑합니다.
이 예제는 로드 밸런서 주소에 사용됩니다.
  • 비전달 주소: lb.example.org
  • 클러스터 주소: clm.example.org:443
  • 리턴 주소: lbert.example.org
이 예제는 서버 주소에 대해 사용됩니다.
  • node1.example.org:9443
  • node2.example.org:9443

프로시저

NAT 로드 밸런스를 설정하려면 명령 프롬프트를 열고 다음 명령을 입력하십시오.

  1. 로드 밸런서를 시작하십시오.
    dsserver start
    dscontrol executor start
  2. 비전달 주소 설정:
    dscontrol executor set nfa lb.example.org
    dscontrol executor set clientgateway gateway.example.org
  3. 클러스터 주소 설정:
    dscontrol cluster add clm.example.org
  4. 클러스터 가상 IP 주소를 작성하고 지정:
    dscontrol executor configure clm.example.org
  5. 포트 443에서 NAT 사용:
    dscontrol port add clm.example.org:443 method nat
  6. 리턴 가상 IP 주소를 작성하고 지정:
    dscontrol executor configure lbret.example.org
  7. 노드 1 추가:
    dscontrol server add clm.example.org:443:clmproxy1.example.org mapport 443 router clmproxy1.example.org returnaddress lbret.example.org
  8. 노드 2 추가:
    dscontrol server add clm.example.org:443:clmproxy2.example.org mapport 443 router clmproxy2.example.org returnaddress lbret.example.org
  9. 관리자 시작:
    dscontrol mananger start
  10. 어드바이저 시작:
    dscontrol advisor start https 443

피드백