当前位置:网站首页>Hedhat firewall
Hedhat firewall
2022-07-05 01:11:00 【weixin_ fifty-one million four hundred and twenty-eight thousan】
The firewall will read the configured policy rules from top to bottom , Immediately after the match is found, the matching work is finished and the behavior defined in the match is executed ( To release or prevent ). If there is no match after reading all the policy rules , Go ahead and implement the default strategy . generally speaking , There are two kinds of firewall policy rules :“ through ”( Let's go ) and “ Block up ”( That is to prevent ). When the default policy of firewall is reject ( Block up ), It's about setting the allow rule ( through ), Otherwise no one can come in ; If the default policy of the firewall is allow , It's about setting rejection rules , Otherwise everyone can come in , Firewall also lost the role of prevention .
iptables The service refers to the policy entries used to process or filter traffic as rules , Multiple rules can form a rule chain , The rule chain is classified according to the location of packet processing , As follows :
Process packets before routing (PREROUTING);
Process incoming packets (INPUT);
Process outgoing packets (OUTPUT);
Process forwarded packets (FORWARD);
Process packets after routing (POSTROUTING).
Generally speaking , The traffic sent from the intranet to the Internet is generally controllable and benign , So the most used is INPUT Rule chain , The rule chain can make it more difficult for hackers to invade the intranet from the external network .
For example, in the community where you live , Property management companies have two provisions : Prohibit hawkers from entering the community ; All kinds of vehicles must be registered when entering the community . Obvious , These two rules should be applied to the front door of the community ( Where the flow must pass ), Not on the security door of every house . According to the matching order of firewall policies mentioned above , There may be many situations . such as , The visitors are vendors , Will be directly rejected by the security of the property company , There is no need to register the vehicle . If visitors enter the main gate of the community in a car , be “ Prohibit hawkers from entering the community ” The first rule of is not matched , So match the second strategy in order , That is, the vehicle needs to be registered . If you are a community resident, you need to enter the main entrance , Then these two provisions will not match , Therefore, the default release policy will be implemented .
however , Only policy rules cannot guarantee the safety of the community , The security guard should also know what actions to take to deal with these matching traffic , such as “ allow ”“ Refuse ”“ registration ”“ Ignore it ”. These actions correspond to iptables The terms of service are ACCEPT( Allow flow through )、REJECT( Reject traffic through )、LOG( Logging information )、DROP( Reject traffic through ).“ Allow flow through ” and “ Logging information ” It's easy to understand , What needs to be emphasized here is REJECT and DROP The difference between . Just DROP Come on , It directly discards traffic and does not respond ;REJECT Then it will reply one more message after rejecting the traffic “ The message has been received , But it was thrown away ” Information , So that the traffic sender can clearly see the response information of data rejected .
边栏推荐
- Maximum number of "balloons"
- Discrete mathematics: propositional symbolization of predicate logic
- Game 280 of leetcode week
- Chia Tai International Futures: what is the master account and how to open it?
- Basic operations of database and table ----- delete index
- Paxos 入门
- Summary of the function and usage of const, volatile and restrict
- “薪资倒挂”、“毕业生平替” 这些现象说明测试行业已经...
- Open3d uses GICP to register point clouds
- 小程序直播 + 电商,想做新零售电商就用它吧!
猜你喜欢

Chia Tai International Futures: what is the master account and how to open it?

Redis(1)之Redis简介

各大主流编程语言性能PK,结果出乎意料

4. Scala writes HelloWorld in idea, in-depth analysis of accompanying objects, and association of source packages

What if the programmer's SQL data script coding ability is weak and Bi can't do it?

SAP UI5 应用的主-从-从(Master-Detail-Detail)布局模式的实现步骤

SAP ui5 application development tutorial 106 - how to improve the readability of SAP ui5 application routing URL trial version

“薪資倒掛”、“畢業生平替” 這些現象說明測試行業已經...

College degree, what about 33 year old Baoma? I still sell and test, and my monthly income is 13K+

dotnet-exec 0.6.0 released
随机推荐
Mongodb series learning notes tutorial summary
Global and Chinese markets for industrial X-ray testing equipment 2022-2028: Research Report on technology, participants, trends, market size and share
What happened to those who focused on automated testing?
Take you ten days to easily complete the go micro service series (IX. link tracking)
Discrete mathematics: reasoning rules
Visual explanation of Newton iteration method
【大型电商项目开发】性能压测-性能监控-堆内存与垃圾回收-39
Basic operation of database and table ----- phased test II
Redis(1)之Redis简介
LeetCode周赛 + AcWing周赛(T4/T3)分析对比
各大主流编程语言性能PK,结果出乎意料
【海浪建模1】海浪建模的理论分析和matlab仿真
大专学历,33岁宝妈又怎样?我照样销售转测试,月入13k+
资深测试/开发程序员写下无bug?资历(枷锁)不要惧怕错误......
Expansion operator: the family is so separated
全栈开发提效神器——ApiFox(Postman + Swagger + Mock + JMeter)
[microprocessor] VHDL development of microprocessor based on FPGA
[FPGA tutorial case 10] design and implementation of complex multiplier based on Verilog
Database postragesql client connection default
Global and Chinese market of veterinary thermometers 2022-2028: Research Report on technology, participants, trends, market size and share