当前位置:网站首页>Configure iptables
Configure iptables
2022-04-23 18:32:00 【Drunken Xiaobai】
1、 Back up previous configuration files
cp /etc/sysconfig/iptables /tmp/iptable`date +%y%m%d%H`.bak
2、 Port rules before cleanup
vi /etc/sysconfig/iptables
3、 Add access rule
iptables -A INPUT -s x.x.x.x -p tcp -m multiport --dports 22,80,3000 -j ACCEPT
4、 restart iptables
service iptables save
service iptables restart
5、 see iptables
iptables -L
6、 Access validation
版权声明
本文为[Drunken Xiaobai]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231829110805.html
边栏推荐
- C language to achieve 2048 small game direction merging logic
- Custom prompt box MessageBox in QT
- Hard core parsing promise object (do you know these seven common APIs and seven key questions?)
- Daily CISSP certification common mistakes (April 11, 2022)
- QT excel operation summary
- ESP32 LVGL8. 1 - label (style 14)
- 使用 bitnami/postgresql-repmgr 镜像快速设置 PostgreSQL HA
- Software test summary
- iptables初探
- C language simulates entering and leaving the stack, first in first out, first in first out, shared memory
猜你喜欢
JD-FreeFuck 京東薅羊毛控制面板 後臺命令執行漏洞
机器学习理论之(7):核函数 Kernels —— 一种帮助 SVM 实现非线性化决策边界的方式
ctfshow-web362(SSTI)
WIN1 remote "this may be due to credssp encryption Oracle correction" solution
Matlab tips (6) comparison of seven filtering methods
【ACM】509. 斐波那契数(dp五部曲)
纠结
机器学习实战 -朴素贝叶斯
Resolve the error Max virtual memory areas VM max_ map_ count [65530] is too low, increase to at least [262144]
Use bitnami / PostgreSQL repmgr image to quickly set up PostgreSQL ha
随机推荐
14 py games source code share the second bullet
STM32 learning record 0008 - GPIO things 1
How to ensure the security of futures accounts online?
Cygwin64 right click to add menu, and open cygwin64 here
os_authent_prefix
Using transmittablethreadlocal to realize parameter cross thread transmission
CISSP certified daily knowledge points (April 15, 2022)
【ACM】509. Fibonacci number (DP Trilogy)
Daily network security certification test questions (April 18, 2022)
Daily CISSP certification common mistakes (April 19, 2022)
Imx6 debugging LVDS screen technical notes
With the use of qchart, the final UI interface can be realized. The control of qweight can be added and promoted to a user-defined class. Only the class needs to be promoted to realize the coordinate
使用 bitnami/postgresql-repmgr 镜像快速设置 PostgreSQL HA
Custom prompt box MessageBox in QT
MATLAB小技巧(6)七种滤波方法比较
Rust: how to implement a thread pool?
Solution to Chinese garbled code after reg file is imported into the registry
Pointers in rust: box, RC, cell, refcell
JD-FreeFuck 京東薅羊毛控制面板 後臺命令執行漏洞
函数递归以及趣味问题的解决