vue 阻止事件传入_如果您阻止所有传入的连接,您仍如何使用Internet?

vue 阻止事件传入

vue 阻止事件传入

if-you-block-all-incoming-connections-how-can-you-still-use-the-internet-00

If all incoming connections to your computer are being blocked, then how can you still receive data and/or have an active connection? Today’s SuperUser Q&A post has the answer to a confused reader’s question.

如果到计算机的所有传入连接都被阻止,那么如何仍然可以接收数据和/或保持活动连接? 今天的“超级用户问答”帖子回答了一个困惑的读者的问题。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

Screenshot courtesy of Linux Screenshots (Flickr).

屏幕截图由Linux屏幕截图(Flickr)提供

问题 (The Question)

SuperUser reader Kunal Chopra wants to know how his computer can still receive data if all incoming connections have been blocked:

超级用户阅读器Kunal Chopra想知道如果所有传入连接都被阻止,他的计算机仍如何接收数据:

If your ISP or firewall is blocking all incoming connections, how can web servers still send data to your browser? You send the request (outgoing) and the server sends data (incoming). If you block all incoming connections, how can the web server respond?

如果您的ISP或防火墙阻止了所有传入连接,那么Web服务器如何仍将数据发送到浏览器? 您发送请求(发送),而服务器发送数据(传入)。 如果您阻止所有传入连接,则Web服务器如何响应?

What about video streaming and multi-player games where UDP comes into use? UDP is connectionless, so there is no connection to be established, so how does the firewall or ISP handle that?

使用UDP的视频流和多人游戏怎么办? UDP是无连接的,因此没有建立连接,那么防火墙或ISP如何处理呢?

How is data still able to reach Kunal’s computer if all incoming connections have been blocked?

如果所有传入连接都被阻止,数据仍如何能够到达Kunal的计算机?

答案 (The Answer)

SuperUser contributor gowenfawr has the answer for us:

超级用户贡献者gowenfawr为我们提供了答案:

“Incoming block” means that incoming new connections are blocked, but established traffic is allowed. So if outbound new connections are allowed, then the incoming half of that exchange is okay.

“传入阻止”表示阻止传入的新连接,但允许建立的流量。 因此,如果允许出站新连接,则该交换的传入一半是可以的。

The firewall manages this by tracking the state of connections (such a firewall is often called a Stateful Firewall). It sees the outgoing TCP/SYN and allows it. It sees an incoming SYN/ACK, verifies that it matches the outbound SYN it saw, lets that through, and so on. If it permits a three-way handshake (i.e. it is allowed by the firewall rules), it will allow that exchange. And when it sees the end of that exchange (FINs or RST), it will take that connection off the list of allowed packets.

防火墙通过跟踪连接状态进行管理(这种防火墙通常称为“状态防火墙” )。 它看到传出的TCP / SYN并允许它。 它看到传入的SYN / ACK,验证它是否与看到的出站SYN匹配,并使其通过,依此类推。 如果允许三向握手(即防火墙规则允许),它将允许该交换。 当看到交换结束(FIN或RST)时,它将把该连接从允许的数据包列表中删除。

UDP is done similarly, although it involves the firewall remembering enough to pretend that UDP has a connection or session (which UDP does not).

UDP的执行方式与此类似,尽管它会使防火墙记住足够多的内容以假装UDP具有连接或会话(而UDP没有)。



Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程

翻译自: https://www.howtogeek.com/212829/if-you-block-all-incoming-connections-how-can-you-still-use-the-internet/

vue 阻止事件传入

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值