当前位置:网站首页>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 .
边栏推荐
- SAP ui5 application development tutorial 107 - trial version of SAP ui5 overflow toolbar container control introduction
- 整理混乱的头文件,我用include what you use
- Talking about JVM 4: class loading mechanism
- MySQL uses the explain tool to view the execution plan
- Single step debugging of master data reading of SAP commerce cloud products
- Paxos 入门
- Pandora IOT development board learning (RT thread) - Experiment 4 buzzer + motor experiment [key external interrupt] (learning notes)
- [wave modeling 2] three dimensional wave modeling and wave generator modeling matlab simulation
- [flutter topic] 64 illustration basic textfield text input box (I) # yyds dry goods inventory #
- Package What is the function of JSON file? What do the inside ^ angle brackets and ~ tilde mean?
猜你喜欢

Expansion operator: the family is so separated

User login function: simple but difficult

LeetCode周赛 + AcWing周赛(T4/T3)分析对比

资深测试/开发程序员写下无bug?资历(枷锁)不要惧怕错误......

"Upside down salary", "equal replacement of graduates" these phenomena show that the testing industry has

程序员SQL数据脚本编码能力弱,BI做不出来怎么办?
![[wave modeling 2] three dimensional wave modeling and wave generator modeling matlab simulation](/img/50/b6cecc95e46fe1e445eb00ca415669.png)
[wave modeling 2] three dimensional wave modeling and wave generator modeling matlab simulation

Playwright recording

Take you ten days to easily complete the go micro service series (IX. link tracking)

26.2 billion! These universities in Guangdong Province have received heavy support
随机推荐
Single step debugging of master data reading of SAP commerce cloud products
全网最全正则实战指南,拿走不谢
ROS command line tool
Applet live + e-commerce, if you want to be a new retail e-commerce, use it!
整理混乱的头文件,我用include what you use
Take you ten days to easily complete the go micro service series (IX. link tracking)
Which financial products with stable income are good
[Yocto RM]10 - Images
FEG founder rox:smartdefi will be the benchmark of the entire decentralized financial market
Database postragesql client connection default
26.2 billion! These universities in Guangdong Province have received heavy support
Game 280 of leetcode week
Discrete mathematics: reasoning rules
Take you ten days to easily complete the go micro service series (IX. link tracking)
【FPGA教程案例10】基于Verilog的复数乘法器设计与实现
Insert sort of sort
Check if this is null - checking if this is null
【Unity】InputSystem
Introduction to the gtid mode of MySQL master-slave replication
MySQL uses the explain tool to view the execution plan