📜  防火墙和代理服务器的区别

📅  最后修改于: 2021-09-10 03:01:10             🧑  作者: Mango

1. 防火墙:
防火墙是防止未经授权访问或来自专用网络的软件程序。里面的所有数据包进入或丢弃网络都通过防火墙,并在检查防火墙是否允许之后。所有流量都必须通过防火墙,只有经过授权的流量才能通过。它是一个位于两个网络之间的系统,它在这些网络之间实施访问控制策略。它工作在OSI模型的网络层,在传输前使用加密技术对数据进行加密。

2.代理服务器:
代理服务器是一种服务器,充当任何设备与互联网其余部分之间的网关或中介。代理接受并转发连接请求,然后为这些请求返回数据。它使用匿名网络ID而不是客户端的实际IP地址(意味着它隐藏了客户端的IP地址),因此客户端的实际IP地址不会被泄露。

防火墙和代理服务器的区别:

SR.NO Firewall Proxy Server
1 Firewall can monitor and filter all the incoming and outgoing traffic on a given local network. Proxy server connects an external client with a server to communicate with each other.
2 It blocks connections from unauthorised network. It facilitates connections over network.
3 It filters data by monitoring IP packets that are traversed. It filters the client-side requests that are made to connect to the network.
4 It involves network and transport layer data. It work on application layer data.
5 It exist as an interface between a public and private network. It can exist with public networks on both sides.
6 It is used to protect an internal network against attacks . It is used for anonymity and to bypass restrictions.
7 The overhead generated in firewall is more as compared to a proxy server. The overhead generated in proxy server is less as compared to a firewall.
8 It works on the packet level.  It works on application protocol level.