Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20210430] AWS 80 -> 8080 포트포워딩(iptables) #112

Open
JuHyun419 opened this issue Apr 30, 2021 · 0 comments
Open

[20210430] AWS 80 -> 8080 포트포워딩(iptables) #112

JuHyun419 opened this issue Apr 30, 2021 · 0 comments
Labels

Comments

@JuHyun419
Copy link
Owner

AWS EC2 80(HTTP) -> 8080(Tomcat) 포트포워딩

  • IP에서 포트(8080)을 입력하지 않고, IP로만 접속이 가능하도록 하기위해 포트포워딩
  • iptables(리눅스에서 방화벽을 설정하는 도구) 이용
# iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
# service iptables save // 규칙 저장

https://zzang9ha.tistory.com/331

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant