当前位置:网站首页>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 .
边栏推荐
- pycharm专业版下载安装教程
- Discrete mathematics: reasoning rules
- MongoDB系列之学习笔记教程汇总
- 無心劍英譯席慕容《無怨的青春》
- SAP ui5 application development tutorial 106 - how to improve the readability of SAP ui5 application routing URL trial version
- Database postragesql client authentication
- The difference between string STR and new string
- Hand drawn video website
- Pycharm professional download and installation tutorial
- Global and Chinese markets for stratospheric UAV payloads 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢
SAP ui5 application development tutorial 107 - trial version of SAP ui5 overflow toolbar container control introduction
Basic operations of database and table ----- create index
华为百万聘请数据治理专家!背后的千亿市场值得关注
Arbitrum: two-dimensional cost
【海浪建模3】三维随机真实海浪建模以及海浪发电机建模matlab仿真
各大主流编程语言性能PK,结果出乎意料
[flutter topic] 64 illustration basic textfield text input box (I) # yyds dry goods inventory #
抓包整理外篇——————状态栏[ 四]
[untitled]
Innovation leads the direction. Huawei Smart Life launches new products in the whole scene
随机推荐
全栈开发提效神器——ApiFox(Postman + Swagger + Mock + JMeter)
Playwright之录制
Senior Test / development programmers write no bugs? Qualifications (shackles) don't be afraid of mistakes
微信小程序:全网独家小程序版本独立微信社群人脉
Jcenter () cannot find Alibaba cloud proxy address
“薪资倒挂”、“毕业生平替” 这些现象说明测试行业已经...
ROS command line tool
【FPGA教程案例10】基于Verilog的复数乘法器设计与实现
Hand drawn video website
Arbitrum: two-dimensional cost
[pure tone hearing test] pure tone hearing test system based on MATLAB
Expose testing outsourcing companies. You may have heard such a voice about outsourcing
Several simplified forms of lambda expression
Insert sort of sort
【大型电商项目开发】性能压测-性能监控-堆内存与垃圾回收-39
7. Scala process control
[microprocessor] VHDL development of microprocessor based on FPGA
Sorting selection sorting
Grabbing and sorting out external articles -- status bar [4]
那些一门心思研究自动化测试的人,最后都怎样了?