티스토리 뷰

원문 링크

 

Source Port vs Destination Port

I am new to TCP/IP and trying hard to learn basics. Well, I really wonder about inbound rules and outbound rules of Firewall and concept of source adress:port, destination adress:port. For example...

stackoverflow.com

Source Port vs Destination Port

송신 포트 vs 수신 포트


I am new to TCP/IP and trying hard to learn basics.

저는 TCP/IP를 처음 접하고 기초를 배우기 위해 노력하고 있습니다.

Well, I really wonder about inbound rules and outbound rules of Firewall and concept of source adress:port, destination adress:port.

> 저는 방화벽의 인바운드 규칙과 아웃바운드 규칙에 대해서 그리고 source adress:port(송신포트)와 destination adress:port(목적지포트)의 개념에 대해서 궁금합니다.


For example I am investigating port 80. 

> 예를들어 저는 80번 포트에 대해서 조사하고 있습니다.

I know that http uses port 80. 

> 저는 http가 80번 포트를 사용한다고 알고 있습니다.

But when I try to listen the traffic I see that my browser doesn't use 80. 

> 하지만 제가 트래픽을 수신하려고 할때 저는 제 브라우저가 80번 포트를 사용하지 않는다는걸 알았습니다.

As you see from the image only destination port 80 is used and "destination" should be the server that hosts web pages not my computer. 

> 이 이미지에서 보실 수 있듯이 오직 수신포트 80번만이 사용되고 '목적지'는 웹 페이지를 호스트하는 서버지 제 컴퓨터가 아닙니다.

And also there is no used port 80 on source port, "source" should be my computer.

> 그리고 또한 송신포트에서는 80 번 포트를 사용하지 않습니다. '송신'은 제 컴퓨터일 것입니다.

 

출처 : https://stackoverflow.com/questions/21253474

My browser uses some other ports as source and goes to server port 80. 

> 제 브라우저는 다른 포트들을 송신 포트로 사용하여 서버의 80번 포트로 갑니다.

From that, I understand that port 80 of my computer is not used for http, only server computers that host the web pages used port 80 but if I close port 80 of my computer from outbound rules the internet dooesn't work. 

> 여기에서, 저는 제 컴퓨터의 80번 포트가 http를 위해 사용되지 않으며, 오직 서버 컴퓨터들이 웹페이지를 호스팅 할때 80번 포트를 사용한다고 이해했습니다. 하지만 만약 제가 제 컴퓨터의 아웃바운드 규칙으로 부터 80번 포트를 닫으면 인터넷이 동작하지 않습니다.

But as I understood before from the image, port 80 is not used on my computer.

> 하지만 전에 이미지에서, 저는 제 컴퓨터의 80번 포트가 사용되지 않는다고 이해했었습니다.

Really confused. Can anybody clarify it for me?

> 정말로 혼란스럽습니다. 누군가 명확하게 설명해 주실 수 있나요?

 

 

Answer


You are right : the communication goes from your computer (source port chosen "randomly") to a web server (destination port 80). 

> 당신이 맞습니다. 통신은 당신의 컴퓨터(송신포트='랜덤')로 부터 웹 서버(수신포트=80)로 진행됩니다.

And from a web server (source port 80) to your computer (destination port xxxxx) for the server's responses.

> 그리고 웹 서버(수신포트=80)로부터 당신의 컴퓨터(송신포트=xxxxx)로 서버의 응답이 전송됩니다.


If you close port 80 in outbound rules, your computer will not be able to access any web server because this rule means that your firewall drops any packets which are send from your computer to a destination on port 80.

> 만약 80번 포트를 닫는다면, 아웃바운드 룰에서, 당신의 컴퓨터는 어떤 웹서버도 접속하지 못 할 것입니다. 왜냐하면 이 룰은 당신의 방화벽이 당신의 컴퓨터로부터 80번포트로 보내지는 어떤 패킷이라도 전부 탈락시킨다는 것을 의미하기 때문입니다.

 

 

 

단어


I am new to ~ ~를 처음 접한다.
inbound 오는, 유입되는
outbound 가는, 나가는
investigate 조사하다, 살피다
listen 수신하다.
clarify 명확하게 하다, 분명히 말하다

 

'Study > CS' 카테고리의 다른 글

TCP - Connection Establishment/Termination  (0) 2019.07.16
TCP - Checksum  (0) 2019.07.16
TCP - Segment Structure  (0) 2019.07.12
TCP  (0) 2019.07.12
유니티 최적화 기법들  (0) 2019.02.11
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함