반응형
준비
- AWS 프리 티어 계정
- PC 카카오톡
- Windows Powershell ( or Git Bash )
- SSH Client
EC2 Instance 생성
- 사용할 포트는 임의 지정
- 거의 모든 PC가 IPv4를 사용하므로 '::/0'으로 IPv6를 허용해 줄 필요는 없음
SSH 접속 후 tinyproxy 설치
- PowerShell 또는 Git Bash에서 Public DNS를 사용하여 인스턴스에 연결
apt-get update
apt-get install tinyproxy
- tinyprxoy 설치
IP 확인 후 접속 허용
sudo vi /etc/tinyproxy.conf
# Port: Specify the port which tinyproxy will listen on. Please note
# that should you choose to run on a port lower than 1024 you will need
# to start tinyproxy using root.
#
Port 8809 // 보안 그룹에서 설정한 포트
# Allow: Customization of authorization controls. If there are any
# access control keywords then the default action is to DENY. Otherwise,
# the default action is ALLOW.
#
# The order of the controls are important. All incoming connections are
# tested against the controls based on order.
#
#Allow 127.0.0.1
#Allow 192.168.0.0/16
#Allow 172.16.0.0/12
#Allow 10.0.0.0/8
Allow 0.0.0.0 //접속할 PC의 공인 IP
- tinyrpoxy에 접속을 허용할 IP와 Port 설정
sudo systemctl restart tinyproxy
- tinyprxot 데몬 재시작
카카오톡 설정
cat /var/log/tinyprxoy/tinyprxoy.log
- 위 경로에서 접속 Log를 볼 수 있다.
끝.
반응형