- 환경
- Mac with Public Secured Wifi -> Public EC2 -> Private Load Balancers and Private EC2 Proxy -> docker on Private EC2
# Modify /private/etc/hosts file
127.0.0.1 <Target Domain>
# Modify .zshrc file
alias <alias name>='ssh -i <your key file name>.pem <username>@<public EC2 IP> -p <public EC2 port> \
-g -L <local port which is not in use>:<target domain name>:<target port> \
-g -L <local port which is not in use>:<target domain name>:<target port>'
source .zshrc
<type alias name>
터미널에서 Public EC2 에 들어가지면 브라우저에서 <접속할 타겟 도메인>:<지정한 로컬포트> 로 입력합니다.
Public EC2 를 거쳐 내부 Private 도메인에 접속이 됩니다.
이때 접속할 소스가 Public EC2 보안그룹에 허용되어 있어야 합니다.
'Network' 카테고리의 다른 글
ABR (Adaptive bitrate streaming) (0) | 2023.03.10 |
---|---|
TCP의 혼잡제어와 흐름제어 (congestion control and flow control in TCP) (0) | 2023.02.28 |
UDP vs TCP (Difference between UDP and TCP in Network) (0) | 2023.02.28 |
체크섬(checksum)과 패리티 비트(parity bit) (0) | 2023.02.28 |
transport layer services for self-study and summary (0) | 2023.02.28 |